Lookup formula returning wrong answer

mattwolves

New Member
Joined
Mar 9, 2018
Messages
7
Hi folks,

I've got a spreadsheet with column 'A' having either N/A, Low, Medium or High.
In column 'B' I've got the following formula =lookup("range",{"High","Medium","Low","N/A"},{"10","5","1","0"})
I want column B to provide one of the following responses depending on what is in the cell on column A
High=10
Medium =5
Low=1
N/A =0

No matter which way around I do the formula I either have Low resulting with 10 or High resulting with #N/A.
I have also tried VLOOKUP("range",{"N/A","0";"Low","1";"Medium","5";"High","10"},2,0) but I have similar issues with returning the result.

I'm sure its something pretty simple but completely missing the trick.

Hope I've explained myself well enough for someone to help.

Thanking you in advance
 

Excel Facts

How to create a cell-sized chart?
Tiny charts, called Sparklines, were added to Excel 2010. Look for Sparklines on the Insert tab.
Is this what you want?


Excel 2010
AB
2low1
3medium5
4high10
5N/A0
Sheet1
Cell Formulas
RangeFormula
B2=LOOKUP(A2,{"high","Low","Medium","N/A"},{10,1,5,0})
B3=LOOKUP(A3,{"high","Low","Medium","N/A"},{10,1,5,0})
B4=LOOKUP(A4,{"high","Low","Medium","N/A"},{10,1,5,0})
B5=LOOKUP(A5,{"high","Low","Medium","N/A"},{10,1,5,0})
 
Upvote 0

Forum statistics

Threads
1,216,342
Messages
6,130,114
Members
449,558
Latest member
andyamcconnell

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