A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Excel » Worksheet Functions
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Vlookup and match part of text in a cell



 
 
Thread Tools Display Modes
  #1  
Old May 4th, 2010, 03:49 AM posted to microsoft.public.excel.worksheet.functions
Joe Phan
external usenet poster
 
Posts: 1
Default Vlookup and match part of text in a cell

Hi, I am trying to match text in an array that may not be exact match in the
cell and return the value in the adjacent column. example: look up "today"
in the array that has "today is the 3rd" and then return the value next to
this. Seems simple, but I can not work this out. I 've looked through the
discussions and can not seem to find the appropriate answer.
  #2  
Old May 4th, 2010, 04:04 AM posted to microsoft.public.excel.worksheet.functions
ozgrid.com
external usenet poster
 
Posts: 328
Default Vlookup and match part of text in a cell

=VLOOKUP("Today*",$A:$D,2,FALSE)



--
Regards
Dave Hawley
www.ozgrid.com
"Joe Phan" wrote in message
news
Hi, I am trying to match text in an array that may not be exact match in
the
cell and return the value in the adjacent column. example: look up
"today"
in the array that has "today is the 3rd" and then return the value next to
this. Seems simple, but I can not work this out. I 've looked through
the
discussions and can not seem to find the appropriate answer.


  #3  
Old May 4th, 2010, 04:11 AM posted to microsoft.public.excel.worksheet.functions
Max
external usenet poster
 
Posts: 8,574
Default Vlookup and match part of text in a cell

You could try something fuzzy like this:
=VLOOKUP("*"&E2&"*",B2:C100,2,0)
where lookup value is in E2, eg: today
the lookup col is col B and the return is from col C
Any good? hit the YES below
--
Max
Singapore
---
"Joe Phan" wrote:
Hi, I am trying to match text in an array that may not be exact match in the
cell and return the value in the adjacent column. example: look up "today"
in the array that has "today is the 3rd" and then return the value next to
this. Seems simple, but I can not work this out. I 've looked through the
discussions and can not seem to find the appropriate answer.

  #4  
Old May 4th, 2010, 04:11 AM posted to microsoft.public.excel.worksheet.functions
T. Valko
external usenet poster
 
Posts: 15,759
Default Vlookup and match part of text in a cell

For this type of lookup you can use wildcards.

=VLOOKUP("*today*",A2:B10,2,0)

Or, using cell to hold the lookup value:

D2 = lookup value = today

=VLOOKUP("*"&D2&"*",A2:B10,2,0)

--
Biff
Microsoft Excel MVP


"Joe Phan" wrote in message
news
Hi, I am trying to match text in an array that may not be exact match in
the
cell and return the value in the adjacent column. example: look up
"today"
in the array that has "today is the 3rd" and then return the value next to
this. Seems simple, but I can not work this out. I 've looked through
the
discussions and can not seem to find the appropriate answer.



 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 06:59 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.