ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   Connecting Worksheets using and "if" "then" formula (https://www.excelbanter.com/excel-worksheet-functions/191614-connecting-worksheets-using-if-then-formula.html)

sstensrud

Connecting Worksheets using and "if" "then" formula
 
I have a worksheet containing an annual budget. Column A is coded to help
identify the source of the revenue/credit and has the debit and credit
figures appear in columns "E" and "F". I want to create a formula that
allows me to summarize the totals for each code. ie, find all the similar
codes (code 1, code 2, code 3, etc) in column A and then add all the
corresponding figures in columns E and F, to appear in one lump sum in a
different worksheet. This will give me a birdseye view of where all the
money went for each code.

So, I imagine you have to go in the summary worksheet box, and enter a
statement akin to: If A=1, then SUM(E&F). But, I want the total of ALL
columns E and F taht correspond to a code in column A.

Does this make sense? Thank you for your help.

T. Valko

Connecting Worksheets using and "if" "then" formula
 
Try something like this:

=SUMPRODUCT((Sheet1!A1:A20=1)*Sheet1!E1:F20)

--
Biff
Microsoft Excel MVP


"sstensrud" wrote in message
...
I have a worksheet containing an annual budget. Column A is coded to help
identify the source of the revenue/credit and has the debit and credit
figures appear in columns "E" and "F". I want to create a formula that
allows me to summarize the totals for each code. ie, find all the similar
codes (code 1, code 2, code 3, etc) in column A and then add all the
corresponding figures in columns E and F, to appear in one lump sum in a
different worksheet. This will give me a birdseye view of where all the
money went for each code.

So, I imagine you have to go in the summary worksheet box, and enter a
statement akin to: If A=1, then SUM(E&F). But, I want the total of ALL
columns E and F taht correspond to a code in column A.

Does this make sense? Thank you for your help.





All times are GMT +1. The time now is 10:03 AM.

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