Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
Is there a way to use Sumproduct for a range but exclude the calculation of
certain rows. In example below use =sumproduct(a2:a6*c2:e6) , but somehow exclude where "criteria" is "y?" A B C D E 1 Criteria Multiplier Jan Feb Mar 2 x 0.5 120 105 90 3 x 0.4 90 85 120 4 y 0.7 105 120 85 5 y 0.4 120 70 105 6 x 0.2 90 90 70 Thanks |
#2
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
Try this...
=SUMPRODUCT(((A2:A6<"y")*B2:B6)*C2:E6) -- Rick (MVP - Excel) "Eric" wrote in message ... Is there a way to use Sumproduct for a range but exclude the calculation of certain rows. In example below use =sumproduct(a2:a6*c2:e6) , but somehow exclude where "criteria" is "y?" A B C D E 1 Criteria Multiplier Jan Feb Mar 2 x 0.5 120 105 90 3 x 0.4 90 85 120 4 y 0.7 105 120 85 5 y 0.4 120 70 105 6 x 0.2 90 90 70 Thanks |
#3
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
=SUMPRODUCT((A2:B6="x")*(B2:B6*C2:E6))
On Dec 4, 12:59*am, Eric wrote: Is there a way to use Sumproduct for a range but exclude the calculation of certain rows. *In example below use =sumproduct(a2:a6*c2:e6) , but somehow exclude where "criteria" is "y?" * * * * A * * * B * * * C * * * D * * * E * * * 1 * * * Criteria * * * *Multiplier * * *Jan * * Feb * * Mar * * 2 * * * x * * * 0.5 * * 120 * * 105 * * 90 * * * 3 * * * x * * * 0.4 * * 90 * * *85 * * *120 * * 4 * * * y * * * 0.7 * * 105 * * 120 * * 85 * * * 5 * * * y * * * 0.4 * * 120 * * 70 * * *105 * * 6 * * * x * * * 0.2 * * 90 * * *90 * * *70 * * * Thanks |
#4
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
=SUMPRODUCT((B2:B6)*(C2:C6)*(A2:A6<"y"))
-- Gary''s Student - gsnu200817 |
#5
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
Thanks. That worked perfectly.
"Gary''s Student" wrote: =SUMPRODUCT((B2:B6)*(C2:C6)*(A2:A6<"y")) -- Gary''s Student - gsnu200817 |
#6
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
Hi Gary,
What if some cells are blanks in the value coloumn or there are no value and I don't want a return answer of #div ? "Gary''s Student" wrote: =SUMPRODUCT((B2:B6)*(C2:C6)*(A2:A6<"y")) -- Gary''s Student - gsnu200817 |
#7
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
=SUMPRODUCT(--(A2:A6<"Y"),B2:B6,C2:C6,D2:D6,E2:E6)
will get it for you. "Eric" wrote: Is there a way to use Sumproduct for a range but exclude the calculation of certain rows. In example below use =sumproduct(a2:a6*c2:e6) , but somehow exclude where "criteria" is "y?" A B C D E 1 Criteria Multiplier Jan Feb Mar 2 x 0.5 120 105 90 3 x 0.4 90 85 120 4 y 0.7 105 120 85 5 y 0.4 120 70 105 6 x 0.2 90 90 70 Thanks |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
SUMPRODUCT using more than 2 criteria? | Excel Worksheet Functions | |||
SUMPRODUCT using more than 2 criteria? | Excel Worksheet Functions | |||
SUMPRODUCT - 2 Criteria | Excel Worksheet Functions | |||
SUMPRODUCT with 3 criteria | Excel Discussion (Misc queries) | |||
Sumproduct with two criteria | Excel Worksheet Functions |