ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   Lookup & Match formula (https://www.excelbanter.com/excel-worksheet-functions/160765-lookup-match-formula.html)

Danny

Lookup & Match formula
 
Hi,

I have a worksheet that I send to HQ every week:

Col A = Reference Number
Col B = Amount
Col C = Name
etc.

At the end of the month HQ sends me a consolidated report for the month
(same column headings).

Please write me the formula on how to match my "Reference Number" to the
consolidated report and see if the "Amount" of the corresponding "Reference
Number" is still the same.

My weekly report usually has 200-300 rows. The consolidated report is up to
5,000 rows.

Thank you.

Paul

Lookup & Match formula
 
On Oct 3, 4:13 pm, Danny wrote:
Hi,

I have a worksheet that I send to HQ every week:

Col A = Reference Number
Col B = Amount
Col C = Name
etc.

At the end of the month HQ sends me a consolidated report for the month
(same column headings).

Please write me the formula on how to match my "Reference Number" to the
consolidated report and see if the "Amount" of the corresponding "Reference
Number" is still the same.


Something like this ought to do the trick:
=IF(VLOOKUP(A2,Sheet2!A:C,2)=B2,"OK","DIF")
where this would be a new column in your original report and Sheet 2
is the consolidated report. VLOOKUP does the matching and finds the
corresponding amount while IF does the comparison to see if the value
is the same.

That should at least point you in the right direction.



JMB

Lookup & Match formula
 
You could use vlookup in an empty column next to your data. Assuming your
reference number is in A2 and the consolidated data is in another workbook on
a worksheet called Consolidated Data in A1:C5000, try:

=A2-vlookup(A2, '[WorkbookName]Consolidated Data'!A$1:B$5000, 2, 0)

then check for non-zero values (by filtering, formula, or just scanning
through it).


"Danny" wrote:

Hi,

I have a worksheet that I send to HQ every week:

Col A = Reference Number
Col B = Amount
Col C = Name
etc.

At the end of the month HQ sends me a consolidated report for the month
(same column headings).

Please write me the formula on how to match my "Reference Number" to the
consolidated report and see if the "Amount" of the corresponding "Reference
Number" is still the same.

My weekly report usually has 200-300 rows. The consolidated report is up to
5,000 rows.

Thank you.


Danny

Lookup & Match formula
 
Thanks a lot. Have a nice evening!

"JMB" wrote:

You could use vlookup in an empty column next to your data. Assuming your
reference number is in A2 and the consolidated data is in another workbook on
a worksheet called Consolidated Data in A1:C5000, try:

=A2-vlookup(A2, '[WorkbookName]Consolidated Data'!A$1:B$5000, 2, 0)

then check for non-zero values (by filtering, formula, or just scanning
through it).


"Danny" wrote:

Hi,

I have a worksheet that I send to HQ every week:

Col A = Reference Number
Col B = Amount
Col C = Name
etc.

At the end of the month HQ sends me a consolidated report for the month
(same column headings).

Please write me the formula on how to match my "Reference Number" to the
consolidated report and see if the "Amount" of the corresponding "Reference
Number" is still the same.

My weekly report usually has 200-300 rows. The consolidated report is up to
5,000 rows.

Thank you.



All times are GMT +1. The time now is 08:37 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
ExcelBanter.com