I have to sets of data to compare invoice number is column A and amount in B verse C & D . Answer in E
i have much more data then this going down the whole sheet. What i am trying to do in column E and need help with is a formula that if column A invoice number and column B on same line match column C and D to return zero. If it cant locate the invoice number in column A & C then return NA. which means its not found. As you can see if it finds A & B with C & D and the amount if off it return the difference. Can this be done in a formula or macro. Any help would be apricated.
Invoice number is column A to E
Excel 2016 (Windows) 32 bit
[Table="width:, class:head"][tr=bgcolor:#888888][th] [/th][th]
[tr=bgcolor:#FFFFFF][td=bgcolor:#888888]
[tr=bgcolor:#FFFFFF][td=bgcolor:#888888]
[tr=bgcolor:#FFFFFF][td=bgcolor:#888888]
[tr=bgcolor:#FFFFFF][td=bgcolor:#888888]
[tr=bgcolor:#FFFFFF][td=bgcolor:#888888]
[/table][Table="width:, class:grid"][tr][td]Sheet: Payroll Week Ending[/td][/tr][/table]
i have much more data then this going down the whole sheet. What i am trying to do in column E and need help with is a formula that if column A invoice number and column B on same line match column C and D to return zero. If it cant locate the invoice number in column A & C then return NA. which means its not found. As you can see if it finds A & B with C & D and the amount if off it return the difference. Can this be done in a formula or macro. Any help would be apricated.
Invoice number is column A to E
Excel 2016 (Windows) 32 bit
[Table="width:, class:head"][tr=bgcolor:#888888][th] [/th][th]
A
[/th][th]B
[/th][th]C
[/th][th]D
[/th][th]E
[/th][/tr][tr=bgcolor:#FFFFFF][td=bgcolor:#888888]
1
[/td][td]Invoice Number[/td][td] Amount [/td][td]Invoice Number [/td][td] Amount [/td][td] Diffrence [/td][/tr][tr=bgcolor:#FFFFFF][td=bgcolor:#888888]
2
[/td][td]25613
[/td][td]$ 600.00
[/td][td]25613
[/td][td]$ 750.00
[/td][td]$ (150.00)
[/td][/tr][tr=bgcolor:#FFFFFF][td=bgcolor:#888888]
3
[/td][td]15623
[/td][td]$ 1,200.00
[/td][td]45652
[/td][td]$ 500.00
[/td][td] NA [/td][/tr][tr=bgcolor:#FFFFFF][td=bgcolor:#888888]
4
[/td][td]45698
[/td][td]$ 1,500.00
[/td][td]45698
[/td][td]$ 1,500.00
[/td][td]$ -
[/td][/tr][tr=bgcolor:#FFFFFF][td=bgcolor:#888888]
5
[/td][td]46523
[/td][td]$ 1,600.00
[/td][td]46523
[/td][td]$ 1,650.00
[/td][td]$ (50.00)
[/td][/tr][/table][Table="width:, class:grid"][tr][td]Sheet: Payroll Week Ending[/td][/tr][/table]