Forum Discussion
chofbauer
Mar 05, 2019Copper Contributor
IF Function
Good day! I was wondering if anyone knew how to do an IF function for the attached file. I am trying to get the amount in column D to be "950" if column B or C has a 1 in it. If B or C ha...
- Mar 06, 2019
More exactly
=IF(OR(B2=1,C2=1),950,S2/(B2+C2))
Twifoo
Mar 05, 2019Silver Contributor
From what I understand, you want Column D to return:
950, if the values of Column B and C are 0; otherwise,
Column S divided by the sum of Column B and C.
The formula in D2 is:
=IF(AND(B2=0,C2=0),
950,
S2/(B2+C2))
The Boolean version is:
=IF((B2=0)*(C2=0),
950,
S2/(B2+C2))
950, if the values of Column B and C are 0; otherwise,
Column S divided by the sum of Column B and C.
The formula in D2 is:
=IF(AND(B2=0,C2=0),
950,
S2/(B2+C2))
The Boolean version is:
=IF((B2=0)*(C2=0),
950,
S2/(B2+C2))