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!
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!