tiredofit
Well-known Member
- Joined
- Apr 11, 2013
- Messages
- 1,926
- Office Version
- 365
- 2019
- Platform
- Windows
The problem I have involves looking for records within 2 tables.
Table1, (the source), contains 100 records. Table2, (the sink), contains 1000 records.
So to check if each record in Table1 is contained in Table2, looping would involve 100x1000=100,000 times (if I'm not mistaken).
If instead I were to use a match or vlookup, I assume it will be faster?
If so, the problem is that I have other criteria to look up and one such criteria is if the date of a record in Table1 is within a week of the date of a record in Table2.
Using vlookup and match will only find exact matches, so is there a better solution?
Thanks
Table1, (the source), contains 100 records. Table2, (the sink), contains 1000 records.
So to check if each record in Table1 is contained in Table2, looping would involve 100x1000=100,000 times (if I'm not mistaken).
If instead I were to use a match or vlookup, I assume it will be faster?
If so, the problem is that I have other criteria to look up and one such criteria is if the date of a record in Table1 is within a week of the date of a record in Table2.
Using vlookup and match will only find exact matches, so is there a better solution?
Thanks
Last edited: