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

What did Pito Salas invent?
Pito Salas, working for Lotus, popularized what would become to be pivot tables. It was released as Lotus Improv in 1989.
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...(y)
 
Upvote 0
(y) I'm near sighted Just enough to not need reading glasses, my eye doctor tells me that's a good thing... :LOL:
 
Upvote 0

Forum statistics

Threads
1,215,308
Messages
6,124,178
Members
449,146
Latest member
el_gazar

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