#1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 19
Default use of wildcards

Does anyone know how to use wildcards properly in a formula. For example
(=SUMPRODUCT((A1:A4="6-*")*(C1:C4="ok")*(B1:B4="c-25")). Where "6-*" would
be anywhere the entry in cells A1:A4 begins with the number 6.


  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,688
Default use of wildcards

Hi!

Try this:

=SUMPRODUCT((ISNUMBER(FIND("6-",A1:A4)))*(C1:C4="ok")*(B1:B4="c-25"))

Biff

"italiavb" wrote in message
...
Does anyone know how to use wildcards properly in a formula. For example
(=SUMPRODUCT((A1:A4="6-*")*(C1:C4="ok")*(B1:B4="c-25")). Where "6-*" would
be anywhere the entry in cells A1:A4 begins with the number 6.



  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 19
Default use of wildcards

You're a genius man, thanks.

"Biff" wrote in message
...
Hi!

Try this:

=SUMPRODUCT((ISNUMBER(FIND("6-",A1:A4)))*(C1:C4="ok")*(B1:B4="c-25"))

Biff

"italiavb" wrote in message
...
Does anyone know how to use wildcards properly in a formula. For example
(=SUMPRODUCT((A1:A4="6-*")*(C1:C4="ok")*(B1:B4="c-25")). Where "6-*"
would be anywhere the entry in cells A1:A4 begins with the number 6.





  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 19
Default use of wildcards

So, if the value I'm looking for is text, why doesn't ISTEXT work in place
of ISNUMBER ?


"italiavb" wrote in message
...
You're a genius man, thanks.

"Biff" wrote in message
...
Hi!

Try this:

=SUMPRODUCT((ISNUMBER(FIND("6-",A1:A4)))*(C1:C4="ok")*(B1:B4="c-25"))

Biff

"italiavb" wrote in message
...
Does anyone know how to use wildcards properly in a formula. For example
(=SUMPRODUCT((A1:A4="6-*")*(C1:C4="ok")*(B1:B4="c-25")). Where "6-*"
would be anywhere the entry in cells A1:A4 begins with the number 6.







  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,688
Default use of wildcards

"italiavb" wrote in message
...
So, if the value I'm looking for is text, why doesn't ISTEXT work in place
of ISNUMBER ?


Because FIND returns a number!

Both FIND and SEARCH return the starting position (character number) of a
substring within a string.

ISTEXT and ISNUMBER have nothing to do with the data type of the search
value. You're testing the returned value of the FIND/SEARCH function.

If the substring is found its position is passed to ISNUMBER which then
evaluates to TRUE. If the substring is not found then FIND returns #VALUE!
then ISNUMBER evaluates to FALSE. So, using ISTEXT in this manner will
always evaluate to FALSE.

Biff




  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,688
Default use of wildcards

FIND returns #VALUE!
using ISTEXT in this manner will always evaluate to FALSE.


However, you may think that #VALUE! is TEXT and therefore ISTEXT should
evaluate to TRUE, but no, that's not the case. #VALUE! is a LOGICAL VALUE
and not text.

Biff

"Biff" wrote in message
...
"italiavb" wrote in message
...
So, if the value I'm looking for is text, why doesn't ISTEXT work in
place of ISNUMBER ?


Because FIND returns a number!

Both FIND and SEARCH return the starting position (character number) of a
substring within a string.

ISTEXT and ISNUMBER have nothing to do with the data type of the search
value. You're testing the returned value of the FIND/SEARCH function.

If the substring is found its position is passed to ISNUMBER which then
evaluates to TRUE. If the substring is not found then FIND returns #VALUE!
then ISNUMBER evaluates to FALSE. So, using ISTEXT in this manner will
always evaluate to FALSE.

Biff



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
use replace to edit a formula with wildcards koskyil Excel Worksheet Functions 11 August 23rd 05 06:13 PM
Can conditional sum use wildcards in the formula? Chris Excel Worksheet Functions 3 August 16th 05 05:23 AM
Wildcards in Functions Graeme Crook Excel Worksheet Functions 1 June 10th 05 10:42 PM
Wildcards in Functions Graeme Crook Excel Worksheet Functions 1 June 9th 05 11:31 PM
vlookup & wildcards Alex Excel Worksheet Functions 3 June 9th 05 09:41 PM


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