Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
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   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 464
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
...
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   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Max Max is offline
external usenet poster
 
Posts: 9,221
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   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 15,768
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
...
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.



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
Vlookup with part match Rob Excel Worksheet Functions 5 December 13th 09 05:07 PM
Vlookup with part of cell text Madiya Excel Worksheet Functions 3 April 8th 09 05:25 PM
vlookup to find match only part of a text value David Excel Discussion (Misc queries) 4 August 29th 08 02:35 PM
Search/Match/Find ANY part of string to ANY part of Cell Value TWhizTom Excel Worksheet Functions 0 July 21st 08 08:16 PM
If Match Part of Text Within Cell, Then Blank SteveC Excel Worksheet Functions 3 May 12th 06 03:16 AM


All times are GMT +1. The time now is 12:24 AM.

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

About Us

"It's about Microsoft Excel"