Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1
Default Can SUMPRODUCT include an *?

I am using SUMPRODUCT formulas a lot in my spreadsheet (having recently
graduated from COUNTIF thanks to reading through these forums!).

However often my cells have multiple words, and I am just looking for one
(poor database design, I know). Usually I would use the * before and after
my word to indicate that any other characters could come before or after, but
this doesn't seem to work with SUMPRODUCT?

Is there a way to make this work? Simplified example below:

A B
1 Pant Blue, red, yellow
2 Pant red
3 Top blue, yellow
4 Pant red, blue
5 Top yellow only

=SUMPRODUCT((A1:A5="Pant")*(Models!S3:S35="*blue*" ))
returns a 0 result.

Many thanks,
Al
  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 52
Default Can SUMPRODUCT include an *?

Al

SUMPRODUCT does not support wildcards. I can't answer your question but the
following link may help you.

http://www.xldynamic.com/source/xld....2.html#partial
--
Russell Dawson
Excel Student


"excel al" wrote:

I am using SUMPRODUCT formulas a lot in my spreadsheet (having recently
graduated from COUNTIF thanks to reading through these forums!).

However often my cells have multiple words, and I am just looking for one
(poor database design, I know). Usually I would use the * before and after
my word to indicate that any other characters could come before or after, but
this doesn't seem to work with SUMPRODUCT?

Is there a way to make this work? Simplified example below:

A B
1 Pant Blue, red, yellow
2 Pant red
3 Top blue, yellow
4 Pant red, blue
5 Top yellow only

=SUMPRODUCT((A1:A5="Pant")*(Models!S3:S35="*blue*" ))
returns a 0 result.

Many thanks,
Al

  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 8,520
Default Can SUMPRODUCT include an *?

Try

=SUMPRODUCT((A1:A5="Pant")*(ISNUMBER(SEARCH("blue" ,B1:B5))))

--
Jacob


"excel al" wrote:

I am using SUMPRODUCT formulas a lot in my spreadsheet (having recently
graduated from COUNTIF thanks to reading through these forums!).

However often my cells have multiple words, and I am just looking for one
(poor database design, I know). Usually I would use the * before and after
my word to indicate that any other characters could come before or after, but
this doesn't seem to work with SUMPRODUCT?

Is there a way to make this work? Simplified example below:

A B
1 Pant Blue, red, yellow
2 Pant red
3 Top blue, yellow
4 Pant red, blue
5 Top yellow only

=SUMPRODUCT((A1:A5="Pant")*(Models!S3:S35="*blue*" ))
returns a 0 result.

Many thanks,
Al

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 formula to include additonal range Brile Excel Worksheet Functions 8 October 9th 08 02:13 AM
Can I include both AND and OR in the same function? Dave Excel Worksheet Functions 7 September 24th 08 11:44 PM
Sum if formula to include value in col Q when no value in col P for that row mikeburg Excel Discussion (Misc queries) 3 February 5th 06 07:50 PM
include INDIRECT function into SUMPRODUCT formula markx Excel Worksheet Functions 1 November 9th 05 05:04 PM
Sum numbers that include #N/A ww Excel Worksheet Functions 3 March 27th 05 02:21 AM


All times are GMT +1. The time now is 07:51 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"