Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 35
Default Vlookup on partial match

OK, weird scenario, but I have a 'key' column in a source table (10-FirstName
LastName-1-1, 10-FirstName LastName-1-2, etc.) that I want search for in a
data table and match on a longer key (10-FirstName LastName-1-1
TransactionName, 10-FirstName LastName-1-2 TransactionName, etc.).

The problem is that the Transaction Numbers will stay the same over time,
but the names may change slightly. Each time the name changes, then
historical data disappears. If I can match on only the short key, I could
care less what the name is.

I don't want to have to change the source table, the query since it's in a
program and outputs a file...we'd have to change the program and that would
be ugly.

Can I use some kind of wildcard or something like a Like command to match
just the first X characters? Will setting the range lookup accomplish this?

Any help would be appreciated...thanks all!!!
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8,856
Default Vlookup on partial match

You can use a wildcard character with VLOOKUP, along these lines:

=VLOOKUP(A2&"*",Table,column,0)

Hope this helps.

Pete

On Oct 27, 11:19*pm, Robert_L_Ross
wrote:
OK, weird scenario, but I have a 'key' column in a source table (10-FirstName
LastName-1-1, 10-FirstName LastName-1-2, etc.) that I want search for in a
data table and match on a longer key (10-FirstName LastName-1-1
TransactionName, 10-FirstName LastName-1-2 TransactionName, etc.).

The problem is that the Transaction Numbers will stay the same over time,
but the names may change slightly. *Each time the name changes, then
historical data disappears. *If I can match on only the short key, I could
care less what the name is.

I don't want to have to change the source table, the query since it's in a
program and outputs a file...we'd have to change the program and that would
be ugly.

Can I use some kind of wildcard or something like a Like command to match
just the first X characters? *Will setting the range lookup accomplish this?

Any help would be appreciated...thanks all!!!


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
partial match in vlookup with table array Jneel Excel Worksheet Functions 3 May 5th 09 03:40 AM
Find partial match from column A,B and fill partial match in C? Tacrier Excel Discussion (Misc queries) 4 October 24th 08 11:24 PM
Vlookup using a partial text match JGROVE Excel Worksheet Functions 1 August 15th 08 03:18 PM
Partial String Match & Wild Cards Using VLOOKUP djDaemon Excel Worksheet Functions 0 March 9th 06 05:49 PM
Partial String Match Using VLOOKUP cdhmotes Excel Worksheet Functions 4 December 26th 05 10:26 PM


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