#1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 553
Default CONDITIONAL SUMMING

How to sum amounts appearing in column C if the string "Manufacturing" is
appearing in any of the respective cells of Column B?

Something like:

=SUMPRODUCT(--(SEARCH("Manufacturing",B1:B6,1)0),C1:C6)

Column B may contain:
Manufacturing-Textile
Manufacturing-Spinning
Manufacturing-Steel

All should be added!

All help shall be highly obliged.

Thanx!
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 15,768
Default CONDITIONAL SUMMING

One way:

=SUMIF(B1:B6,"Manufacturing*",C1:C6)

Or:

A1 = Manufacturing

=SUMIF(B1:B6,A1&"*",C1:C6)


--
Biff
Microsoft Excel MVP


"FARAZ QURESHI" wrote in message
...
How to sum amounts appearing in column C if the string "Manufacturing" is
appearing in any of the respective cells of Column B?

Something like:

=SUMPRODUCT(--(SEARCH("Manufacturing",B1:B6,1)0),C1:C6)

Column B may contain:
Manufacturing-Textile
Manufacturing-Spinning
Manufacturing-Steel

All should be added!

All help shall be highly obliged.

Thanx!



  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 553
Default CONDITIONAL SUMMING

Thanx pal,

But what if I am using multiple conditions like:

=SUMPRODUCT(--(A1:A6="PAKISTAN"),--(SEARCH("Manufacturing",B1:B6,1)0),C1:C6)

"T. Valko" wrote:

One way:

=SUMIF(B1:B6,"Manufacturing*",C1:C6)

Or:

A1 = Manufacturing

=SUMIF(B1:B6,A1&"*",C1:C6)


--
Biff
Microsoft Excel MVP


"FARAZ QURESHI" wrote in message
...
How to sum amounts appearing in column C if the string "Manufacturing" is
appearing in any of the respective cells of Column B?

Something like:

=SUMPRODUCT(--(SEARCH("Manufacturing",B1:B6,1)0),C1:C6)

Column B may contain:
Manufacturing-Textile
Manufacturing-Spinning
Manufacturing-Steel

All should be added!

All help shall be highly obliged.

Thanx!




  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 10,593
Default CONDITIONAL SUMMING

=SUMPRODUCT(--(A1:A6="PAKISTAN"),--(ISNUMBER(SEARCH("Manufacturing",B1:B6,1))),C1:C6)


--
---
HTH

Bob


(there's no email, no snail mail, but somewhere should be gmail in my addy)



"FARAZ QURESHI" wrote in message
...
Thanx pal,

But what if I am using multiple conditions like:

=SUMPRODUCT(--(A1:A6="PAKISTAN"),--(SEARCH("Manufacturing",B1:B6,1)0),C1:C6)

"T. Valko" wrote:

One way:

=SUMIF(B1:B6,"Manufacturing*",C1:C6)

Or:

A1 = Manufacturing

=SUMIF(B1:B6,A1&"*",C1:C6)


--
Biff
Microsoft Excel MVP


"FARAZ QURESHI" wrote in message
...
How to sum amounts appearing in column C if the string "Manufacturing"
is
appearing in any of the respective cells of Column B?

Something like:

=SUMPRODUCT(--(SEARCH("Manufacturing",B1:B6,1)0),C1:C6)

Column B may contain:
Manufacturing-Textile
Manufacturing-Spinning
Manufacturing-Steel

All should be added!

All help shall be highly obliged.

Thanx!






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
Conditional Summing Rich D Excel Discussion (Misc queries) 2 September 1st 07 05:10 PM
Conditional Summing Rich D Excel Worksheet Functions 1 August 24th 07 09:04 PM
Conditional summing Brad Excel Discussion (Misc queries) 1 August 31st 05 10:55 PM
"Conditional" summing Aladin Akyurek Excel Worksheet Functions 0 January 16th 05 07:46 PM
conditional Summing ben Excel Worksheet Functions 2 January 10th 05 06:51 PM


All times are GMT +1. The time now is 02:28 PM.

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

About Us

"It's about Microsoft Excel"