VLOOKUP or INDEX/MATCH Date Range and Multiple Criteria

ariannem

New Member
Joined
Sep 28, 2020
Messages
3
Office Version
  1. 2016
Platform
  1. Windows
Hi, I'm trying to match two data ranges by date and client number, but all my VLOOKUP and INDEX MATCH formulas are coming up #N/A, so I was wondering if someone could help me out.

My two data ranges look like the following image (the actual data is several thousand rows in size, this is just an example)

Basically, what I want to do is match the date in column I to the date ranges in A and B, and the client number in J has to match the client number in C.
If date I falls between A and B, and client number J matches client number C, I want the number in D to show up in L.
In other words, L2 would show up as "A1" and L3 would be "C3".

I've tried using an array formula: =index ($D$2:$D$5, match (1, ((I2>=$A$2:$A$5)*(I2<=$B$2:$B$5)*(J2=$C$2:$C$5)), 0))
and a similar function using VLOOKUP, but both have failed to work.

Any suggestions? Thanks in advance!

002.PNG
 

Excel Facts

Waterfall charts in Excel?
Office 365 customers have access to Waterfall charts since late 2016. They were added to Excel 2019.
are the dates REAL dates formatted to YYYY/M/D or are they TEXT
If TEXT than >= or <= will not work.
to check
right click on a date cell and format as General - You should see a number
for example
2020/1/1 as a date 1st Jan 2020 would be 43831 as a Number
 
Upvote 0
Hi etaf, thanks for the reply.

The dates are all real dates formatted as yyyy/mm/dd, and they turn into numbers when formatted as general.
 
Upvote 0
There's nothing wrong with the formula
+Fluff New.xlsm
ABCDEFGHIJKL
1
201/01/202031/01/20201a107/01/20201a1
301/02/202003/02/20201a208/09/20202a3
402/09/202015/09/20202a3
5
Results
Cell Formulas
RangeFormula
L2:L3L2=INDEX($D$2:$D$5,MATCH(1,((I2>=$A$2:$A$5)*(I2<=$B$2:$B$5)*(J2=$C$2:$C$5)),0))
Press CTRL+SHIFT+ENTER to enter array formulas.


Check that your numbers are real numbers & not text
 
Upvote 0

Forum statistics

Threads
1,223,911
Messages
6,175,337
Members
452,636
Latest member
laura12345

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