Multiple Criteria VLOOKUP Formula

Rob0424

New Member
Joined
Jan 9, 2007
Messages
40
Office Version
  1. 2016
I have a VLOOKUP formula that currently works:

=VLOOKUP(C2,'2023 RATES'!$A$1:$F$2000,5)

The problem I am trying to solve is if this formula does not find what it is looking for it returns #N/A. Is there a way to add to this formula that if it does not find anything then it would move onto this formula:

=VLOOKUP(D2,'2023 RATES'!$A$1:$F$2000,4)

And then the problem with adding this is there could be multiple times this is found, so it should stop at the first one found.

Can anyone help me?
 
211172 Monthly Equipment Reconciles.xlsx
ABCDE
1Job NumberMonthEquipment NumberEquipment Description FHWA Monthly Rate
2211172February 2024153-02976Takeuchi TL10CR$ 10,466.82
2024 - Mar (TEST)
Cell Formulas
RangeFormula
E2E2=IFNA(VLOOKUP(C2,'2023 RATES'!$A$1:$F$2000,5,0),VLOOKUP(D2,'2023 RATES'!$A$1:$F$2000,4,0))
 
Upvote 0

Excel Facts

Add Bullets to Range
Select range. Press Ctrl+1. On Number tab, choose Custom. Type Alt+7 then space then @ sign (using 7 on numeric keypad)
153-00001Takeuchi TL12V2-CRH
$2,500.00​
$7,754.62​
$10,466.82​
153-00002Bobcat T740 Track Load
$2,500.00​
$6,513.75​
$8,964.45​
153-00003Bobcat T750 TrackLoade
$2,500.00​
$6,513.75​
$8,964.45​
153-00004Takeuchi TL 12V2-CRHR
$2,500.00​
$7,754.62​
$10,466.82​
153-00005Takeuchi TL10
$2,500.00​
$7,754.62​
$10,466.82​
153-00006CAT 299D Skid Steer
$2,500.00​
$7,754.62​
$10,466.82​
153-00007Takeuchi TL 12
$2,500.00​
$7,754.62​
$10,466.82​
153-00008Takeuchi TL 12
$2,500.00​
$7,754.62​
$10,466.82​
153-0000920 CAT 299D3 Skid Stee
$2,500.00​
$7,754.62​
$10,466.82​
153-0000BSkid Steer Bucket and
$2,500.00​
$7,754.62​
$10,466.82​
153-0001020 CAT 299D3 Skid Stee
$2,500.00​
$7,754.62​
$10,466.82​
153-0001120 CAT 299D3 High Flow
$2,500.00​
$7,754.62​
$10,466.82​
153-0001221 CAT 289D3
$2,500.00​
$7,754.62​
$10,466.82​
153-02960Takeuchi TL240CR
$2,500.00​
$7,754.62​
$10,466.82​
153-02967Takeuchi TL10
$2,500.00​
$7,754.62​
$10,466.82​
153-02970Takeuchi TL10
$2,500.00​
$7,754.62​
$10,466.82​
153-02976Takeuchi TL10CR
$2,500.00​
$7,754.62​
$10,466.82​
153-02982Takeuchi TL8
$2,500.00​
$7,754.62​
$10,466.82​
153-02983Takeuchi TL8
$2,500.00​
$7,754.62​
$10,466.82​
153-02984Takeuchi TL10
$2,500.00​
$7,754.62​
$10,466.82​
153-02985Takeuchi TL10
$2,500.00​
$7,754.62​
$10,466.82​
153-02986Takeuchi TL10
$2,500.00​
$7,754.62​
$10,466.82​
153-02987Takeuchi TL12V
$2,500.00​
$7,754.62​
$10,466.82​
153-02988Takeuchi TL12V
$2,500.00​
$7,754.62​
$10,466.82​
 
Upvote 0
The value in col D is not in col A of the rates sheets, hence why it doesn't work.
Try
Excel Formula:
=IFNA(VLOOKUP(C2,'2023 RATES'!$A$1:$F$2000,5,0),VLOOKUP(D2,'2023 RATES'!$B$1:$F$2000,4,0))
 
Upvote 0
You're welcome & thanks for the feedback.
 
Upvote 0
OK, but I tried copying the text from cell D2 into the cell on the '2023 Rates' tab so they should match exactly. Any idea why it might not be recognized?
I use external data sources from our business system for some of my reference sheets. When using that data for VLookup (Xlookup, etc.), these problems often occur due to the inherent cell formats built into that imported data. Copying a Text or Value from another sheet like you tried sometimes works, if you reformat the target cell first (i.e. Text, General, Number) but it can be very frustrating to figure this one out. I've found that using Text and Value functions within your Lookup formula is the best solution if the external table is your cause. (in my case, the offending data fields are usually part numbers, which appear numerical but are actually text.)
 
Upvote 0

Forum statistics

Threads
1,223,230
Messages
6,170,883
Members
452,364
Latest member
springate

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