ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   sum column when it meets certain conditions (https://www.excelbanter.com/excel-worksheet-functions/100640-sum-column-when-meets-certain-conditions.html)

jimswinder

sum column when it meets certain conditions
 
I am trying to sum a column when it meets two conditions. I have tried the
following:

=IF('Service Request Log'!$B$4:$B$5000,$A189,SUMPRODUCT(--(LEFT('Service
Request Log'!M$4:M$5000,3)="asa")))

But it is totaling the column whether or not it meets the first condition of
('Service Request Log'!$B$4:$B$5000,$A189).

Any suggestions?

Thanks...

Bondi

sum column when it meets certain conditions
 

jimswinder wrote:
I am trying to sum a column when it meets two conditions. I have tried the
following:

=IF('Service Request Log'!$B$4:$B$5000,$A189,SUMPRODUCT(--(LEFT('Service
Request Log'!M$4:M$5000,3)="asa")))

But it is totaling the column whether or not it meets the first condition of
('Service Request Log'!$B$4:$B$5000,$A189).

Any suggestions?

Thanks...


Hi Jim,

Maybe the information on this site will be helpful for you:

http://www.xldynamic.com/source/xld.SUMPRODUCT.html

Regards,
Bondi


jimswinder

sum column when it meets certain conditions
 
Sorry...read the whole thing and tried different formulas (see below)...still
can't get it to come up with the correct result.

=SUMPRODUCT(--('Service Request Log'!$B$4:$B$5000=$A189),(LEFT('Service
Request Log'!M4:M5000,3)="asa"))

=SUMPRODUCT(--('Service Request Log'!$B$4:$B$5000=$A190),('Service Request
Log'!$M$4:$M$5000))


"Bondi" wrote:


jimswinder wrote:
I am trying to sum a column when it meets two conditions. I have tried the
following:

=IF('Service Request Log'!$B$4:$B$5000,$A189,SUMPRODUCT(--(LEFT('Service
Request Log'!M$4:M$5000,3)="asa")))

But it is totaling the column whether or not it meets the first condition of
('Service Request Log'!$B$4:$B$5000,$A189).

Any suggestions?

Thanks...


Hi Jim,

Maybe the information on this site will be helpful for you:

http://www.xldynamic.com/source/xld.SUMPRODUCT.html

Regards,
Bondi



jimswinder

sum column when it meets certain conditions
 
I found my problem...I had a comma where I should have had a "*".

=SUMPRODUCT(--('Service Request Log'!$B$4:$B$5000=$A190)*(LEFT('Service
Request Log'!M$4:M$5000,3)="asa"))

thanks for the help. :-)

"jimswinder" wrote:

Sorry...read the whole thing and tried different formulas (see below)...still
can't get it to come up with the correct result.

=SUMPRODUCT(--('Service Request Log'!$B$4:$B$5000=$A189),(LEFT('Service
Request Log'!M4:M5000,3)="asa"))

=SUMPRODUCT(--('Service Request Log'!$B$4:$B$5000=$A190),('Service Request
Log'!$M$4:$M$5000))


"Bondi" wrote:


jimswinder wrote:
I am trying to sum a column when it meets two conditions. I have tried the
following:

=IF('Service Request Log'!$B$4:$B$5000,$A189,SUMPRODUCT(--(LEFT('Service
Request Log'!M$4:M$5000,3)="asa")))

But it is totaling the column whether or not it meets the first condition of
('Service Request Log'!$B$4:$B$5000,$A189).

Any suggestions?

Thanks...


Hi Jim,

Maybe the information on this site will be helpful for you:

http://www.xldynamic.com/source/xld.SUMPRODUCT.html

Regards,
Bondi



Bondi

sum column when it meets certain conditions
 

jimswinder wrote:
I found my problem...I had a comma where I should have had a "*".

=SUMPRODUCT(--('Service Request Log'!$B$4:$B$5000=$A190)*(LEFT('Service
Request Log'!M$4:M$5000,3)="asa"))

thanks for the help. :-)

"jimswinder" wrote:

Sorry...read the whole thing and tried different formulas (see below)...still
can't get it to come up with the correct result.

=SUMPRODUCT(--('Service Request Log'!$B$4:$B$5000=$A189),(LEFT('Service
Request Log'!M4:M5000,3)="asa"))

=SUMPRODUCT(--('Service Request Log'!$B$4:$B$5000=$A190),('Service Request
Log'!$M$4:$M$5000))


"Bondi" wrote:


jimswinder wrote:
I am trying to sum a column when it meets two conditions. I have tried the
following:

=IF('Service Request Log'!$B$4:$B$5000,$A189,SUMPRODUCT(--(LEFT('Service
Request Log'!M$4:M$5000,3)="asa")))

But it is totaling the column whether or not it meets the first condition of
('Service Request Log'!$B$4:$B$5000,$A189).

Any suggestions?

Thanks...

Hi Jim,

Maybe the information on this site will be helpful for you:

http://www.xldynamic.com/source/xld.SUMPRODUCT.html

Regards,
Bondi



Good stuff,

Regards and best of luck,
Bondi



All times are GMT +1. The time now is 05:52 AM.

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