Multi Criteria Lookup: Some criteria are text and one is a range of Numbers

NotoriousTAT

New Member
Joined
Jun 28, 2018
Messages
1
Hello,
I am trying to create a lookup of some sort that has 4 criteria (3 are text and 1 a range of numbers). The result of the lookup will be text and ideally without the need for additional concatenation columns if possible. The last criteria is a range of numbers that is unique to the company and status criteria. I havent figured out how to get this done without nested if statements. Any advice or thoughts would be great. Trying to expand my toolbox of excel knowledge. Thanks

Col ACol BCol CCol DCol ECol FCol GCol HCol ICol JCol kCol L
Row 1
Row 2Data SetLookup Table
Row 3CompanyTypeStatusDays to completeStatusCompanyTypeStatusMinMaxStatus
Row 4CO1T1Completed120=?CO1T1Completed61100Red
Row 5CO2T2Completed60CO1T1Completed3160Yellow
Row 6CO2T1Cancelled90CO1T1Completed030Green
Row 7CO1T3Cancelled30CO1T1Cancelled46100Cancelled After 45
Row 8CO2T3Completed70CO1T1Cancelled1645Cancelled After 15
Row 9CO1T1Cancelled7CO1T1Cancelled015Cancelled within 15
Row 10CO1T2Completed0etc.etc.etc.etc.etc.etc.
Row 11etc.etc.etc.etc.
Row 12

<tbody>
</tbody>
 

Excel Facts

Can you AutoAverage in Excel?
There is a drop-down next to the AutoSum symbol. Open the drop-down to choose AVERAGE, COUNT, MAX, or MIN
Maybe a query is OK for you?

UPDATE DataSet D INNER JOIN LookupTable L ON D.Company = L.Company AND D.Type = L.Type
SET D.Status = L.Status
WHERE D.[Days to complete] >= L.[Min] AND D.[Days to complete] <= L.[Max]

Untested.

This is a non-formula database type approach, especially good for large datasets. It can be set up manually via ALT-D-D-N and follow the wizard, or various ways using VBA.
 
Upvote 0
Welcome to the MrExcel board!

Is this what you are after?

If not, can you provide the expected results for that sample data or provide another set of sample data, including the expected results with any further clarification?

Excel Workbook
ABCDEFGHIJKL
2Data SetLookup Table
3CompanyTypeStatusDays to completeStatusCompanyTypeStatusMinMaxStatus
4CO1T1Completed120UnknownCO1T1Completed61100Red
5CO2T2Completed60UnknownCO1T1Completed3160Yellow
6CO2T1Cancelled90UnknownCO1T1Completed030Green
7CO1T3Cancelled30UnknownCO1T1Cancelled46100Cancelled After 45
8CO2T3Completed70UnknownCO1T1Cancelled1645Cancelled After 15
9CO1T1Cancelled7Cancelled within 15CO1T1Cancelled015Cancelled within 15
Status
 
Upvote 0

Forum statistics

Threads
1,215,335
Messages
6,124,326
Members
449,155
Latest member
ravioli44

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