Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
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
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
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
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
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 |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Look up part of a number within a serial number and cpy back assoc | Excel Worksheet Functions | |||
Part of number does not print | Excel Discussion (Misc queries) | |||
divinding part of a number | Excel Discussion (Misc queries) | |||
part number with 'E' | Excel Worksheet Functions | |||
Part Number/Qty Consolidations | Excel Discussion (Misc queries) |