Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1
Default Wildcard in Excel

hi, I am trying to search for 10070162*** as a whole string text, the
asterisks do not represent wildcard characters. When I use 10070162*** as
the lookup value in vlookup, it brought back results for 10070162001,
10070162002 etc. Is there a way to disable Excel from treating the asterisks
as wildcard?
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,726
Default Wildcard in Excel

Use

10070162~*~*~*

--

HTH

Bob Phillips

(replace xxxx in the email address with gmail if mailing direct)

"Clark Shiao" <Clark wrote in message
...
hi, I am trying to search for 10070162*** as a whole string text, the
asterisks do not represent wildcard characters. When I use 10070162*** as
the lookup value in vlookup, it brought back results for 10070162001,
10070162002 etc. Is there a way to disable Excel from treating the

asterisks
as wildcard?



  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 964
Default Wildcard in Excel

Use the tilde ~ character to override the wildcard. So, you'd search for
10070162~*~*~*

HTH,
Elkar


"Clark Shiao" wrote:

hi, I am trying to search for 10070162*** as a whole string text, the
asterisks do not represent wildcard characters. When I use 10070162*** as
the lookup value in vlookup, it brought back results for 10070162001,
10070162002 etc. Is there a way to disable Excel from treating the asterisks
as wildcard?

  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1
Default Wildcard in Excel

Hi,

Thanks for the tip, but how can I incorporate the ~ into the A1 field? I
have many fields that contains the wildcard characters, I don't know how to
get teh ~ into the cell other than change the cell value and not use the A1
as the lookup reference.

10073661*** =VLOOKUP(A1,$A$3:$B$6,2,FALSE)

10073661010 5
10073661015 10
10073661083 15
10073661*** -17289


"Clark Shiao" wrote:

hi, I am trying to search for 10070162*** as a whole string text, the
asterisks do not represent wildcard characters. When I use 10070162*** as
the lookup value in vlookup, it brought back results for 10070162001,
10070162002 etc. Is there a way to disable Excel from treating the asterisks
as wildcard?

  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,726
Default Wildcard in Excel

=INDEX($B$3:$B$6,MIN(IF(--LEFT(IF(LEFT(A3:A6,LEN(A1))<"",A3:A6),LEN(A1))=A1
,ROW(A3:A6)-MIN(ROW(A3:A6))+1,"")))

which is an array formula, it should be committed with Ctrl-Shift-Enter, not
just Enter.

--

HTH

Bob Phillips

(replace xxxx in the email address with gmail if mailing direct)

"Clark Shiao" wrote in message
...
Hi,

Thanks for the tip, but how can I incorporate the ~ into the A1 field? I
have many fields that contains the wildcard characters, I don't know how

to
get teh ~ into the cell other than change the cell value and not use the

A1
as the lookup reference.

10073661*** =VLOOKUP(A1,$A$3:$B$6,2,FALSE)

10073661010 5
10073661015 10
10073661083 15
10073661*** -17289


"Clark Shiao" wrote:

hi, I am trying to search for 10070162*** as a whole string text, the
asterisks do not represent wildcard characters. When I use 10070162***

as
the lookup value in vlookup, it brought back results for 10070162001,
10070162002 etc. Is there a way to disable Excel from treating the

asterisks
as wildcard?



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
Open Excel 2003 from Windows Explorer pmpjr Excel Discussion (Misc queries) 9 September 11th 06 03:58 PM
Excel Open Dialog Improper Sort [email protected] Excel Discussion (Misc queries) 4 May 17th 06 02:40 PM
Multiple Excel versions. Naveen Mukkelli Excel Discussion (Misc queries) 0 May 16th 06 12:55 AM
how can I specific a folder with wildcard criteria and excel will import all the correct files in that folder? Raven Excel Discussion (Misc queries) 1 January 24th 06 03:28 PM
Opening two separate instances of Excel Ron Bishop Excel Discussion (Misc queries) 2 August 4th 05 05:30 PM


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