A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Excel » Worksheet Functions
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

wildacrds



 
 
Thread Tools Display Modes
  #1  
Old March 20th, 2010, 08:43 AM posted to microsoft.public.excel.worksheet.functions
Dave
external usenet poster
 
Posts: 2,331
Default wildacrds

Hi,
XL2003.
Is it possible to use wildcards in simple logic statements?
If A1 contains "qwerty" and B1 contains "qw"
In C1 I've tried:
=A1=B1* - xl complained
=A1=B1&* -xl complained
=A1=B1&"*" - returned FALSE
Regards - Dave.
  #2  
Old March 20th, 2010, 09:27 AM posted to microsoft.public.excel.worksheet.functions
Fred Smith[_4_]
external usenet poster
 
Posts: 2,386
Default wildacrds

No. You need to use functions like Find or Search, as in:
=isnumber(search(b1,a1))

Regards,
Fred

"Dave" wrote in message
...
Hi,
XL2003.
Is it possible to use wildcards in simple logic statements?
If A1 contains "qwerty" and B1 contains "qw"
In C1 I've tried:
=A1=B1* - xl complained
=A1=B1&* -xl complained
=A1=B1&"*" - returned FALSE
Regards - Dave.


  #3  
Old March 20th, 2010, 09:49 AM posted to microsoft.public.excel.worksheet.functions
Gary''s Student
external usenet poster
 
Posts: 7,584
Default wildacrds

=LEFT(A1,2)=B1

--
Gary''s Student - gsnu201001


"Dave" wrote:

Hi,
XL2003.
Is it possible to use wildcards in simple logic statements?
If A1 contains "qwerty" and B1 contains "qw"
In C1 I've tried:
=A1=B1* - xl complained
=A1=B1&* -xl complained
=A1=B1&"*" - returned FALSE
Regards - Dave.

  #4  
Old March 20th, 2010, 10:21 AM posted to microsoft.public.excel.worksheet.functions
Dave
external usenet poster
 
Posts: 2,331
Default wildacrds

"No" is so final!

"Fred Smith" wrote:

No. You need to use functions like Find or Search, as in:
=isnumber(search(b1,a1))

Regards,
Fred

"Dave" wrote in message
...
Hi,
XL2003.
Is it possible to use wildcards in simple logic statements?
If A1 contains "qwerty" and B1 contains "qw"
In C1 I've tried:
=A1=B1* - xl complained
=A1=B1&* -xl complained
=A1=B1&"*" - returned FALSE
Regards - Dave.


.

  #5  
Old March 20th, 2010, 03:48 PM posted to microsoft.public.excel.worksheet.functions
G Ray
external usenet poster
 
Posts: 4
Default wildacrds

What are you trying to do? Are you trying to determine if a1 and b1
are equal? Is this user input?

Glen

On Mar 20, 1:43*am, Dave wrote:
Hi,
XL2003.
Is it possible to use wildcards in simple logic statements?
If A1 contains "qwerty" and B1 contains "qw"
In C1 I've tried:
=A1=B1* * *- xl complained
=A1=B1&* * * *-xl complained
=A1=B1&"*" * *- returned FALSE
Regards - Dave.


 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 08:13 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.