ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Conditional formulas (https://www.excelbanter.com/excel-programming/303661-conditional-formulas.html)

Dale[_11_]

Conditional formulas
 
I'm currently summing a column of numbers using the
following formula:
=sumif(BA23:BA500,"y",N23:N500)

I would now like to break down the sum based on a second
condition ie. only sum the column cells where the above is
true and where the value of the cells in another column
equals 0 or 1 or 2 etc.
What I'm trying to do is derive subtotals of the sum above
based on the revision level where the BA cells are set
to "y". Does anyone have a suggestion?

Frank Kabel

Conditional formulas
 
Hi
try
SUMPRODUCT. e.g.
=SUMPRODUCT(--(BA23:BA500="y"),(BB23:BB500=1),N23:N500)

-----Original Message-----
I'm currently summing a column of numbers using the
following formula:
=sumif(BA23:BA500,"y",N23:N500)

I would now like to break down the sum based on a second
condition ie. only sum the column cells where the above

is
true and where the value of the cells in another column
equals 0 or 1 or 2 etc.
What I'm trying to do is derive subtotals of the sum

above
based on the revision level where the BA cells are set
to "y". Does anyone have a suggestion?
.


Frank Kabel

Conditional formulas
 
Hi
make this
=SUMPRODUCT(--(BA23:BA500="y"),--(BB23:BB500=1),N23:N500)

-----Original Message-----
Hi
try
SUMPRODUCT. e.g.
=SUMPRODUCT(--(BA23:BA500="y"),(BB23:BB500=1),N23:N500)

-----Original Message-----
I'm currently summing a column of numbers using the
following formula:
=sumif(BA23:BA500,"y",N23:N500)

I would now like to break down the sum based on a second
condition ie. only sum the column cells where the above

is
true and where the value of the cells in another column
equals 0 or 1 or 2 etc.
What I'm trying to do is derive subtotals of the sum

above
based on the revision level where the BA cells are set
to "y". Does anyone have a suggestion?
.

.


Dale[_11_]

Conditional formulas
 
Does SUMPRODUCT multiply the values of each array? I'm
not getting any totals when I try your recommendation.
WHat are you indicating with the -- inside the first
parenthesis?
I'll not be able to reply until Monday but thanks for any
suggestions you provide.
Dale
-----Original Message-----
Hi
try
SUMPRODUCT. e.g.
=SUMPRODUCT(--(BA23:BA500="y"),(BB23:BB500=1),N23:N500)

-----Original Message-----
I'm currently summing a column of numbers using the
following formula:
=sumif(BA23:BA500,"y",N23:N500)

I would now like to break down the sum based on a second
condition ie. only sum the column cells where the above

is
true and where the value of the cells in another column
equals 0 or 1 or 2 etc.
What I'm trying to do is derive subtotals of the sum

above
based on the revision level where the BA cells are set
to "y". Does anyone have a suggestion?
.

.


Frank Kabel

Conditional formulas
 
Hi
see my correction. the double minus is required for both
conditions (it coerces the boolean value to real numbers)

-----Original Message-----
Does SUMPRODUCT multiply the values of each array? I'm
not getting any totals when I try your recommendation.
WHat are you indicating with the -- inside the first
parenthesis?
I'll not be able to reply until Monday but thanks for any
suggestions you provide.
Dale
-----Original Message-----
Hi
try
SUMPRODUCT. e.g.
=SUMPRODUCT(--(BA23:BA500="y"),(BB23:BB500=1),N23:N500)

-----Original Message-----
I'm currently summing a column of numbers using the
following formula:
=sumif(BA23:BA500,"y",N23:N500)

I would now like to break down the sum based on a

second
condition ie. only sum the column cells where the above

is
true and where the value of the cells in another column
equals 0 or 1 or 2 etc.
What I'm trying to do is derive subtotals of the sum

above
based on the revision level where the BA cells are set
to "y". Does anyone have a suggestion?
.

.

.


Dale[_11_]

Conditional formulas
 
Excellent, that did the trick.
I really appreciate the help.
Regards,
Dale
-----Original Message-----
Hi
make this
=SUMPRODUCT(--(BA23:BA500="y"),--(BB23:BB500=1),N23:N500)

-----Original Message-----
Hi
try
SUMPRODUCT. e.g.
=SUMPRODUCT(--(BA23:BA500="y"),(BB23:BB500=1),N23:N500)

-----Original Message-----
I'm currently summing a column of numbers using the
following formula:
=sumif(BA23:BA500,"y",N23:N500)

I would now like to break down the sum based on a

second
condition ie. only sum the column cells where the above

is
true and where the value of the cells in another column
equals 0 or 1 or 2 etc.
What I'm trying to do is derive subtotals of the sum

above
based on the revision level where the BA cells are set
to "y". Does anyone have a suggestion?
.

.

.



All times are GMT +1. The time now is 03:40 PM.

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