ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Newbie : Comparing two spreadsheets (https://www.excelbanter.com/excel-programming/278254-newbie-comparing-two-spreadsheets.html)

Rich[_16_]

Newbie : Comparing two spreadsheets
 
I am using Excel 97.

I need to compare two different worksheets. The worksheets represent
daily sales activity. Column A in both worksheets represents the
customer ID, Column B is product description and Column C is sales
amount.

If the Customer ID (Column A) in yesterday's data appears again in
today's worksheet, I am to compare the sales (Column C ). I am to
substract yesterday's sales from today sales. The new report is to
appear in another worksheet like the example below.

Customer ID Item Description Sales

1 Bonds $1,000,000
2 Stocks ($100,000)

Any ideas how to approach this problem.

Dave Peterson[_3_]

Newbie : Comparing two spreadsheets
 
Take a look at =Vlookup()

You can do something like this in column D:

=IF(ISERROR(VLOOKUP(A1,[book2.xls]Sheet1!A$1:C$999,3,FALSE)),0,
VLOOKUP(A1,[book2.xls]Sheet1!A$1:C$999,3,FALSE))

where book2.xls, sheet1, A1:c999 contained yesterday's numbers.

Then use column E to do your subtraction.


Rich wrote:

I am using Excel 97.

I need to compare two different worksheets. The worksheets represent
daily sales activity. Column A in both worksheets represents the
customer ID, Column B is product description and Column C is sales
amount.

If the Customer ID (Column A) in yesterday's data appears again in
today's worksheet, I am to compare the sales (Column C ). I am to
substract yesterday's sales from today sales. The new report is to
appear in another worksheet like the example below.

Customer ID Item Description Sales

1 Bonds $1,000,000
2 Stocks ($100,000)

Any ideas how to approach this problem.


--

Dave Peterson



All times are GMT +1. The time now is 05:30 PM.

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