cbrown6305
New Member
- Joined
- Nov 12, 2018
- Messages
- 13
- Office Version
- 2016
- Platform
- Windows
I have two tables, a table of charges and table of payments. I wrote the following array formula to bring a date of service from the charges table to the payments table using a common UniqueID filed that is common in the payments and charges table. The formula is in the payments table and brings in the date of service that is closest (but not later than) the related date of payment (related, as it, they have the same UniqueID). The formula is listed below
ChargesbyID is the charges table. All "@[" items reference columns within the payments table.
The formula works, but the charges table table has about 300,000 rows and the payments table as 360,000 rows, so it takes a crazy amount of time to run (i.e., >30 min). Is there a different way of doing this that doesn't lock me out of excel for an hour?
Excel Formula:
{=MAX(IF((ChargesbyID[Unique ID]=[@[Unique ID]])*(ChargesbyID[date_of_service]<=[@[date_of_payment]]),ChargesbyID[date_of_service]))}
ChargesbyID is the charges table. All "@[" items reference columns within the payments table.
The formula works, but the charges table table has about 300,000 rows and the payments table as 360,000 rows, so it takes a crazy amount of time to run (i.e., >30 min). Is there a different way of doing this that doesn't lock me out of excel for an hour?