=IF(AW5>T5,"B",IF(AW5=T5,"G",IF(T5-AW5=1,"A",IF(T5-AW5>=2,"R"))))
Using the formula above I'm getting B show up in places it shouldn't. I'm quite new to this so could be missing something very obvious!
=IF(AW5>T5,"B",IF(AW5=T5,"G",IF(T5-AW5=1,"A",IF(T5-AW5>=2,"R"))))
Using the formula above I'm getting B show up in places it shouldn't. I'm quite new to this so could be missing something very obvious!
Welcome to the forum.
Sorry - can't tell from the formula what might be wrong. Do you have text values that are being treated as numbers? If so, try this:
=IF(AND(ISNUMBER(AW5),AW5>T5),"B",IF(AW5=T5,"G",IF(T5-AW5=1,"A",IF(T5-AW5>=2,"R"))))
There are instructions at the top of the page explaining how to attach your sample workbook.
A good sample workbook has just 10-20 rows of representative data that has been desensitised. It also has expected results mocked up, relevant cells highlighted and a few explanatory notes.
Ali
Enthusiastic self-taught user of MS Excel who's always learning!
Don't forget to say "thank you" in your thread to anyone who has offered you help.
You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.
Forum Rules (updated August 2023): please read them here.
Hi - thanks for the quick response.
It's part of a huge spreadsheet where AW depends on the outcome of 5 other cells so I'm struggling to attach. I've attached a picture for now while I figure it out
The formula you gave me above returns the correct result in some cells, but others change to FALSE
Capture.PNG
Read what I said again:
I can't work with a picture, but if that first criterion is returning "B", then either the value in T or the one in AW is text (or both are).A good sample workbook has just 10-20 rows of representative data that has been desensitised. It also has expected results mocked up, relevant cells highlighted and a few explanatory notes.
Try this:
=IF(AW5-T5>0,"B",IF(AW5-T5=0,"G",IF(T5-AW5=1,"A","R")))
Thank you - this worked!
The values in T are mostly imported from elsewhere. Those that were typed in manually were the ones giving incorrect results.
If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED.
Also, if you have not already done so, you may not be aware that you can thank those who have helped you by clicking the small star icon (* Add Reputation) located in the lower left corner of the post in which the help was given. By doing so you can add to the reputation(s) of all those who offered help.
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks