Hello can someone help me on creating a formula that will give me a result of either "W" or "L" depending on the amount in corresponding cell.
Example has been attached
Thanks
Hello can someone help me on creating a formula that will give me a result of either "W" or "L" depending on the amount in corresponding cell.
Example has been attached
Thanks
Last edited by Killer17; 10-14-2008 at 08:02 PM.
Hi Killer,
I'm assuming you're trying to compare cells D5 to D8, E5 to E8, etc., and the highest number gets the "W"?
If so, in D6 use:
=IF(D5>D8,"W","L")
Then in D9 use:
=IF(D6="W","L","W")
In D9 you could use =IF(D8>D5,"W","L"), but you don't necessarily need to since you've already determined the W or L value in D6. Whatever is in D6, you want the opposite in D9.
If this isn't the case let us know.
What's the condition for when it needs to return W or L?
Your basic formula should be =if(condition,if true,if false), for an example lets assume you are looking at a numerical value in Cell A1, and if it is equal to or less than 10 you want it to return W, but if it's greater than 10 you want it to return L.
=if(A1<=10,"W","L")
Simply change your cell reference and condition to match your needs.
Hey Paul
Thanks for the help this formula works
=IF(D8>D5,"W","L")
But its added L if cell is empty is there a way of not showing anything until there's an actual number in the 2 cells?
=if(or(d8 = "", d5 = ""), "", if(d8 > d5, "w", "l") )
Entia non sunt multiplicanda sine necessitate
Try this,
![]()
=If(And(D5<>"",D8<>""),If(D5>D8,"W","L"),"")
Hey snasui
It's not working I think it might becasue I have this formula in Cell D5
=IF(OR(D12=0,D13=0),0,D12+D13)
Last edited by Killer17; 10-14-2008 at 07:46 PM.
Replace... And(D5<>""... with ... And(D5<>0...
Succeed?
Thanks snasui it did the job
![]()
I would have hoped you learned by now... almost every post I answered of yours, as well as from several other members have answered you in the same way: I.e. change the "" to a 0. This is because you have formulas in the reference cells that do not really return blanks... If you go to Tools|Options and select "Zero Values" from the View tab, you will see that you have 0's in those cells not blanks.
Where there is a will there are many ways.
If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below left corner
Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks