Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
nastech
 
Posts: n/a
Default simple Wildcard Question

I've been trying to make wild cards work, don't see any actual equation
examples in help. Just the simple version for something like:

if(a1="b"*,"true")

for cell a1 = b1 or b2..
don't know where to put the quotation marks/ wildcards, isn't working, thanks.
obviously needs to be a number field..
  #2   Report Post  
Peo Sjoblom
 
Posts: n/a
Default simple Wildcard Question

One way

=IF(LEFT(A1,1)="b","do this","do that")

wildcards can be used in several function

but not in logical functions, so you have to use workarounds,
for your example LEFT will work, for *b* you can use

=IF(ISNUMBER(SEARCH("b",A1)),"do this","do that")

for *b

=IF(RIGHT(A1,1), and so on



--
Regards,

Peo Sjoblom

(No private emails please)


"nastech" wrote in message
...
I've been trying to make wild cards work, don't see any actual equation
examples in help. Just the simple version for something like:

if(a1="b"*,"true")

for cell a1 = b1 or b2..
don't know where to put the quotation marks/ wildcards, isn't working,
thanks.
obviously needs to be a number field..


  #3   Report Post  
nastech
 
Posts: n/a
Default simple Wildcard Question

Thankyou... been a problem for awhile.. later

"Peo Sjoblom" wrote:

One way

=IF(LEFT(A1,1)="b","do this","do that")

wildcards can be used in several function

but not in logical functions, so you have to use workarounds,
for your example LEFT will work, for *b* you can use

=IF(ISNUMBER(SEARCH("b",A1)),"do this","do that")

for *b

=IF(RIGHT(A1,1), and so on



--
Regards,

Peo Sjoblom

(No private emails please)


"nastech" wrote in message
...
I've been trying to make wild cards work, don't see any actual equation
examples in help. Just the simple version for something like:

if(a1="b"*,"true")

for cell a1 = b1 or b2..
don't know where to put the quotation marks/ wildcards, isn't working,
thanks.
obviously needs to be a number field..



  #4   Report Post  
Bryan Hessey
 
Posts: n/a
Default simple Wildcard Question


To test if A1 is equal to B1 or B2 is
=IF(OR(A1=B1,A1=B2),"True","")

Wildcards are used to match characters in a search etc, not to modify
formula ranges.



nastech Wrote:
I've been trying to make wild cards work, don't see any actual equation
examples in help. Just the simple version for something like:

if(a1="b"*,"true")

for cell a1 = b1 or b2..
don't know where to put the quotation marks/ wildcards, isn't working,
thanks.
obviously needs to be a number field..



--
Bryan Hessey
------------------------------------------------------------------------
Bryan Hessey's Profile: http://www.excelforum.com/member.php...o&userid=21059
View this thread: http://www.excelforum.com/showthread...hreadid=476689

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
simple chart question Shooter Excel Worksheet Functions 1 July 26th 05 06:48 PM
Simple Date Display Question Seth Excel Discussion (Misc queries) 6 July 15th 05 07:46 PM
Simple Simple Excel usage question BookerW Excel Discussion (Misc queries) 1 June 23rd 05 10:06 PM
Simple question Sheila Clarke Excel Discussion (Misc queries) 2 March 24th 05 04:31 PM
Pivot Tables - "simple" question Eoin Bairead Excel Discussion (Misc queries) 1 February 28th 05 07:07 PM


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