Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 62
Default loopkup part of a name or number

Hi,

I have a sheet containing a column with complete product names or numbers,
like for instance: 'Dogs plastic small 5 packages' or 'BKL 55267'.

In another sheet I want to look for something else, belonging to that name
or number. However, the other sheet does not contain the names or numbers as
such, but only part of the name or number, respectively 'plastic' ór '55267'.
Is it possible to lookup these cells, with only part of the name or number?

I know how I can look for the complete name, by ony having a part with:
"*plastic*", or "*55267*". But I dont know how I can work the other way
around. Is this possible?

Thanks in advance.

Marieke
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 8,520
Default loopkup part of a name or number

Change the reference as required

=VLOOKUP("*"&A1&"*",B1:D10,2,FALSE)

If this post helps click Yes
---------------
Jacob Skaria


"mariekek5" wrote:

Hi,

I have a sheet containing a column with complete product names or numbers,
like for instance: 'Dogs plastic small 5 packages' or 'BKL 55267'.

In another sheet I want to look for something else, belonging to that name
or number. However, the other sheet does not contain the names or numbers as
such, but only part of the name or number, respectively 'plastic' ór '55267'.
Is it possible to lookup these cells, with only part of the name or number?

I know how I can look for the complete name, by ony having a part with:
"*plastic*", or "*55267*". But I dont know how I can work the other way
around. Is this possible?

Thanks in advance.

Marieke

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 8,520
Default loopkup part of a name or number

Oops..I missed your point

The below formula look for a first word match in the array.
A1 = 'Dogs plastic small 5 packages'

The below will lookup the first word that is 'dogs' in the array B1:B10 and
returns the row number. May be you can check whether this returns a row. If
not try and match the second word. and once you get the row use INDEX()
function to retreive the corresponding cell.

=MATCH(LEFT(A1,FIND(" ",A1)-1),B1:B10,0)

=index(b1:b10,MATCH(LEFT(A1,FIND(" ",A1)-1),B1:B10,0))

If this post helps click Yes
---------------
Jacob Skaria


"Jacob Skaria" wrote:

Change the reference as required

=VLOOKUP("*"&A1&"*",B1:D10,2,FALSE)

If this post helps click Yes
---------------
Jacob Skaria


"mariekek5" wrote:

Hi,

I have a sheet containing a column with complete product names or numbers,
like for instance: 'Dogs plastic small 5 packages' or 'BKL 55267'.

In another sheet I want to look for something else, belonging to that name
or number. However, the other sheet does not contain the names or numbers as
such, but only part of the name or number, respectively 'plastic' ór '55267'.
Is it possible to lookup these cells, with only part of the name or number?

I know how I can look for the complete name, by ony having a part with:
"*plastic*", or "*55267*". But I dont know how I can work the other way
around. Is this possible?

Thanks in advance.

Marieke

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
Look up part of a number within a serial number and cpy back assoc Seantastic Excel Worksheet Functions 9 November 3rd 08 04:10 PM
Part of number does not print RoniB Excel Discussion (Misc queries) 0 April 11th 07 03:42 PM
divinding part of a number Solarissf Excel Discussion (Misc queries) 5 June 19th 06 04:12 PM
part number with 'E' chiuinggum Excel Worksheet Functions 7 November 15th 05 04:20 AM
Part Number/Qty Consolidations [email protected] Excel Discussion (Misc queries) 2 February 6th 05 09:21 PM


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