Google sheets ...
Have a dropdown list in cell A1 ... dropdown list has 2 options : yes, no.
I want to make cell A2 : if A1 = yes then A2 = 1% ... if A1 = no then A2 = 5%
no idea how to write the formula and syntax. any help appreciated.
You can find the documentation for the IF function here.
In your case you can put the following text/formula in cell A2:
=IF(A1="yes", "1%", IF(A1="no","5%",""))
If you want to use the numbers in some other formulas later, you might want to keep them as numbers, and simply format the cells. You can change the format by selecting the cell and in the menu clicking on Format -> Number -> Percent. In that case you can write the following in cell A2:
=IF(A1="yes", 0.01, IF(A1="no",0.05,""))
=IF(A1="yes", "1%", "5%")(inA2). - BeUndeadlookupTable, have=VLOOKUP(A1, lookupTable, 2, FALSE)in A2. - BeUndead