Hello,
Can someone please advise with a Excel problem I have.
What I want to do is:
I have a cell, say A1, with either u (for up) or d (for down) and I have an adjacent cell, B1 with a number in it say 10.
Now in a third cell, C1 I want to add or subtract another number say 5 to the second cell, B1 depending if cell A1 contains a ‘u’ or ‘d’.
So if cell A1 contains ‘u’ then cell B1 would = 10+5
If cell A1 contains ‘d’ then cell B1 would = 10-5
It sounds easy but I am not very good at finding the right function. I think it is ‘IF’ but that returns a value in the formula.
Thanks for any help.
Frank
Hi Frank.
Try this in C1
=IF(A1="u",SUM(B1+5),B1-5)
Hope to helps you.
Regards
Fotis.
I am proud that i am Greek.
Just to know every one.We Greeks, we are nοt proud of our politicians. Υou?
Remember, saying thanks only takes a second or two. Click the little star * below, to give some Rep if you think an answer deserves it.
Please,mark your thread [SOLVED] if you received your answer.
My Avadar picture, is from Athens Acropolis.
http://www.theacropolismuseum.gr
http://www.visitgreece.gr/
Thanks for a rapid response and a great answer!
Frank
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks