#1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 4
Default using sumproduct

I need help trying to get a formula right.

On a worksheet named "GM", column A contains dates. Column E contains
numbers which I eventually want summed. Column H contains either the # 1, 2,
or 3.

On another worksheet, column A contains start dates and column B contains
end dates. In column C, I want to look at all rows of sheet "GM" and sum
column E if the date of that row falls between the start and end dates on the
current sheet AND if column H = 1.

Here's what I have but all I get is "#VALUE":

=SUMPRODUCT(GM!H2:H224=1,AND(GM!A2:A224=A2,GM!A2: A224<=B2),(GM!E2:E224))

  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 10,593
Default using sumproduct

=SUMPRODUCT(--(GM!H2:H224=1),--(GM!A2:A224=A2),--(GM!A2:A224<=B2),GM!E2:E22
4)



--
HTH

Bob Phillips

(replace somewhere in email address with gmail if mailing direct)

"hankinator" wrote in message
...
I need help trying to get a formula right.

On a worksheet named "GM", column A contains dates. Column E contains
numbers which I eventually want summed. Column H contains either the # 1,

2,
or 3.

On another worksheet, column A contains start dates and column B contains
end dates. In column C, I want to look at all rows of sheet "GM" and sum
column E if the date of that row falls between the start and end dates on

the
current sheet AND if column H = 1.

Here's what I have but all I get is "#VALUE":

=SUMPRODUCT(GM!H2:H224=1,AND(GM!A2:A224=A2,GM!A2: A224<=B2),(GM!E2:E224))



  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 4
Default using sumproduct

Thank you so much for the fast response! It works beautifully!

"Bob Phillips" wrote:

=SUMPRODUCT(--(GM!H2:H224=1),--(GM!A2:A224=A2),--(GM!A2:A224<=B2),GM!E2:E22
4)



--
HTH

Bob Phillips

(replace somewhere in email address with gmail if mailing direct)

"hankinator" wrote in message
...
I need help trying to get a formula right.

On a worksheet named "GM", column A contains dates. Column E contains
numbers which I eventually want summed. Column H contains either the # 1,

2,
or 3.

On another worksheet, column A contains start dates and column B contains
end dates. In column C, I want to look at all rows of sheet "GM" and sum
column E if the date of that row falls between the start and end dates on

the
current sheet AND if column H = 1.

Here's what I have but all I get is "#VALUE":

=SUMPRODUCT(GM!H2:H224=1,AND(GM!A2:A224=A2,GM!A2: A224<=B2),(GM!E2:E224))




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
Need help with sumproduct & dynamic ranges bill_s1416 Excel Worksheet Functions 1 March 19th 06 03:36 AM
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
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 11:43 AM.

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

About Us

"It's about Microsoft Excel"