top of page

Look up exact match and nearest date


AhoyNC has posted an array formula here, which you can use to look up one value that is an exact match in the array, and second value which finds the closed date in the array.

In this example we have a worksheet named Rates which shows rates on a different dates for a set of facilities.

On the main worksheet we have a customer list and want to look up the rates at different locations on particular dates.

We enter this formula to match the facilities in column C where they are paired with the dates in column B, and then designate that facilities and dates on the Rates worksheet should be paired as well. The value given after the INDEX formula is what is returned to the cell.

=INDEX(Rates!C:C,MATCH(C2&LOOKUP(B2,Rates!B:B),Rates!A:$A&Rates!B:B,0))

Press CTRL + SHIFT plus ENTER when entering this formula so that Excel recognizes it as an array formula and adds brackets around it.


Sean O'Shea has more than 20 years of experience in the litigation support field with major law firms in New York and San Francisco.   He is an ACEDS Certified eDiscovery Specialist and a Relativity Certified Administrator.

The views expressed in this blog are those of the owner and do not reflect the views or opinions of the owner’s employer.

If you have a question or comment about this blog, please make a submission using the form to the right. 

Your details were sent successfully!

© 2015 by Sean O'Shea . Proudly created with Wix.com

bottom of page