• Hi All

    Please note that at the Chandoo.org Forums there is Zero Tolerance to Spam

    Post Spam and you Will Be Deleted as a User


  • When starting a new post, to receive a quicker and more targeted answer, Please include a sample file in the initial post.

INDEX/MATCH for approximate date

Hi Everyone,

I'm trying to use an index match formula to find an approximate date but it's not working properly any help would be greatly appreciated.

I have 2 sheets, Sheet 1 and Sheet 2. Each sheet has a list of names in Column A with a trim formula, and a list of dates in column K. I'm trying to match the name in sheet 1 with the name in sheet 2, and the date in sheet 1 in column K with the closest date in column K in sheet 2 with the matching name, but its not working.


It is giving me dates but they don't correspond to the name I'm trying to match it too.


Luke M

Excel Ninja
Staff member
Wonderful, thanks.
Formula in M3:
Where formula displayed #n/a is when input date is later than any date in data. If you want to supress the errors, wrap the above in a IFERROR function like

Assumes that data in Sheet is grouped by employees, and dates are in descending order.
I tried the formula but no joy. Kept getting an error for too many arguments on the ,-1)) portion. I removed the :'s next to the INDEX, I never seen that in an index match formula. Either way thanks for your help. I'll keep trying.

Luke M

Excel Ninja
Staff member
We want to look at a dynamic range. With the MATCH and COUNTIF functions, we can find the First cell (via INDEX) and the last cell (via INDEX). Just like we say "the range of cells between A1 and A10 is shown as A1:A10" we can do the same with our INDEX functions, since INDEX returns a range.

Attached file has formula included.


Haseeb A

Active Member
Hello Marco, try this Array Formula

In M3, enter with CTRL+SHIFT+ENTER,


Then copy down.
I've tried both formula's and they work well but not completely exact. I've also built this formula but it only gave me the earliest date for each person in column A
also tried another one I built but this one didnt extract the closest dates either, it only occasionally worked.

Hmm I'll keeping working on it!!