> ## Knowledge Base Index
> Fetch the complete knowledge base index at: https://support.custompricecalculator.com/sitemap.xml
> Use this file to discover available pages before exploring further.
> Pure-Markdown content can be obtained by appending a '.md' suffix to the content URLs listed in the sitemap (without the trailing slash).

# Area (sqm, sqft) based discounts through data lookup element

This will allow customers to calculate area-based discounts through the data lookup element.

To understand how data lookup works, please refer to our help article on the [Data Lookup element.](https://apippa.freshdesk.com/a/solutions/articles/67000427980)

**Step 1: Add the number input element**

Click **+ Add element** and select **Number Input** from the modal. Repeat to add a second Number Input element. Change the labels to **Length** and **Width**.

![](https://storage.crisp.chat/users/helpdesk/website/-/6/7/3/d/673d74301cfde400/1_bfa0pw.png)

**Step 2: Add data lookup element**

![](https://storage.crisp.chat/users/helpdesk/website/-/6/7/3/d/673d74301cfde400/2_1kfka1g.png)


**Step 3: Update Data Lookup Properties**  
​  
​_Each Data Lookup element has two number inputs. For each, you can control the name, minimum value, maximum value, and the number of decimals allowed to input._  
​  
Toggle on the formula option for each input.

* Input 1 - Set the formula to 1

[![](https://storage.crisp.chat/users/helpdesk/website/-/1/1/a/d/11ad191a75115300/83ec5913-d810-45e7-ae3a-4879e7_ub41u2.png)](https://downloads.intercomcdn.com/i/o/778594241/49016fd9873d393fe0f8a7e1/image.png?expires=1746222300&signature=915f1c770f9a4e025a3f45523ccf1a512bf8561be033befcfc467f6969ab229c&req=cycvE8B6n4VeFb4f3HP0gIASmZMCK0%2FOdHbdBxL%2BG9IEFqBLZ1zyB%2F6CcGFG%0AaS9%2FxRU7h4ZVMm1YFg%3D%3D%0A)
Input 2 - Set the formula to length*width as shown in the screenshot below.

[![](https://storage.crisp.chat/users/helpdesk/website/-/a/3/d/3/a3d38b409d1d9800/e0402d14-6490-4f24-98df-cc74b9_ghst5t.png)](https://downloads.intercomcdn.com/i/o/778596477/ea8a0bacdaaf21ac4bca8ab2/image.png?expires=1746222300&signature=7bb87586ed0ee64bcc3ae986251ca72d0dcf33e7c8f1f37cd131154c3f09da03&req=cycvE8B4mYZYFb4f3HP0gCMWOYVG%2F2KbdPCln3RmSuXs5Cc0g9x%2BoeKO7pfd%0AcWk%3D%0A)

*It will disable the conditional display for the data lookup element*

*The input will be hidden from the calculator as there is no longer any input needed*

**Step 4: Update the data values  
​**  
​_Click on Update Data and table input will appear. You can then paste data from Excel or Google Sheets or manually type them in._  
​  
​**Below examples are of the total SF is;**

![](https://storage.crisp.chat/users/helpdesk/website/-/6/7/3/d/673d74301cfde400/5_19bi4j3.png)

* 1-100 SF (Length*Width) the price would be 10 per square foot.
* 101 - 200 SF(Length*Width) the price would be 8 per square foot.
* More than 200 SF(Length*Width) the price would be 6 per square foot.

**Step 5: Add the element to your formula**  
​  
​_To add the matched value to your formula all you have to do is insert the element name._  
​_We have to enter length*width*pricing. Pricing was the data lookup element._

![](https://storage.crisp.chat/users/helpdesk/website/-/6/7/3/d/673d74301cfde400/6_1v54x97.png)
