Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
SRL
 
Posts: n/a
Default Finding matching cell data


I have a worksheet showing a column of file names e.g.
XY1234X
XY5678X
XY2468X
XY4321X etc

and another worksheet containing a column of file paths e.g.
I:\Sales\AllUsers\Marketing\115001 - North East\XY1234X
I:\Sales\AllUsers\Marketing\115001 - North East\XY8765X
I:\Sales\AllUsers\Marketing\115002 - North\XY4321X
I:\Sales\AllUsers\Marketing\115003 - North West\XY5678X


What I'd like to do is cross reference them to see if any of the file
names appear in any of the paths.

I tried using VLOOKUP by adding a column to the right of the path
column with the letter "Y" in it and asking for this "Y" to be returned
in the event that the file name appeared in the path but it returned
"#N/A" indicating that the data was not found (even though the test
Lookup value was definitely contained in one of the paths in the table
array).

I'm pretty sure I'm barking up the wrong tree with VLOOKUP and would
maybe be better off with an IF function of some kind. Does any one
have any ideas, please?


--
SRL
------------------------------------------------------------------------
SRL's Profile: http://www.excelforum.com/member.php...fo&userid=6748
View this thread: http://www.excelforum.com/showthread...hreadid=516137

  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Bernie Deitrick
 
Posts: n/a
Default Finding matching cell data

SRL,

With the file names starting in cell A2, and paths on sheet2 in column A:

=IF(ISERROR(MATCH("*"&A2,Sheet2!$A:$A,FALSE)),"No
match",INDEX(Sheet2!A:A,MATCH("*"&A2,Sheet2!$A:$A, FALSE)))

Copy down to match your list of file names.

HTH,
Bernie
MS Excel MVP


"SRL" wrote in message
...

I have a worksheet showing a column of file names e.g.
XY1234X
XY5678X
XY2468X
XY4321X etc

and another worksheet containing a column of file paths e.g.
I:\Sales\AllUsers\Marketing\115001 - North East\XY1234X
I:\Sales\AllUsers\Marketing\115001 - North East\XY8765X
I:\Sales\AllUsers\Marketing\115002 - North\XY4321X
I:\Sales\AllUsers\Marketing\115003 - North West\XY5678X


What I'd like to do is cross reference them to see if any of the file
names appear in any of the paths.

I tried using VLOOKUP by adding a column to the right of the path
column with the letter "Y" in it and asking for this "Y" to be returned
in the event that the file name appeared in the path but it returned
"#N/A" indicating that the data was not found (even though the test
Lookup value was definitely contained in one of the paths in the table
array).

I'm pretty sure I'm barking up the wrong tree with VLOOKUP and would
maybe be better off with an IF function of some kind. Does any one
have any ideas, please?


--
SRL
------------------------------------------------------------------------
SRL's Profile: http://www.excelforum.com/member.php...fo&userid=6748
View this thread: http://www.excelforum.com/showthread...hreadid=516137



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
Inserting a new line when external data changes Rental Man Excel Discussion (Misc queries) 0 January 11th 06 07:05 PM
Need to Improve Code Copying/Pasting Between Workbooks David Excel Discussion (Misc queries) 1 January 6th 06 03:56 AM
data in cell not corresponding with entry Graeme New Users to Excel 1 December 21st 05 04:16 PM
Input Cell in One variable data table Dottore Magistrale Excel Worksheet Functions 0 August 30th 05 06:25 PM
Pulling data from 1 sheet to another Dave1155 Excel Worksheet Functions 1 January 12th 05 05:55 PM


All times are GMT +1. The time now is 11:16 PM.

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"