senoritacoconuts
New Member
- Joined
- Mar 8, 2017
- Messages
- 3
I am trying to easily reconcile two different accounting reports: one from our local system, and one from our accounts payable department. I've copied and pasted the data into a sheet as follows and am trying to determine where there are discrepancies between them:
From our local system (lines 2-1923)
Column B - Invoice #
Column C - Account
Column D - Project
Column E - Fund Total
From our accounts payable system (lines 2-1820)
Column I - Invoice #
Column J - Account
Column K - Project
Column L - Fund Total
In cell M2, I created the following array formula:
{=INDEX($E$2:$E$1923,MATCH(I2&J2&K2&L2,$B$2:$B$1923&$C$2:$C$1923&$D$2:$D$1923&$E$2:$E$1923,0))}
For example, the data in cells B2-E2 (which is one accounting 'string') must match on a corresponding row or 'string' in columns I-L exactly. My formula above works well, in that I get an "#N/A" in column M when there is an error found. However, ideally I would like a formula perhaps in multiple cells (one for each data element), that would show where the error is. In other words, what exactly is incorrect, the invoice number, or the account, or the project? Any helpful suggestions? I've been trying unsuccessfully over the last few weeks and am finally turning to you guys for help!
From our local system (lines 2-1923)
Column B - Invoice #
Column C - Account
Column D - Project
Column E - Fund Total
From our accounts payable system (lines 2-1820)
Column I - Invoice #
Column J - Account
Column K - Project
Column L - Fund Total
In cell M2, I created the following array formula:
{=INDEX($E$2:$E$1923,MATCH(I2&J2&K2&L2,$B$2:$B$1923&$C$2:$C$1923&$D$2:$D$1923&$E$2:$E$1923,0))}
For example, the data in cells B2-E2 (which is one accounting 'string') must match on a corresponding row or 'string' in columns I-L exactly. My formula above works well, in that I get an "#N/A" in column M when there is an error found. However, ideally I would like a formula perhaps in multiple cells (one for each data element), that would show where the error is. In other words, what exactly is incorrect, the invoice number, or the account, or the project? Any helpful suggestions? I've been trying unsuccessfully over the last few weeks and am finally turning to you guys for help!