lookup formula

sachin483

Board Regular
Joined
Mar 31, 2015
Messages
163
Office Version
  1. 2019
Platform
  1. Windows
i am using the below lookup formula but it the value less than 0 it give error

=LOOKUP(F3,{0,80,90,110,150},{"Excellent","Good","Average","Below Average","Poor"})

[TABLE="width: 165"]
<colgroup><col><col></colgroup><tbody>[TR]
[TD="align: right"]-1[/TD]
[TD="align: center"]#N/A[/TD]
[/TR]
[TR]
[TD="align: right"]44[/TD]
[TD]Excellent[/TD]
[/TR]
[TR]
[TD="align: right"]88[/TD]
[TD]Good[/TD]
[/TR]
[TR]
[TD="align: right"]90[/TD]
[TD]Average[/TD]
[/TR]
[TR]
[TD="align: right"]110[/TD]
[TD]Below Average[/TD]
[/TR]
[TR]
[TD="align: right"]155[/TD]
[TD]Poor[/TD]
[/TR]
</tbody>[/TABLE]
 

Excel Facts

VLOOKUP to Left?
Use =VLOOKUP(A2,CHOOSE({1,2},$Z$1:$Z$99,$Y$1:$Y$99),2,False) to lookup Y values to left of Z values.
do you want it to return Excellent if below 0 too ? then use:
Code:
=LOOKUP(F3,{-9.99999999999E+307,80,90,110,150},{"Excellent","Good","Average","Below Average","Poor"})
 
Upvote 0
when i adding the formula for 25 value it is showing "Below average" it should show "Average" as per formula

=LOOKUP(F9,{-9.99999999999E+307,10,20,30,31},{"Poor","Poor","Below Average","Average","Good"})


[TABLE="width: 165"]
<colgroup><col><col></colgroup><tbody>[TR]
[TD="align: right"]-99[/TD]
[TD]Poor[/TD]
[/TR]
[TR]
[TD]<=10[/TD]
[TD]Poor[/TD]
[/TR]
[TR]
[TD]<=20[/TD]
[TD]below Average[/TD]
[/TR]
[TR]
[TD]<=30[/TD]
[TD]Average[/TD]
[/TR]
[TR]
[TD]>31[/TD]
[TD]Good[/TD]
[/TR]
</tbody>[/TABLE]
 
Upvote 0

Forum statistics

Threads
1,223,705
Messages
6,173,996
Members
452,542
Latest member
Bricklin

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