Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 32
Default 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...
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 94
Default 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

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 32
Default 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


  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 32
Default 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


  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 94
Default 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

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Column picked randomly with probability relative to number of entr Neil Goldwasser Excel Worksheet Functions 4 May 30th 06 08:55 AM
Conditional Format as a MACRO Gunjani Excel Worksheet Functions 3 March 29th 06 05:22 PM
how can i multiply two columns edgar Excel Worksheet Functions 7 March 2nd 06 03:29 PM
Formula to Extract value on 3 column based on two conditions wayliff Excel Discussion (Misc queries) 0 January 12th 06 08:20 PM
Return Count for LAST NonBlank Cell in each Row Sam via OfficeKB.com Excel Worksheet Functions 12 April 17th 05 10:36 PM


All times are GMT +1. The time now is 07:04 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"