View Single Post
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
T. Valko T. Valko is offline
external usenet poster
 
Posts: 15,768
Default 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.