Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2
Default Using Wildcards in VLOOKUP

I am trying to use VLOOKUP to extract data from a table. The format of the
1st column is 3 numerics and then a "-" and 3 more numerics i.e. 400-237.
If I am looking for the 400 call-up I do not care what the last three digits
are so want to use 400-??? but when I put it into VLOOKUP as
VLOOKUP(400-???,AA33:AB141,2,FALSE) I get an error but if I store the
"400-???" in a cell like A1 and use
VLOOKUP(A1,AA33:AB141,2,FALSE) it works. Is there anyway to use wildcards
in the VLOOKUP lookup value?
--
Rob
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1,696
Default Using Wildcards in VLOOKUP

Just need the quotes..

=VLOOKUP("400-???",AA33:AB141,2,FALSE)

"Rob947" wrote:

I am trying to use VLOOKUP to extract data from a table. The format of the
1st column is 3 numerics and then a "-" and 3 more numerics i.e. 400-237.
If I am looking for the 400 call-up I do not care what the last three digits
are so want to use 400-??? but when I put it into VLOOKUP as
VLOOKUP(400-???,AA33:AB141,2,FALSE) I get an error but if I store the
"400-???" in a cell like A1 and use
VLOOKUP(A1,AA33:AB141,2,FALSE) it works. Is there anyway to use wildcards
in the VLOOKUP lookup value?
--
Rob

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2,344
Default Using Wildcards in VLOOKUP

Hi,

You can use any of the 3 wildcard in VLOOKUP and you can do that any of at
least 4 ways:
1. 333-??? in cell A1 using =VLOOKUP(A1,AA33:AB141,2,FALSE)
2. enter the criteria in the formula =VLOOKUP("333-???",AA33:AB141,2,FALSE)
3. by combining these two - entering 333- in one cell and ??? in another cell:
=VLOOKUP(A1&A2,AA33:AB141,2,FALSE)
4. Entering part in a cell and part in the formula in A1 333-
VLOOKUP(A1&"???",AA33:AB141,2,FALSE)

You can use these techniques with ?, *, or ~.

Remember 333-* would return 333-123 and 333-a

--
Thanks,
Shane Devenshire


"Rob947" wrote:

I am trying to use VLOOKUP to extract data from a table. The format of the
1st column is 3 numerics and then a "-" and 3 more numerics i.e. 400-237.
If I am looking for the 400 call-up I do not care what the last three digits
are so want to use 400-??? but when I put it into VLOOKUP as
VLOOKUP(400-???,AA33:AB141,2,FALSE) I get an error but if I store the
"400-???" in a cell like A1 and use
VLOOKUP(A1,AA33:AB141,2,FALSE) it works. Is there anyway to use wildcards
in the VLOOKUP lookup value?
--
Rob

  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2
Default Using Wildcards in VLOOKUP

That solved the problem Thanks
--
Rob


"Sean Timmons" wrote:

Just need the quotes..

=VLOOKUP("400-???",AA33:AB141,2,FALSE)

"Rob947" wrote:

I am trying to use VLOOKUP to extract data from a table. The format of the
1st column is 3 numerics and then a "-" and 3 more numerics i.e. 400-237.
If I am looking for the 400 call-up I do not care what the last three digits
are so want to use 400-??? but when I put it into VLOOKUP as
VLOOKUP(400-???,AA33:AB141,2,FALSE) I get an error but if I store the
"400-???" in a cell like A1 and use
VLOOKUP(A1,AA33:AB141,2,FALSE) it works. Is there anyway to use wildcards
in the VLOOKUP lookup value?
--
Rob

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
using wildcards & IF in VLOOKUP [email protected] Excel Discussion (Misc queries) 4 August 23rd 06 03:48 PM
help with vlookup, wildcards, multiple searches mike Excel Worksheet Functions 2 May 14th 06 05:18 AM
VLOOKUP and wildcards cadcrew Excel Worksheet Functions 1 January 11th 06 03:32 PM
using wildcards in vlookup Alex Excel Worksheet Functions 5 June 14th 05 04:27 PM
vlookup & wildcards Alex Excel Worksheet Functions 3 June 9th 05 09:41 PM


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