If cell 13 contains 150, why does this formula display the value as 1?
=IF(C13>0,1,IF(C13>100,2,0))
It doesn't make sense to me.
If cell 13 contains 150, why does this formula display the value as 1?
=IF(C13>0,1,IF(C13>100,2,0))
It doesn't make sense to me.
I suspect the 150 is actually stored as Text and Text > Number.
Also you need to order your IFs correctly given an IF will exit upon first True, ie your >100 would never be actioned (given >0 test would hold True first)
My Recommended Reading:
Volatility
Sumproduct & Arrays
Pivot Intro
Email from XL - VBA & Outlook VBA
Function Dictionary & Function Translations
Dynamic Named Ranges
As DO said, it never gets to the second IF statement, reorder like so
=IF(C13>100,2,IF(C13>0,1,0))
Does that work for you?
ChemistB
My 2?
substitute commas with semi-colons if your region settings requires
Don't forget to mark threads as "Solved" (Edit First post>Advanced>Change Prefix)
If I helped, Don't forget to add to my reputation (click on the little star at bottom of this post)
Forum Rules: How to use code tags, mark a thread solved, and keep yourself out of trouble
@ChemistB, thanks for adding some clarity... all I can say is:
WOW - the Text comment on my part is a pretty spectacular howler especially when you consider I even answered the problem in the remainder of the post !
Time for me to take a break methinks...
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks