MATCH function question/problem (multi-criteria)

Brian.Crawford

Board Regular
Joined
Oct 3, 2007
Messages
136
I have 2 WS one with "time-entry" data (days worked) the other with "work-completed" (1 unit of work per row). I must match the 400,000 "work-completed" to 33,000 "time-entry records" ie Link/associate the "work-completed" to "time-entry" by DATE (there are multiple "work-completed" records per day per employee).
.
They both have a "project-type" and "employee-ID" in common (which I have already combined as a single key) but the date in the "work-completed" WS is not necessarily an exact match to the dates in the "time-entry" records. It is an approximate match where the "work-completed" date could be a few days later (or more) than the "time entry" date (but would always be greater than the time entry date if they do not match).
.
I have tried various match formulas, including making a single key including the date(serial), sorting the "time-entry" data with both MATCH types (1, -1), etc. I've also tried array formula but don't appear to be able to make exact match (for "project-type" & "employee-ID") at the same time as the required approx. match for the date.
.
Give the volume of data this needs to be relatively fast as even a simple match can take 5-10 minutes (on a very high-end machine).

All advice appreciated
Thanks
Brian
 

Excel Facts

How to change case of text in Excel?
Use =UPPER() for upper case, =LOWER() for lower case, and =PROPER() for proper case. PROPER won't capitalize second c in Mccartney
Updated: need to add some clarity at the end of the 2nd paragraph.

I have 2 WS one with "time-entry" data (days worked) the other with "work-completed" (1 unit of work per row). I must match the 400,000 "work-completed" to 33,000 "time-entry records" ie Link/associate the "work-completed" to "time-entry" by DATE (there are multiple "work-completed" records per day per employee).
.
They both have a "project-type" and "employee-ID" in common (which I have already combined as a single key) but the date in the "work-completed" WS is not necessarily an exact match to the dates in the "time-entry" records. It is an approximate match where the "work-completed" date could be a few days later (or more) than the "time entry" date (but would always be greater than the time entry date if they do not match). Effectively I need to then back-date the “work-completed” record to the date of the most closely related (ie closest previously dated) “time-entry” record that matches the “project-type” & “employee-ID".
.
I have tried various match formulas, including making a single key including the date(serial), sorting the "time-entry" data with both MATCH types (1, -1), etc. I've also tried array formula but don't appear to be able to make exact match (for "project-type" & "employee-ID") at the same time as the required approx. match for the date.
.
Give the volume of data this needs to be relatively fast as even a simple match can take 5-10 minutes (on a very high-end machine).

All advice appreciated
Thanks
Brian
 
Last edited:
Upvote 0

Forum statistics

Threads
1,215,326
Messages
6,124,263
Members
449,149
Latest member
mwdbActuary

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