Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
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
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
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
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
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 |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Need help with sumproduct & dynamic ranges | Excel Worksheet Functions | |||
Sumproduct | Excel Worksheet Functions | |||
sumproduct causing memory errors? | Excel Worksheet Functions | |||
Sumproduct function not working | Excel Worksheet Functions | |||
adding two sumproduct formulas together | Excel Worksheet Functions |