Lookup if statement

DiViS

New Member
Joined
Jun 16, 2015
Messages
13
Hi all,
what am i missing,

=LOOKUP(B5,{((>=0.36,<1.44),(>=1.44,<3.6),(>=3.6,<7.2),(>=7.2,<14.4),(>=14.4,<21.6))},{"10.5","10.2","9.9","9.3","8.7"})

basically first one is = if B5 >=0.36 and <1.44 then =10.5
and so on.

please help, its for work.
Thanks
 

Excel Facts

Convert text numbers to real numbers
Select a column containing text numbers. Press Alt+D E F to quickly convert text to numbers. Faster than "Convert to Number"
Maybe this

Code:
=IF(B5<1.44,10.5,IF(B5<3.6,10.2,IF(B5<14.4,9.9,IF(B5<21.6,9.3,8.7))))
 
Upvote 0
Hi,

@Michael M, I think you missed a couple of cut offs, perhaps this correction to your formula, I might be wrong:

=IF(B5>=0.36,IF(B5<1.44,10.5,IF(B5<3.6,10.2,IF(B5<7.2,9.9,IF(B5<14.4,9.3,IF(B5<21.6,8.7,"Over"))))),"Under")

And the LOOKUP version if there might be Negative values in B5:

=IFERROR(LOOKUP(B5,{0,0.36,1.44,3.6,7.2,14.4,21.6},{"Under",10.5,10.2,9.9,9.3,8.7,"Over"}),"Negative")

If No negative values are possible in B5:

=LOOKUP(B5,{0,0.36,1.44,3.6,7.2,14.4,21.6},{"Under",10.5,10.2,9.9,9.3,8.7,"Over"})
 
Last edited:
Upvote 0
@jtakw...thanks for the pickup....See what happens without your glasses...:beerchug:
 
Upvote 0
:beerchug: I'm near sighted Just enough to not need reading glasses, my eye doctor tells me that's a good thing... :laugh:
 
Upvote 0

Forum statistics

Threads
1,223,892
Messages
6,175,236
Members
452,621
Latest member
Laura_PinksBTHFT

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top