Learn Value Lookup Element to simplify complex calculations, import CSV data, and create powerful, user-friendly calculators effortlessly.
Written by Abdul Samad

The Value Lookup element in ActiveCalculator is a powerful tool designed to simplify complex calculations by finding values from a spreadsheet table based on user inputs. This feature eliminates the need for intricate conditional formulas, streamlining your calculator's functionality and enhancing user experience.
To get started with the Value Lookup element:


Let's explore the various settings available for customization:

Click the "Import CSV" button to browse and upload your prepared CSV file containing the lookup data.
Use the "Check columns and rows" selectors to control which input values are used to look up imported table data. Select the appropriate variables for columns and rows to check against.

1. Prominent display (Bigger and bold) 2. Simple detail (Small and light) 3. Mock Input (Input element-like style) 4. Side by side (Label and output side by side)

To ensure your CSV file works correctly with the Value Lookup element, follow these guidelines:


Value Lookup element looks up a value in a CSV file based on two values. One from the first row and one from the first column.
For the value lookup element to output a result, it needs two values that will be taken from your calculator elements. These values can be static or dynamic based on the customer’s choices.
Here is an example of a correctly prepared sheet for a wallpaper price calculator:

Let's illustrate with an example of a wallpaper price calculator:
Value Lookup element in this case is used to find the price for the specific dimensions. One element is added to check the columns, and the other to check the rows.

A correctly setup Value Lookup element settings for the wallpaper price calculator:

Once the customer inputs Width value to be 60 cm and Height value to be 170 cm, the Value Lookup element finds and returns a value of 301 from the file.




It's important to note that the value returned by the Value Lookup element can be used as a variable in formulas within your calculator. This allows you to perform further calculations based on the looked-up value, enhancing the flexibility and power of your calculator. Additionally, to use the elements in your formulas, simply use existing variables by typing "@" and select from the list of available variables.
For example, you could use the looked-up price in a formula to calculate a discounted price or to determine shipping costs based on the product's price.
For a deeper understanding of how to utilize default and custom variables in your formulas, including those from Value Lookup elements, refer to our detailed guide on custom variables: Utilize Default and Custom Variables.
Q: Why isn't my Value Lookup element returning any results?
A: Ensure your CSV file is formatted correctly and contains only numeric values.
Q: Can I use text values in my lookup table?
A: No, the Value Lookup element requires numeric values.
Q: How do I update my lookup data?
A: Prepare a new CSV file with updated data and re-import it using the "Import CSV" button in the element settings.
Did this answer your question?