+ Reply to Thread
Results 1 to 5 of 5

Split and Parse Data into Separate Cells

Hybrid View

  1. #1
    Registered User
    Join Date
    09-10-2019
    Location
    UK
    MS-Off Ver
    Office365
    Posts
    2

    Split and Parse Data into Separate Cells

    Hi

    I have a range of cells that I have copied and pasted from a directory file list. I'm trying to split and parse the data so that all I get is a column containing just the file name without the file type suffix, date, time, spaces and file size.

    eg:

    20/01/2017  06:29           114,881 Tonic Trouble (USA) (Rev A).png
    20/01/2017  06:29            72,482 Tony Hawk's Pro Skater 2 (USA).png
    20/01/2017  06:29            57,126 Tom Clancy's Rainbow Six (USA).png
    20/01/2017  06:29            87,216 Superman (USA) (En,Fr,Es).png
    20/01/2017  06:29            30,068 Supercross 2000 (USA).png
    20/01/2017  06:29            67,729 Super Smash Bros. (USA).png
    08/01/2018  22:28            52,126 Super Mario Odyssey 64.png
    20/01/2017  06:29            91,390 Super Mario 64 (USA).png
    20/01/2017  06:29           111,690 Super Bowling (USA).png
    Which is all in column A

    I want to split this so I just get the file name:

    Tony Hawk's Pro Skater (USA)
    Tom Clancy's Rainbow Six (USA)
    .
    .
    .
    etc

    I've tried using text to columns, but even using custom delimiters I cant get it to parse properly.

    Then there's the problem of removing the suffix. Some of the filenames have commas and some have fullstop/periods in the title, such as Mr.Somebody.png for example, so again delimiters cannot differentiate between the two.

    Any advice greatfully received.

  2. #2
    Forum Expert Sam Capricci's Avatar
    Join Date
    06-14-2012
    Location
    Palm Harbor, Florida
    MS-Off Ver
    16.85 for Mac MS 365
    Posts
    8,518

    Re: Split and Parse Data into Separate Cells

    if they are all .png you can use a simple substitute for that, something like =SUBSTITUTE(A2,".png","") and it will return all but that. If you have other file suffixes you can add additional substitutes for those. I am not sure what the date and time sections have to do with it since I cannot see your data, just the snapshot.
    Make contributors happy, click on the "* Add Reputation" as a way to say thank you.
    Sam Capricci

  3. #3
    Forum Expert Sam Capricci's Avatar
    Join Date
    06-14-2012
    Location
    Palm Harbor, Florida
    MS-Off Ver
    16.85 for Mac MS 365
    Posts
    8,518

    Re: Split and Parse Data into Separate Cells

    after rereading, if you have all of that in a given cell (date, time, some count, etc.) it appears that every place where there is a title you want is at the same point so maybe this formula will work better... =SUBSTITUTE(MID(A2,37,99),".png","")

  4. #4
    Registered User
    Join Date
    09-10-2019
    Location
    UK
    MS-Off Ver
    Office365
    Posts
    2

    Re: Split and Parse Data into Separate Cells

    Perfect, thanks

  5. #5
    Forum Guru
    Join Date
    04-23-2012
    Location
    New Jersey, USA
    MS-Off Ver
    Excel 365
    Posts
    2,425

    Re: Split and Parse Data into Separate Cells

    Here is another formula that should work...

    =MID(LEFT(A2,LEN(A2)-4),37,99)

+ 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. [SOLVED] VBA to automatically split data pasted from PDF into separate cells
    By bdouglas1011 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 12-04-2017, 07:50 PM
  2. [SOLVED] Split cell text with multile rows of data into separate cells
    By sherylt13 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 02-04-2017, 11:07 AM
  3. Trying to split data into separate cells
    By tom hatten in forum Excel General
    Replies: 21
    Last Post: 01-21-2016, 05:47 AM
  4. [SOLVED] Split column of cells, each cells data is separated by commas into separate rows
    By mike_m1 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 12-09-2014, 08:33 AM
  5. [SOLVED] Split a string of data among separate cells
    By rodrignj in forum Excel Programming / VBA / Macros
    Replies: 11
    Last Post: 02-14-2013, 10:18 AM
  6. How to parse out FROM/TO dates into 2 separate cells
    By harrywaldron in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 08-14-2007, 12:09 PM
  7. Split data from one cell to two separate cells
    By Michele in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 10-25-2005, 05:05 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