+ Reply to Thread
Results 1 to 4 of 4

Identify cells containing a file name and move them to a separate column

Hybrid View

  1. #1
    Registered User
    Join Date
    01-04-2019
    Location
    Arizona
    MS-Off Ver
    Excel 2013
    Posts
    7

    Identify cells containing a file name and move them to a separate column

    I am attempting to build an index of all my files on a specific subject. I have about 3000 files. The full path is contained in one column. I do a text to columns operation using \ as the delimiter. This puts each folder in a separate column with the actual file in the last column. Unfortunately some folders have many subfolders and some have none so the actual file can appear in any column. I would like to search for just the file name and put them all in a single column so I can sort them. So far the only way I have been able to do it is filter on each column (I use conditional formatting that highlights the cell with the file in it). I then copy the files from that column to a new column. I have to repeat this filter for each column. Is there a simple way to identify the cell with the file in it and have it copied to a new column. All file names are in the format: filename.XYZ

    Thanks in advance
    Parkaz

  2. #2
    Forum Expert dosydos's Avatar
    Join Date
    12-09-2015
    Location
    Massachusetts
    MS-Off Ver
    365(PC) V:2308
    Posts
    1,474

    Re: Identify cells containing a file name and move them to a separate column

    =TRIM(RIGHT(SUBSTITUTE(A1,"\",REPT(" ",LEN(A1))),LEN(A1)))

    Try this assuming data starts in cell A1

  3. #3
    Registered User
    Join Date
    01-04-2019
    Location
    Arizona
    MS-Off Ver
    Excel 2013
    Posts
    7

    Re: Identify cells containing a file name and move them to a separate column

    That is fantastic. I can't figure out how it works but it works great

    thanks

  4. #4
    Registered User
    Join Date
    01-04-2019
    Location
    Arizona
    MS-Off Ver
    Excel 2013
    Posts
    7

    Re: Identify cells containing a file name and move them to a separate column

    Interestingly I ran an exact check to make sure all were the same and about a dozen out of 3000 came back false. I found that my data had 1 more character space than your result. Is this a formula issue or do I just need to trim my original data?

    My data Labor Report Letter.pdf
    Result from your formula Labor Report Letter.pdf

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Looking to identify and move address info to another column from group of text
    By donslowski in forum Excel Formulas & Functions
    Replies: 11
    Last Post: 09-19-2017, 10:08 AM
  2. [SOLVED] VBA Macro to identify number of empty cells from separate workbook
    By TforTimmeh in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 08-25-2016, 05:13 AM
  3. [SOLVED] Move row based on second column in separate workbook
    By Alimac70 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 06-03-2013, 07:12 AM
  4. Identify numerical and move those to a separate sheet.
    By markDuffy in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 03-07-2013, 04:57 PM
  5. Replies: 2
    Last Post: 12-21-2012, 12:42 AM
  6. [SOLVED] Identify workbook with specifc text in consecutive rows and move/rename file
    By me_melb in forum Excel Programming / VBA / Macros
    Replies: 11
    Last Post: 08-13-2012, 07:00 PM
  7. Replies: 7
    Last Post: 09-07-2011, 02:30 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1