Upcoming database upgrades. to improve our reliability at 03:30 UTC on Feb. 25 / 7:30pm PT on Feb. 24. Some users may briefly experience slow load times or error messages. Learn more here

Two condition Formula

Topic Labels: Formulas
316 2
Showing results for 
Search instead for 
Did you mean: 

Here is my current formula: IF(Store=“A”,(({Price}/100)*10))
This formula gives me the calculation of 10% of the figure in the Price column if the store in the Store column is A.
So far so good.
But how do I add store B to that formula? Say I have store A, B, C, D etc but I only want the formula applied if the store is A or B in the Store column?
Thanks in advance.

2 Replies 2

To run the same calculation for both stores A and B, you can use OR() to look for either one. You can also simplify your calculation:

IF(OR(Store = "A", Store = "B"), {Price} * .1)

Thank you so much @Justin_Barrett, it worked! I spent 2 hours on it last night and couldn’t work it out.