Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 102
Default VLookup with Search for in String

I need to look for this value within a cell

i.e.
A1XT-4-0713-01-00021-1.PDF

within Folder:Folder:Folder:Folder:FolderPath:A1XT-4-0713-01-00021-1.PDF
then return that row's third column's value.
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 47
Default VLookup with Search for in String

On Mar 23, 4:21*pm, Benjamin
wrote:
I need to look for this value within a cell

i.e.
A1XT-4-0713-01-00021-1.PDF

within Folder:Folder:Folder:Folder:FolderPath:A1XT-4-0713-01-00021-1.PDF
*then return that row's third column's value.


=SUMIF(A2,"*"&"A1XT-4-0713-01-00021-1.PDF"&"*",C2)

IF A2 contains the string it will pick up the value in column C. This
is intended for a single row,,, to be copied vertically to the extent
of the database.
  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Max Max is offline
external usenet poster
 
Posts: 9,221
Default VLookup with Search for in String

You can work it this way for fuzzy searches ...
Assume your source data in cols A and C from row2 down
Assume A1 contains the string: A1XT-4-0713-01-00021-1.PDF
Put this in B1, press normal ENTER to confirm will do:
=INDEX(C2:C100,MATCH(TRUE,INDEX(ISNUMBER(SEARCH(A1 ,A2:A100)),),0))
B1 will return the required result from col C. Inspiring? hit the YES below
--
Max
Singapore
---
"Benjamin" wrote:
I need to look for this value within a cell

i.e.
A1XT-4-0713-01-00021-1.PDF

within Folder:Folder:Folder:Folder:FolderPath:A1XT-4-0713-01-00021-1.PDF
then return that row's third column's value.

  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Max Max is offline
external usenet poster
 
Posts: 9,221
Default VLookup with Search for in String

=SUMIF(A2,"*"&"A1XT-4-0713-01-00021-1.PDF"&"*",C2)
IF A2 contains the string it will pick up the value in column C


But it fails if col C = text. I'd prefer the more generic index/match way
explained in my response which works to return both text or numbers. You had
another earlier posting which bears relevance to this issue. If you use the
more generic index/match instead of SUM conditional functions to perform
lookup-n-return, then it doesn't matter what the return col may contain
(text, nums or mixed data). It'll work right through.
--
Max
Singapore
---

  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 47
Default VLookup with Search for in String

On Mar 24, 5:24*pm, Max wrote:
=SUMIF(A2,"*"&"A1XT-4-0713-01-00021-1.PDF"&"*",C2)
IF A2 contains the string it will pick up the value in column C


But it fails if col C = text. I'd prefer the more generic index/match way
explained in my response which works to return both text or numbers. You had
another earlier posting which bears relevance to this issue. If you use the
more generic index/match instead of SUM conditional functions to perform
lookup-n-return, then it doesn't matter what the return col may contain
(text, nums or mixed data). It'll work right through.
--
Max
Singapore
---


True. Where I use this the "C" always contains a value. Very good
point though.
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
Search for string containing richzip Excel Discussion (Misc queries) 5 January 14th 10 09:49 PM
How to search a string from the right ? EuroMaverick Setting up and Configuration of Excel 2 March 28th 07 09:20 PM
Using Vlookup in a string search of a cell Ralph Heidecke Excel Worksheet Functions 1 April 26th 06 06:46 PM
to search for a string and affect data if it finds the string? Shwaman Excel Worksheet Functions 1 January 11th 06 12:56 AM
Q: search in string JIM.H. Excel Discussion (Misc queries) 5 January 5th 05 10:24 PM


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