Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I need to look up for a value in a range of cells; the problem is that that
value is going to be part of the value/text (not an exact match) of any cell in that range. Thus VLOOKUP alone wont work. i.e looking for 120206 in a range of cells where one of them contains 120203, 120206, 120201, 120196, 120202, 120208 thanks in advance |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Luis,
For example, to pull a value from column C where the string 120206 is in a cell in column A: =INDEX(C:C,MATCH("*120206*",A:A,FALSE)) The values in column A must be strings - ie, if you entere 120206 into a cell in column A, it should not be a number.. otherwise, you will need to look for the number first. HTH, Bernie MS Excel MVP "LuisE" wrote in message ... I need to look up for a value in a range of cells; the problem is that that value is going to be part of the value/text (not an exact match) of any cell in that range. Thus VLOOKUP alone won't work. i.e looking for 120206 in a range of cells where one of them contains 120203, 120206, 120201, 120196, 120202, 120208 thanks in advance |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
You can use wild cards.
=vlookup("*" & "120206" & "*", sheet2!a:b, 2, false) or =vlookup("*" & A1 & "*", sheet2!a:b, 2, false) and probably better: =if(a1="","",vlookup("*" & A1 & "*", sheet2!a:b, 2, false)) Those wildcards will find a match! LuisE wrote: I need to look up for a value in a range of cells; the problem is that that value is going to be part of the value/text (not an exact match) of any cell in that range. Thus VLOOKUP alone wont work. i.e looking for 120206 in a range of cells where one of them contains 120203, 120206, 120201, 120196, 120202, 120208 thanks in advance -- Dave Peterson |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
If (Vlookup 0) working, but what if Vlookup cell does not exist | Excel Worksheet Functions | |||
Vlookup problem - unable to get the vlookup property | Excel Programming | |||
using a vlookup to enter text into rows beneath the vlookup cell | Excel Programming | |||
Combine VLOOKUP and IF function so #NA isn't returned as a value from VLOOKUP | Excel Discussion (Misc queries) | |||
Vlookup info being used without vlookup table attached? | Excel Worksheet Functions |