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

Can you use wildcards and a text string with the sumproduct statement, for
example I would like to find the word "accural" in a string and base the
sumproduct on that, here is my example;

=SUMPRODUCT(--(Transactions!$C$1:$C$65000="*Accural*"),--(Transactions!$C$1:$C$65000<""),(Transactions!$L$ 1:$L$65000))

This example does not work.
--
CK
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 8,520
Default Sumproduct and Wildcards

Try

=SUMPRODUCT(--(ISERROR(SEARCH("*Accural*",Transactions!$C$1:$C$6 5000))=FALSE),--(Transactions!$C$1:$C$65000<""),Transactions!$L$1 :$L$65000)

If this post helps click Yes
---------------
Jacob Skaria


"ColleenK" wrote:

Can you use wildcards and a text string with the sumproduct statement, for
example I would like to find the word "accural" in a string and base the
sumproduct on that, here is my example;

=SUMPRODUCT(--(Transactions!$C$1:$C$65000="*Accural*"),--(Transactions!$C$1:$C$65000<""),(Transactions!$L$ 1:$L$65000))

This example does not work.
--
CK

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2,722
Default Sumproduct and Wildcards

To use wildcards, need to use the SEARCH/FIND function.

=SUMPRODUCT(--(ISNUMBER(SEARCH("*Accural*",Transactions!$C$1:$C$ 65000))),--(Transactions!$C$1:$C$65000<""),(Transactions!$L$ 1:$L$65000))

If you need this to be case-sensitive, change SEARCH to FIND.
(Note that in this case, the wildcards aren't really necessary, as
SEARCH/FIND look in entire string. However, if you wanted to look for
something with a wildcard in middle, it would be more useful.)
--
Best Regards,

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


"ColleenK" wrote:

Can you use wildcards and a text string with the sumproduct statement, for
example I would like to find the word "accural" in a string and base the
sumproduct on that, here is my example;

=SUMPRODUCT(--(Transactions!$C$1:$C$65000="*Accural*"),--(Transactions!$C$1:$C$65000<""),(Transactions!$L$ 1:$L$65000))

This example does not work.
--
CK

  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 30
Default Sumproduct and Wildcards

Thank you so much, this worked beautifully.
--
CK


"Luke M" wrote:

To use wildcards, need to use the SEARCH/FIND function.

=SUMPRODUCT(--(ISNUMBER(SEARCH("*Accural*",Transactions!$C$1:$C$ 65000))),--(Transactions!$C$1:$C$65000<""),(Transactions!$L$ 1:$L$65000))

If you need this to be case-sensitive, change SEARCH to FIND.
(Note that in this case, the wildcards aren't really necessary, as
SEARCH/FIND look in entire string. However, if you wanted to look for
something with a wildcard in middle, it would be more useful.)
--
Best Regards,

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


"ColleenK" wrote:

Can you use wildcards and a text string with the sumproduct statement, for
example I would like to find the word "accural" in a string and base the
sumproduct on that, here is my example;

=SUMPRODUCT(--(Transactions!$C$1:$C$65000="*Accural*"),--(Transactions!$C$1:$C$65000<""),(Transactions!$L$ 1:$L$65000))

This example does not work.
--
CK

  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 30
Default Sumproduct and Wildcards

Thank you so much, this worked beautifully.
--
CK


"Jacob Skaria" wrote:

Try

=SUMPRODUCT(--(ISERROR(SEARCH("*Accural*",Transactions!$C$1:$C$6 5000))=FALSE),--(Transactions!$C$1:$C$65000<""),Transactions!$L$1 :$L$65000)

If this post helps click Yes
---------------
Jacob Skaria


"ColleenK" wrote:

Can you use wildcards and a text string with the sumproduct statement, for
example I would like to find the word "accural" in a string and base the
sumproduct on that, here is my example;

=SUMPRODUCT(--(Transactions!$C$1:$C$65000="*Accural*"),--(Transactions!$C$1:$C$65000<""),(Transactions!$L$ 1:$L$65000))

This example does not work.
--
CK

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 Wildcards [email protected] Excel Worksheet Functions 5 June 1st 09 06:17 PM
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


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