Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Norman K via OfficeKB.com
 
Posts: n/a
Default wildcards do not seem to work

Hi
I use wildcards for =countif function and it works
but when I use it with for example =if(b30="*test", "yes", "no") it always
gives me a "no" in the cell.
if in include the asterisk in the B30 cell the if is successful.
what am i doing wrong?
Regards
Norman


--
Message posted via OfficeKB.com
http://www.officekb.com/Uwe/Forums.a...tions/200509/1
  #2   Report Post  
kk
 
Posts: n/a
Default

Hi Norman

Try...

=IF(ISNUMBER(SEARCH("test",A30,1)),"Yes","No")



"Norman K via OfficeKB.com" wrote in message
...
Hi
I use wildcards for =countif function and it works
but when I use it with for example =if(b30="*test", "yes", "no") it always
gives me a "no" in the cell.
if in include the asterisk in the B30 cell the if is successful.
what am i doing wrong?
Regards
Norman


--
Message posted via OfficeKB.com
http://www.officekb.com/Uwe/Forums.a...tions/200509/1


  #3   Report Post  
Norman K via OfficeKB.com
 
Posts: n/a
Default

Thanks KK it works

Regards

Norman
kk wrote:
Hi Norman

Try...

=IF(ISNUMBER(SEARCH("test",A30,1)),"Yes","No")



--
Message posted via OfficeKB.com
http://www.officekb.com/Uwe/Forums.a...tions/200509/1
  #4   Report Post  
kk
 
Posts: n/a
Default

You're welcome!.


"Norman K via OfficeKB.com" wrote in message
...
Thanks KK it works

Regards

Norman
kk wrote:
Hi Norman

Try...

=IF(ISNUMBER(SEARCH("test",A30,1)),"Yes","No")



--
Message posted via OfficeKB.com
http://www.officekb.com/Uwe/Forums.a...tions/200509/1


  #5   Report Post  
Dave Peterson
 
Posts: n/a
Default

But you can use =countif() with a single cell:

=if(countif(b30,"*test")0,"Yes","No")

"Norman K via OfficeKB.com" wrote:

Hi
I use wildcards for =countif function and it works
but when I use it with for example =if(b30="*test", "yes", "no") it always
gives me a "no" in the cell.
if in include the asterisk in the B30 cell the if is successful.
what am i doing wrong?
Regards
Norman

--
Message posted via OfficeKB.com
http://www.officekb.com/Uwe/Forums.a...tions/200509/1


--

Dave Peterson
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
Spin button in a work sheet - how do I make it work? [email protected] Excel Worksheet Functions 1 April 7th 05 08:43 PM
Erase & Draw Border functions no longer work bob m Excel Discussion (Misc queries) 2 February 25th 05 06:03 PM
How to get saved old saved work that was saved over? Maral Excel Discussion (Misc queries) 1 February 20th 05 08:59 PM
Service work order schoolgeek63 Charts and Charting in Excel 1 January 7th 05 08:07 PM
How do I ensure dates inputted are during the work week? Jim Johnson Excel Worksheet Functions 3 October 29th 04 08:25 AM


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