Forum Discussion
ejb2019
Oct 09, 2024Copper Contributor
embedding value into dropdown option
Hi, I want to embed a value into a drop-down value. I am trying to calculate the total cost of purchasing a product based on the price and the frequency. I have a column with the price and a col...
Riny_van_Eekelen
Oct 09, 2024Platinum Contributor
ejb2019 Perhaps the example in the attached file helps you on your way. I used the SWITCH function to switch the selection from the dropdown (frequency) with numbers that are then used in the formula.
This works fine when you have a small number of options. In case it becomes more complicated, it's probably better to use a lookup table with all possible frequencies and the numbers that they represent.