Hi,
I have an IF function in which i am trying to put 2 different values in the [logical test] section of the forumla but do not know how to do this.
E.G
IF(D10="receive or rec back", B10+I10, B10-I10)
Am I able to put two variables in the logical test field?
Please advise
Many Thanks
You can use OR function
=B10+I10*IF(OR(D10="receive","rec back"),1,-1)
"Relax. What is mind? No matter. What is matter? Never mind!"
Original formula amended:
IF(OR(D10="receive",D10="rec back"), B10+I10, B10-I10)
ZBOR's formula with correction:
=B10+I10*IF(OR(D10="receive",D10="rec back"),1,-1)
Oh, yes, miss that part![]()
"Relax. What is mind? No matter. What is matter? Never mind!"
another variation
=IF(OR(D10={"receive","rec back"}), B10+I10, B10-I10)
"Unless otherwise stated all my comments are directed at OP"
Mojito connoisseur and a dabbler in Cisco
where does code go ?
look here
how to insert code
how to enter array formula
why use -- in sumproduct
recommended reading
wiki Mojito
how to say no convincingly
most important thing you need
Martin Wilson: SPV
and RSMBC
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks