ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   sumif with multiple conditions (https://www.excelbanter.com/excel-worksheet-functions/46650-sumif-multiple-conditions.html)

Ray

sumif with multiple conditions
 
I have three columns: a, b & c and need sum the figures on c if a = week1
and b = empty. Can someone suggest a formula to resolve this issue.

Thanks,

Ray



KL

=SUMPRODUCT(--(A1:A100="week1"),--(B1:B100=""),C1:C100)

or a little slower:

=SUMPRODUCT((A1:A100="week1")*(B1:B100="")*C1:C100 )

Regards,
KL


"Ray" wrote in message
...
I have three columns: a, b & c and need sum the figures on c if a = week1
and b = empty. Can someone suggest a formula to resolve this issue.

Thanks,

Ray




Ray

KL,

Thanks for your useful suggestion. Is it possible to apply to countif
function as well?

Thanks,

Ray

"KL" wrote in message
...
=SUMPRODUCT(--(A1:A100="week1"),--(B1:B100=""),C1:C100)

or a little slower:

=SUMPRODUCT((A1:A100="week1")*(B1:B100="")*C1:C100 )

Regards,
KL


"Ray" wrote in message
...
I have three columns: a, b & c and need sum the figures on c if a = week1
and b = empty. Can someone suggest a formula to resolve this issue.

Thanks,

Ray






KL

I guess you meant SUMIF. Don't think so, SUMIF takes only 3 arguments.
Regards,
KL


"Ray" wrote in message
...
KL,

Thanks for your useful suggestion. Is it possible to apply to countif
function as well?

Thanks,

Ray

"KL" wrote in message
...
=SUMPRODUCT(--(A1:A100="week1"),--(B1:B100=""),C1:C100)

or a little slower:

=SUMPRODUCT((A1:A100="week1")*(B1:B100="")*C1:C100 )

Regards,
KL


"Ray" wrote in message
...
I have three columns: a, b & c and need sum the figures on c if a = week1
and b = empty. Can someone suggest a formula to resolve this issue.

Thanks,

Ray








Bob Phillips

=SUMPRODUCT((A1:A100="week1")*(B1:B100=""))


--
HTH

Bob Phillips

"Ray" wrote in message
...
KL,

Thanks for your useful suggestion. Is it possible to apply to countif
function as well?

Thanks,

Ray

"KL" wrote in message
...
=SUMPRODUCT(--(A1:A100="week1"),--(B1:B100=""),C1:C100)

or a little slower:

=SUMPRODUCT((A1:A100="week1")*(B1:B100="")*C1:C100 )

Regards,
KL


"Ray" wrote in message
...
I have three columns: a, b & c and need sum the figures on c if a =

week1
and b = empty. Can someone suggest a formula to resolve this issue.

Thanks,

Ray








Ray

KL,

No, I mean the same syntax is applied to countif. It seems not workable!

Ray

"KL" wrote in message
...
I guess you meant SUMIF. Don't think so, SUMIF takes only 3 arguments.
Regards,
KL


"Ray" wrote in message
...
KL,

Thanks for your useful suggestion. Is it possible to apply to countif
function as well?

Thanks,

Ray

"KL" wrote in message
...
=SUMPRODUCT(--(A1:A100="week1"),--(B1:B100=""),C1:C100)

or a little slower:

=SUMPRODUCT((A1:A100="week1")*(B1:B100="")*C1:C100 )

Regards,
KL


"Ray" wrote in message
...
I have three columns: a, b & c and need sum the figures on c if a =
week1 and b = empty. Can someone suggest a formula to resolve this
issue.

Thanks,

Ray










Domenic

Is this what you mean?

=SUMPRODUCT(--(A1:A100="week1"),--(B1:B100=""))

In article ,
"Ray" wrote:

KL,

Thanks for your useful suggestion. Is it possible to apply to countif
function as well?

Thanks,

Ray


KL

Ray,

I guess Bob and Domenic have answered your question ;-) It is workable.

Regards,
KL


"Ray" wrote in message
...
KL,

No, I mean the same syntax is applied to countif. It seems not workable!

Ray

"KL" wrote in message
...
I guess you meant SUMIF. Don't think so, SUMIF takes only 3 arguments.
Regards,
KL


"Ray" wrote in message
...
KL,

Thanks for your useful suggestion. Is it possible to apply to countif
function as well?

Thanks,

Ray

"KL" wrote in message
...
=SUMPRODUCT(--(A1:A100="week1"),--(B1:B100=""),C1:C100)

or a little slower:

=SUMPRODUCT((A1:A100="week1")*(B1:B100="")*C1:C100 )

Regards,
KL


"Ray" wrote in message
...
I have three columns: a, b & c and need sum the figures on c if a =
week1 and b = empty. Can someone suggest a formula to resolve this
issue.

Thanks,

Ray












Ray

Thanks for all useful suggestions!

Ray

"Domenic" wrote in message
...
Is this what you mean?

=SUMPRODUCT(--(A1:A100="week1"),--(B1:B100=""))

In article ,
"Ray" wrote:

KL,

Thanks for your useful suggestion. Is it possible to apply to countif
function as well?

Thanks,

Ray





All times are GMT +1. The time now is 07:10 PM.

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