Forum Discussion
Diane Dambrosio
Nov 19, 2017Copper Contributor
IF Function
I'm having problems figuring out an "IF" formula, I'm wondering if anyone can help me out. The question is as follows: If the Repeat? value is "YES", calculate the amount paid by subtracting 5 from...
Haytham Amairah
Nov 19, 2017Silver Contributor
Hello Diane,
Try this:
- SergeiBaklanNov 20, 2017Diamond Contributor
Or the same
=A2-(B2="Yes")*5
- Rach31Apr 26, 2021Copper Contributor
I know it's been years, but your formula still holds 🙂
What if I want multiple cells subtracted from one particular cell, so:
=A1-(B1="yes")*5
=A1-(B2="yes")*3
=A1-(B3="yes")*8
Is there a way to make this one formula?
Thanks!
- SergeiBaklanApr 26, 2021Diamond Contributor
- Haytham AmairahNov 20, 2017Silver Contributor
Sergei,
It's a very smart algorithm!
Thank you!