Could someone please help me write an if statement that accomplishes the following.
If I26 is less than 30% enter 0
If I26 is greater than 30% but less than 35% enter 2
If I26 is greater than 35% but less than 40% enter 3
If I26 is greater than 35% enter 4
I have been spinning my wheels on this and I keep getting errors.
Thank you,
Luke
Last edited by lchiavelli; 12-20-2011 at 02:34 PM.
I assume the last one is supposed to be > 40%. Try this
=LOOKUP(I26*100,{0,30,35,40;0,2,3,4})
On the boundary, e.g. 30%, you'll get the higher band.....
Audere est facere
That worked perfect and yes you are right, it should have read 40%. Thank you so much! I was way off based with what I was trying.
Also, with MATCH ?
=MATCH(I26*100,{0,30,30,35,40})-1
Since array is an ascending order added an extra 30.
HTH; Haseeb
If your problem is solved, please say so clearly, and mark your thread as Solved:
Forum Rules & How to Mark a thread as SOLVED
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks