Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 14
Default Sumproduct Wildcards

This works =Sumif($A3$:$A$43,"*Helm*",$F$3:$F$43)

Now I want to do that if TWO conditions are met, I typically use an
Array and Sumproduct, but can't get it to work. Thoughts?

It would the equivalent of doing this: =SUMPRODUCT(($F$3:$F$43)*($A
$3:$A$43="*Helm*")*($B$3:$B$43="*Port*")). But that doesn't work...
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3,572
Default Sumproduct Wildcards

Try this:

=SUMPRODUCT((ISNUMBER(SEARCH("Helm",$A$3:$A$43)))* (ISNUMBER(SEARCH("Port",$B$3:$B$43)))*$F$3:$F$43)

--

HTH,

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

" wrote in message
...
This works =Sumif($A3$:$A$43,"*Helm*",$F$3:$F$43)

Now I want to do that if TWO conditions are met, I typically use an
Array and Sumproduct, but can't get it to work. Thoughts?

It would the equivalent of doing this: =SUMPRODUCT(($F$3:$F$43)*($A
$3:$A$43="*Helm*")*($B$3:$B$43="*Port*")). But that doesn't work...


  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2,722
Default Sumproduct Wildcards

You could try using this function, since the SEARCH function supports
wildcards.

=SUMPRODUCT(($F$3:$F$43)*(ISNUMBER(SEARCH("*Helm*" ,$A$3:$A$43)))*ISNUMBER(SEARCH("*Port*",$B$3:$B$43 )))

Note that SEARCH is non-case sensitive. If you want it to be, replace the
SEARCH's with FIND's.
--
Best Regards,

Luke M
*Remember to click "yes" if this post helped you!*


" wrote:

This works =Sumif($A3$:$A$43,"*Helm*",$F$3:$F$43)

Now I want to do that if TWO conditions are met, I typically use an
Array and Sumproduct, but can't get it to work. Thoughts?

It would the equivalent of doing this: =SUMPRODUCT(($F$3:$F$43)*($A
$3:$A$43="*Helm*")*($B$3:$B$43="*Port*")). But that doesn't work...

  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,240
Default Sumproduct Wildcards

Luke M wrote:
You could try using this function, since the SEARCH function supports
wildcards.

=SUMPRODUCT(($F$3:$F$43)*(ISNUMBER(SEARCH("*Helm*" ,$A$3:$A$43)))*ISNUMBER(SEARCH("*Port*",$B$3:$B$43 )))

Note that SEARCH is non-case sensitive. If you want it to be, replace the
SEARCH's with FIND's.



What is the difference between

=ISNUMBER(SEARCH("Helm",$A$3:$A$43))

and

=ISNUMBER(SEARCH("*Helm*",$A$3:$A$43))


  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2,722
Default Sumproduct Wildcards

In this instance, none really. I was just copying OP's text. However, if you
wanted to check if a cell contained two or more words, it is nice to know you
can use wildcards.

E.g.
=SEARCH("bob*tom",A1)
would check look for the word bob followed sometime by the word tom. (also
supports the '?' character for single character wildcard.
--
Best Regards,

Luke M
*Remember to click "yes" if this post helped you!*


"Glenn" wrote:

Luke M wrote:
You could try using this function, since the SEARCH function supports
wildcards.

=SUMPRODUCT(($F$3:$F$43)*(ISNUMBER(SEARCH("*Helm*" ,$A$3:$A$43)))*ISNUMBER(SEARCH("*Port*",$B$3:$B$43 )))

Note that SEARCH is non-case sensitive. If you want it to be, replace the
SEARCH's with FIND's.



What is the difference between

=ISNUMBER(SEARCH("Helm",$A$3:$A$43))

and

=ISNUMBER(SEARCH("*Helm*",$A$3:$A$43))

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
Wildcards in SUMPRODUCT Terry Bennett Excel Worksheet Functions 3 October 27th 08 09:36 AM
Wildcards with Sumproduct? Hilton Excel Discussion (Misc queries) 5 August 29th 08 04:02 PM
Sumproduct with wildcards Saintsman Excel Worksheet Functions 3 January 18th 07 02:51 PM
Sumproduct and wildcards vipa2000 Excel Worksheet Functions 18 July 31st 05 09:24 PM
Wildcards with SumProduct pomalley Excel Worksheet Functions 7 March 24th 05 03:01 PM


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