LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 703
Default Asterisk in VLOOKUP search

Hi,

I'm using a column of data in a VLOOKUP search. Unfortunately the actual
data can have asterisks at the end, e.g.

MyDataColumn
EBV-1003
EBV-1004*
EBV-1005

MyDataTable
EBV-1003 Valve
EBV-1003* Test Valve
EBV-1004 Valve
EBV-1004* Test Valve
EBV-1005 Valve
EBV-1005* Test Valve

ValveType = VLOOKUP(MyDataColumn, MyDataTable, 2, FALSE)

....as you can see EBV-1004* will not find the test valve, it will find the
first match because the asterisk is treated as a wildcard. I have solved the
problem using SEARCH and REPLACE to repace the "*" with "~*" as per Help. It
works fine but man oh man, the formula is complex. (Because of all the
necessary ISERRORs.)

My question is: can I tell VLOOKUP to just look it up literally (binary
search) and not use wildcards? Is there a flag to set or maybe a different
function to use? Did I miss one of the lookup functions somewhere?

TIA,
Charlie

 
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
VLOOKUP - search key is more than once available MCFD Excel Worksheet Functions 2 May 14th 09 12:05 PM
Search Multiple columns for criterion asterisk (*) and Return Numeric Label Sam via OfficeKB.com Excel Worksheet Functions 8 July 14th 06 06:56 PM
vlookup with search? maryj Excel Worksheet Functions 5 May 8th 06 07:10 PM
Can VLOOKUP be used to search for more than one possible value? Travis Excel Discussion (Misc queries) 1 August 31st 05 03:57 AM
How do I search for an asterisk in an Excel file--it thinks the a. ace Excel Discussion (Misc queries) 3 December 9th 04 04:23 PM


All times are GMT +1. The time now is 12:24 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"