Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
Column d = date (mm/dd/yyyy)....column contains multiple days in month,
months in year Column f = widget Column h = sales force I need a formula that will calculate the monthly number of widgets by sales force Thanks |
#2
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
Try this:
Month = 11 (November) Widget = X Sales force = Y =SUMPRODUCT(--(MONTH(D1:D100)=11),--(F1:F100="X"),--(H1:H100="Y")) -- Biff Microsoft Excel MVP "Curtis" wrote in message ... Column d = date (mm/dd/yyyy)....column contains multiple days in month, months in year Column f = widget Column h = sales force I need a formula that will calculate the monthly number of widgets by sales force Thanks |
#3
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
Please forgive the somewhat newbie question, but in the formula below, what
are the two dashes for after the open parenthesis following sumproduct? "T. Valko" wrote: Try this: Month = 11 (November) Widget = X Sales force = Y =SUMPRODUCT(--(MONTH(D1:D100)=11),--(F1:F100="X"),--(H1:H100="Y")) -- Biff Microsoft Excel MVP "Curtis" wrote in message ... Column d = date (mm/dd/yyyy)....column contains multiple days in month, months in year Column f = widget Column h = sales force I need a formula that will calculate the monthly number of widgets by sales force Thanks |
#4
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
=SUMPRODUCT(--(MONTH(D1:D100)=11),--(F1:F100="X"),--(H1:H100="Y"))
Each of these logical expressions will return an array of either TRUE or FALSE: (MONTH(D1:D100)=11) (F1:F100="X") (H1:H100="Y") SUMPRODUCT works with numbers so we need to convert those TRUEs and FALSEs to numbers. One way to do that is to use the "--". The "--" coerces the TRUE to 1 and FALSE to 0. Then, all 3 arrays are multiplied together and summed which gives us the result of the formula. In this case, the result is a count. It would look something like this: 1*1*1=1 0*1*1=0 1*0*0=0 1*1*1=1 1*1*0=0 0*0*0=0 =SUMPRODUCT({1;0;0;1;0;0}) = 2 See this for a comprehensive explanation of SUMPRODUCT: http://xldynamic.com/source/xld.SUMPRODUCT.html -- Biff Microsoft Excel MVP "Lawrence" wrote in message ... Please forgive the somewhat newbie question, but in the formula below, what are the two dashes for after the open parenthesis following sumproduct? "T. Valko" wrote: Try this: Month = 11 (November) Widget = X Sales force = Y =SUMPRODUCT(--(MONTH(D1:D100)=11),--(F1:F100="X"),--(H1:H100="Y")) -- Biff Microsoft Excel MVP "Curtis" wrote in message ... Column d = date (mm/dd/yyyy)....column contains multiple days in month, months in year Column f = widget Column h = sales force I need a formula that will calculate the monthly number of widgets by sales force Thanks |
#5
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
Thanks so much!! you helped me simplify a formula I created on my spreadsheet!
"T. Valko" wrote: =SUMPRODUCT(--(MONTH(D1:D100)=11),--(F1:F100="X"),--(H1:H100="Y")) Each of these logical expressions will return an array of either TRUE or FALSE: (MONTH(D1:D100)=11) (F1:F100="X") (H1:H100="Y") SUMPRODUCT works with numbers so we need to convert those TRUEs and FALSEs to numbers. One way to do that is to use the "--". The "--" coerces the TRUE to 1 and FALSE to 0. Then, all 3 arrays are multiplied together and summed which gives us the result of the formula. In this case, the result is a count. It would look something like this: 1*1*1=1 0*1*1=0 1*0*0=0 1*1*1=1 1*1*0=0 0*0*0=0 =SUMPRODUCT({1;0;0;1;0;0}) = 2 See this for a comprehensive explanation of SUMPRODUCT: http://xldynamic.com/source/xld.SUMPRODUCT.html -- Biff Microsoft Excel MVP "Lawrence" wrote in message ... Please forgive the somewhat newbie question, but in the formula below, what are the two dashes for after the open parenthesis following sumproduct? "T. Valko" wrote: Try this: Month = 11 (November) Widget = X Sales force = Y =SUMPRODUCT(--(MONTH(D1:D100)=11),--(F1:F100="X"),--(H1:H100="Y")) -- Biff Microsoft Excel MVP "Curtis" wrote in message ... Column d = date (mm/dd/yyyy)....column contains multiple days in month, months in year Column f = widget Column h = sales force I need a formula that will calculate the monthly number of widgets by sales force Thanks |
#6
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
You're welcome. Thanks for the feedback!
-- Biff Microsoft Excel MVP "Lawrence" wrote in message ... Thanks so much!! you helped me simplify a formula I created on my spreadsheet! "T. Valko" wrote: =SUMPRODUCT(--(MONTH(D1:D100)=11),--(F1:F100="X"),--(H1:H100="Y")) Each of these logical expressions will return an array of either TRUE or FALSE: (MONTH(D1:D100)=11) (F1:F100="X") (H1:H100="Y") SUMPRODUCT works with numbers so we need to convert those TRUEs and FALSEs to numbers. One way to do that is to use the "--". The "--" coerces the TRUE to 1 and FALSE to 0. Then, all 3 arrays are multiplied together and summed which gives us the result of the formula. In this case, the result is a count. It would look something like this: 1*1*1=1 0*1*1=0 1*0*0=0 1*1*1=1 1*1*0=0 0*0*0=0 =SUMPRODUCT({1;0;0;1;0;0}) = 2 See this for a comprehensive explanation of SUMPRODUCT: http://xldynamic.com/source/xld.SUMPRODUCT.html -- Biff Microsoft Excel MVP "Lawrence" wrote in message ... Please forgive the somewhat newbie question, but in the formula below, what are the two dashes for after the open parenthesis following sumproduct? "T. Valko" wrote: Try this: Month = 11 (November) Widget = X Sales force = Y =SUMPRODUCT(--(MONTH(D1:D100)=11),--(F1:F100="X"),--(H1:H100="Y")) -- Biff Microsoft Excel MVP "Curtis" wrote in message ... Column d = date (mm/dd/yyyy)....column contains multiple days in month, months in year Column f = widget Column h = sales force I need a formula that will calculate the monthly number of widgets by sales force Thanks |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
SUMPRODUCT or INDEX/MATCH for multiple conditions and multiple rec | Excel Discussion (Misc queries) | |||
How do I add multiple values that match multiple conditions? | Excel Discussion (Misc queries) | |||
Multiple conditions and multiple return values | Excel Worksheet Functions | |||
Combining Text from multiple cells under multiple conditions | Excel Worksheet Functions | |||
How to multiple conditions to validate more than 2 conditions to . | Excel Worksheet Functions |