ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   How to make a nested SUMIF possible (https://www.excelbanter.com/excel-worksheet-functions/117803-how-make-nested-sumif-possible.html)

paul

How to make a nested SUMIF possible
 
I am trying to sum a column ("S") based on fulfilling 2 criteria in 2
other columns (C = A1 AND O = 1, 2, 3...12). I want to do this in a
formula rather than a DSUM since my criteria changes in 2 different
ways; Column C follows a cell reference, and Column O follows months 1
- 12.

Suggestions?


Don Guillett

How to make a nested SUMIF possible
 
maybe
=sumproduct((c2:c22=a1)*(o2:o220)*(o2:o22<=12)*s2 :s22)

--
Don Guillett
SalesAid Software

"paul" wrote in message
oups.com...
I am trying to sum a column ("S") based on fulfilling 2 criteria in 2
other columns (C = A1 AND O = 1, 2, 3...12). I want to do this in a
formula rather than a DSUM since my criteria changes in 2 different
ways; Column C follows a cell reference, and Column O follows months 1
- 12.

Suggestions?




paul

How to make a nested SUMIF possible
 
Thanks... I tried sumproduct and received the #num error or wacko
results with SUM(IF(...

=SUMPRODUCT((JDE=A24)*(Month=4)*USD)

JDE = Column C
Month = Column O
USD = summing all $$$
Month = discreet value to be changed by cell.

Don Guillett wrote:
maybe
=sumproduct((c2:c22=a1)*(o2:o220)*(o2:o22<=12)*s2 :s22)

--
Don Guillett
SalesAid Software

"paul" wrote in message
oups.com...
I am trying to sum a column ("S") based on fulfilling 2 criteria in 2
other columns (C = A1 AND O = 1, 2, 3...12). I want to do this in a
formula rather than a DSUM since my criteria changes in 2 different
ways; Column C follows a cell reference, and Column O follows months 1
- 12.

Suggestions?



paul

How to make a nested SUMIF possible
 
Thanks!!!!!!!!!!!!!!

I guess it did not like my "NAMED" ranges... It worked when I used the
actual cell references.

=SUMPRODUCT(('Raw Data'!$C$2:$C$6270=$A2)*('Raw
Data'!$O$2:$O$6270=1)*'Raw Data'!$S$2:$S$6270)


Don Guillett wrote:
maybe
=sumproduct((c2:c22=a1)*(o2:o220)*(o2:o22<=12)*s2 :s22)

--
Don Guillett
SalesAid Software

"paul" wrote in message
oups.com...
I am trying to sum a column ("S") based on fulfilling 2 criteria in 2
other columns (C = A1 AND O = 1, 2, 3...12). I want to do this in a
formula rather than a DSUM since my criteria changes in 2 different
ways; Column C follows a cell reference, and Column O follows months 1
- 12.

Suggestions?



paul

How to make a nested SUMIF possible
 
Thanks!!!!!!!!!!!!!!

I guess it did not like my "NAMED" ranges... It worked when I used the
actual cell references.

=SUMPRODUCT(('Raw Data'!$C$2:$C$6270=$A2)*('Raw
Data'!$O$2:$O$6270=1)*'Raw Data'!$S$2:$S$6270)


Don Guillett wrote:
maybe
=sumproduct((c2:c22=a1)*(o2:o220)*(o2:o22<=12)*s2 :s22)

--
Don Guillett
SalesAid Software

"paul" wrote in message
oups.com...
I am trying to sum a column ("S") based on fulfilling 2 criteria in 2
other columns (C = A1 AND O = 1, 2, 3...12). I want to do this in a
formula rather than a DSUM since my criteria changes in 2 different
ways; Column C follows a cell reference, and Column O follows months 1
- 12.

Suggestions?



Bob Phillips

How to make a nested SUMIF possible
 
Note that SUMPRODUCT doesn't work with complete columns, you have to specify
a range.

--
HTH

Bob Phillips

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

"paul" wrote in message
oups.com...
Thanks... I tried sumproduct and received the #num error or wacko
results with SUM(IF(...

=SUMPRODUCT((JDE=A24)*(Month=4)*USD)

JDE = Column C
Month = Column O
USD = summing all $$$
Month = discreet value to be changed by cell.

Don Guillett wrote:
maybe
=sumproduct((c2:c22=a1)*(o2:o220)*(o2:o22<=12)*s2 :s22)

--
Don Guillett
SalesAid Software

"paul" wrote in message
oups.com...
I am trying to sum a column ("S") based on fulfilling 2 criteria in 2
other columns (C = A1 AND O = 1, 2, 3...12). I want to do this in a
formula rather than a DSUM since my criteria changes in 2 different
ways; Column C follows a cell reference, and Column O follows months 1
- 12.

Suggestions?






All times are GMT +1. The time now is 09:32 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com