Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 132
Default vlookup with not exactly matching numbers

I need to often match up columns on two spreadsheets. One of the xls has a
reference number of 12 digits...the other has 10 digit. The 10 digits are
the same as the 12 except they are missing the first and last number.

Is there a way to do a vlookup using a "wild" card type feature?
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 4,339
Default vlookup with not exactly matching numbers

Try:

=MATCH("*" & A1 & "*",C:C,0)

A1 is 10 digit
C:C are 12 digits

HTH


"Kelly" wrote:

I need to often match up columns on two spreadsheets. One of the xls has a
reference number of 12 digits...the other has 10 digit. The 10 digits are
the same as the 12 except they are missing the first and last number.

Is there a way to do a vlookup using a "wild" card type feature?

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 4,339
Default vlookup with not exactly matching numbers

and ...

=VLOOKUP("*" & A1 & "*",C:C,1,0)

also works.

"Kelly" wrote:

I need to often match up columns on two spreadsheets. One of the xls has a
reference number of 12 digits...the other has 10 digit. The 10 digits are
the same as the 12 except they are missing the first and last number.

Is there a way to do a vlookup using a "wild" card type feature?

  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 132
Default vlookup with not exactly matching numbers

How should the numbers be formatted? The 12 digits are formatted as
"000000000000" because some of them begin with 0. Some of the 10 digits
begin with zero as well.

"Toppers" wrote:

and ...

=VLOOKUP("*" & A1 & "*",C:C,1,0)

also works.

"Kelly" wrote:

I need to often match up columns on two spreadsheets. One of the xls has a
reference number of 12 digits...the other has 10 digit. The 10 digits are
the same as the 12 except they are missing the first and last number.

Is there a way to do a vlookup using a "wild" card type feature?

  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 4,339
Default vlookup with not exactly matching numbers

I had the numbers formated as text when I did a quick test but did have
leading zero(s).

"Kelly" wrote:

How should the numbers be formatted? The 12 digits are formatted as
"000000000000" because some of them begin with 0. Some of the 10 digits
begin with zero as well.

"Toppers" wrote:

and ...

=VLOOKUP("*" & A1 & "*",C:C,1,0)

also works.

"Kelly" wrote:

I need to often match up columns on two spreadsheets. One of the xls has a
reference number of 12 digits...the other has 10 digit. The 10 digits are
the same as the 12 except they are missing the first and last number.

Is there a way to do a vlookup using a "wild" card type feature?



  #6   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 132
Default vlookup with not exactly matching numbers

Thank you! You are a God Send!

"Toppers" wrote:

I had the numbers formated as text when I did a quick test but did have
leading zero(s).

"Kelly" wrote:

How should the numbers be formatted? The 12 digits are formatted as
"000000000000" because some of them begin with 0. Some of the 10 digits
begin with zero as well.

"Toppers" wrote:

and ...

=VLOOKUP("*" & A1 & "*",C:C,1,0)

also works.

"Kelly" wrote:

I need to often match up columns on two spreadsheets. One of the xls has a
reference number of 12 digits...the other has 10 digit. The 10 digits are
the same as the 12 except they are missing the first and last number.

Is there a way to do a vlookup using a "wild" card type feature?

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
Why are 1/2 my numbers imported as text and the rest as numbers? KBear Excel Discussion (Misc queries) 2 April 21st 06 01:40 PM
Vlookup referencing one column that contains part numbers in both. crafty_girl Excel Worksheet Functions 2 April 18th 06 07:29 PM
using vlookup to find phone numbers online muskiediver Excel Discussion (Misc queries) 2 April 12th 06 06:43 PM
Getting #N/A from Vlookup when matching value exist in the lookup data range. jdeshpa Excel Worksheet Functions 2 November 22nd 05 09:12 PM
VLOOKUP for a cell with both letters and numbers Sonohal Excel Discussion (Misc queries) 6 April 8th 05 02:13 PM


All times are GMT +1. The time now is 11:05 PM.

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"