#1   Report Post  
Posted to microsoft.public.excel.misc
Hardy
 
Posts: n/a
Default SUMPRODUCT

Hi,

I have two worksheets "Expenses" and "Totals"
In "Expenses" Column A = Month
Column B = Name
Column E = Amount

In "Totals" Column A = Name
Col B-M are the months.

I would like the month columns in the "totals" sheet to reflect the total
"Amount" in "expenses" based on Month (Column A "Epenses") and the name in
Column A of "totals"

i use eg
=SUMPRODUCT(--(Expenses!A2:A6="September"),--(Expenses!B2:B6=A18),--(Expenses!E2:E6))

This works However

How do you set the formula up so that when new rows are added for workers
the formula can be copied?

and

How do you set the formula up so that when new rows are added in expenses
the totals change? So E2:E6 becomes E2:7 etc.

I think i have made sense
  #2   Report Post  
Posted to microsoft.public.excel.misc
Bob Phillips
 
Posts: n/a
Default SUMPRODUCT

Just use a larger range

=SUMPRODUCT(--(Expenses!$A$2:$A$2000=B$1),--(Expenses!$B$2:$B$2000=$A2),Expe
nses!$E$2:$E$2000))


--

HTH

RP
(remove nothere from the email address if mailing direct)


"Hardy" wrote in message
...
Hi,

I have two worksheets "Expenses" and "Totals"
In "Expenses" Column A = Month
Column B = Name
Column E = Amount

In "Totals" Column A = Name
Col B-M are the months.

I would like the month columns in the "totals" sheet to reflect the total
"Amount" in "expenses" based on Month (Column A "Epenses") and the name in
Column A of "totals"

i use eg

=SUMPRODUCT(--(Expenses!A2:A6="September"),--(Expenses!B2:B6=A18),--(Expense
s!E2:E6))

This works However

How do you set the formula up so that when new rows are added for workers
the formula can be copied?

and

How do you set the formula up so that when new rows are added in expenses
the totals change? So E2:E6 becomes E2:7 etc.

I think i have made sense



Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Sumproduct Peter B Excel Worksheet Functions 1 March 7th 05 01:59 PM
sumproduct causing memory errors? dave Excel Worksheet Functions 1 March 3rd 05 09:31 AM
Can I reference =, <, or > sign in SUMPRODUCT BobT Excel Discussion (Misc queries) 7 February 16th 05 01:58 PM
Sumproduct function not working Scott Summerlin Excel Worksheet Functions 12 December 4th 04 05:15 AM
adding two sumproduct formulas together ski2004_2005 Excel Worksheet Functions 1 November 12th 04 09:08 PM


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

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"