Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
altopalo
 
Posts: n/a
Default Sumproduct based on substring?


Hi -

I have a worksheet that has bug titles in column B and priority in
column C.

We have developed standard naming conventions for the bug title. For
example:

- MC: the Member Center has a bad help link in the header
- FP: the Front Page has a broken image in the header

I want to get a count of the bugs that contain a sub string of the
title (e.g. "MC" or "FP") and also have a certain Priority level in
column C.

I've tried these without success:

=SUMPRODUCT((B32:B1000="MC")*(C32:C1000="P1"))
=SUMPRODUCT((B32:B1000="*MC*")*(C32:C1000="P1"))
=SUMPRODUCT((B32:B1000=*MC*)*(C32:C1000="P1"))
=SUMPRODUCT((B32:B1000,*MC*)*(C32:C1000="P1"))

Any help would be greatly appreciated!!


--
altopalo
------------------------------------------------------------------------
altopalo's Profile: http://www.excelforum.com/member.php...o&userid=25276
View this thread: http://www.excelforum.com/showthread...hreadid=387679

  #2   Report Post  
Biff
 
Posts: n/a
Default

Hi!

Try this:

=SUMPRODUCT(--(ISNUMBER(SEARCH("MC:",B32:B1000))),--(C32:C100="P1"))

Better:

Use cells to hold the criteria:

A1 = MC:
B1 = P1

=SUMPRODUCT(--(ISNUMBER(SEARCH(A1,B32:B1000))),--(C32:C100=B1))

Including the colon with the string helps reduce any false positives.

Biff

"altopalo" wrote in
message ...

Hi -

I have a worksheet that has bug titles in column B and priority in
column C.

We have developed standard naming conventions for the bug title. For
example:

- MC: the Member Center has a bad help link in the header
- FP: the Front Page has a broken image in the header

I want to get a count of the bugs that contain a sub string of the
title (e.g. "MC" or "FP") and also have a certain Priority level in
column C.

I've tried these without success:

=SUMPRODUCT((B32:B1000="MC")*(C32:C1000="P1"))
=SUMPRODUCT((B32:B1000="*MC*")*(C32:C1000="P1"))
=SUMPRODUCT((B32:B1000=*MC*)*(C32:C1000="P1"))
=SUMPRODUCT((B32:B1000,*MC*)*(C32:C1000="P1"))

Any help would be greatly appreciated!!


--
altopalo
------------------------------------------------------------------------
altopalo's Profile:
http://www.excelforum.com/member.php...o&userid=25276
View this thread: http://www.excelforum.com/showthread...hreadid=387679



  #3   Report Post  
RagDyer
 
Posts: n/a
Default

Try this:

=SUMPRODUCT((ISNUMBER(SEARCH("MC",B32:B1000)))*(C3 2:C1000="P1"))
--
HTH,

RD
==============================================
Please keep all correspondence within the Group, so all may benefit!
==============================================



"altopalo" wrote in
message ...

Hi -

I have a worksheet that has bug titles in column B and priority in
column C.

We have developed standard naming conventions for the bug title. For
example:

- MC: the Member Center has a bad help link in the header
- FP: the Front Page has a broken image in the header

I want to get a count of the bugs that contain a sub string of the
title (e.g. "MC" or "FP") and also have a certain Priority level in
column C.

I've tried these without success:

=SUMPRODUCT((B32:B1000="MC")*(C32:C1000="P1"))
=SUMPRODUCT((B32:B1000="*MC*")*(C32:C1000="P1"))
=SUMPRODUCT((B32:B1000=*MC*)*(C32:C1000="P1"))
=SUMPRODUCT((B32:B1000,*MC*)*(C32:C1000="P1"))

Any help would be greatly appreciated!!


--
altopalo
------------------------------------------------------------------------
altopalo's Profile:

http://www.excelforum.com/member.php...o&userid=25276
View this thread: http://www.excelforum.com/showthread...hreadid=387679


  #4   Report Post  
altopalo
 
Posts: n/a
Default


Thank you!!!!


=SUMPRODUCT((ISNUMBER(SEARCH("MC",B32:B1000)))*(C3 2:C1000="P1"))

worked beautifully


--
altopalo
------------------------------------------------------------------------
altopalo's Profile: http://www.excelforum.com/member.php...o&userid=25276
View this thread: http://www.excelforum.com/showthread...hreadid=387679

  #5   Report Post  
RagDyeR
 
Posts: n/a
Default


I guess the reason it worked beautifully was because it didn't contain a
typo, leaving out a "0".<vbg

Appreciate the feed-back.

--

Regards,

RD
--------------------------------------------------------------------
Please keep all correspondence within the Group, so all may benefit !
--------------------------------------------------------------------


"altopalo" wrote in
message ...

Thank you!!!!


=SUMPRODUCT((ISNUMBER(SEARCH("MC",B32:B1000)))*(C3 2:C1000="P1"))

worked beautifully


--
altopalo
------------------------------------------------------------------------
altopalo's Profile:
http://www.excelforum.com/member.php...o&userid=25276
View this thread: http://www.excelforum.com/showthread...hreadid=387679


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
sumproduct & indirect floridasurfn Excel Worksheet Functions 3 March 14th 05 02:01 AM
Sumproduct Peter B Excel Worksheet Functions 1 March 7th 05 01:59 PM
Can I reference =, <, or > sign in SUMPRODUCT BobT Excel Discussion (Misc queries) 7 February 16th 05 01:58 PM
Sumproduct function not working Scott Summerlin Excel Worksheet Functions 12 December 4th 04 05:15 AM
adding two sumproduct formulas together ski2004_2005 Excel Worksheet Functions 1 November 12th 04 09:08 PM


All times are GMT +1. The time now is 05:25 PM.

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"