Data Lookup With Multiple Criteria

muhammad susanto

Well-known Member
Joined
Jan 8, 2013
Messages
2,102
Office Version
  1. 365
  2. 2021
Platform
  1. Windows
hello all..

i want to lookup data with criteria below, how to use vlookup or either..

[TABLE="class: tableizer-table"]
<thead>[TR="class: tableizer-firstrow"]
[TH]Criterias[/TH]
[TH]Score[/TH]
[/TR]
</thead><tbody> [TR]
[TD]Good[/TD]
[TD]1[/TD]
[/TR]
[TR]
[TD]Bad[/TD]
[TD]2[/TD]
[/TR]
[TR]
[TD]Worst[/TD]
[TD]3[/TD]
[/TR]
[TR]
[TD]Enough[/TD]
[TD]4[/TD]
[/TR]
[TR]
[TD] [/TD]
[TD] [/TD]
[/TR]
[TR]
[TD]lookup[/TD]
[TD] [/TD]
[/TR]
[TR]
[TD]given/data[/TD]
[TD]Expected Result[/TD]
[/TR]
[TR]
[TD]Bad[/TD]
[TD]2[/TD]
[/TR]
[TR]
[TD]Good[/TD]
[TD]1[/TD]
[/TR]
[TR]
[TD] [/TD]
[TD]etc..[/TD]
[/TR]
</tbody>[/TABLE]

thanks in advance
.sst
 
Last edited:

Excel Facts

Using Function Arguments with nested formulas
If writing INDEX in Func. Arguments, type MATCH(. Use the mouse to click inside MATCH in the formula bar. Dialog switches to MATCH.
sorry...it's possible using formula
=vlookup(H2;{Good;Bad;Worst;Enough};..............
 
Upvote 0
i want, the formula's model like this
=VLOOKUP(A2;"Good";"Bad";"Worst";"Enough";{1;2;3;4})

explain :
Good instead 1
Bad -------- 2
Worst -------3
Enough ------4

It's possible?
 
Upvote 0
Worked for me


[Table="class: grid"][tr][td="bgcolor: #DCE6F1"][/td][td="bgcolor: #DCE6F1"]
A
[/td][td="bgcolor: #DCE6F1"]
B
[/td][/tr]
[tr][td="bgcolor: #DCE6F1"]
1
[/td][td]
given/data​
[/td][td]
Expected Result​
[/td][/tr]

[tr][td="bgcolor: #DCE6F1"]
2
[/td][td]
Bad​
[/td][td]
2​
[/td][/tr]

[tr][td="bgcolor: #DCE6F1"]
3
[/td][td]
Good​
[/td][td]
1​
[/td][/tr]

[tr][td="bgcolor: #DCE6F1"]
4
[/td][td]
enough​
[/td][td]
4​
[/td][/tr]

[tr][td="bgcolor: #DCE6F1"]
5
[/td][td]
worst​
[/td][td]
3​
[/td][/tr]
[/table]


Formula in B2 copied down
=VLOOKUP(A2,{"Good",1;"Bad",2;"Worst",3;"Enough",4},2,0)

Observe the separators in the matrix
, (comma) is column separator
; (semicolon) is row separator

M.
 
Upvote 0
Having a similar problem. Any help is appreciated. Please help!

Vlookup is returning #n/a, I think because I have it looking up a cell that is the result of a formula. *Note: Table for Customers is different table than List of Zips and rate, if that's relevant.*

Ex.


A1 = customer (Selected from drop down)
A2 = Zip Code (auto generated from customer selected from A1)
A3 = Rate (based on zip populated in A2).


#N/A comes up in cell A3. When I manually type in the zip it works fine. If I choose True - it goes wrong rate. False is a must, but returns #N/A.

A1 = Bob's Cleaning
A2 = 12345
A3 = $750
 
Upvote 0

Forum statistics

Threads
1,224,823
Messages
6,181,170
Members
453,021
Latest member
Justyna P

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