+ Reply to Thread
Results 1 to 3 of 3

how to parse and select certain data in a cell

Hybrid View

  1. #1
    Forum Contributor
    Join Date
    02-28-2013
    Location
    NY, USA
    MS-Off Ver
    Excel 2019
    Posts
    101

    how to parse and select certain data in a cell

    Have the following type of data in 100x50000 cells and need to parse and select only part of the data to make a new spreadsheet
    0/0:31,0:31:64:0,64,959
    For example, need to make one new spreadsheet containing all the info before the first `:` (0/0)
    and another one containing all the info after the last `:` (0,64,959)
    I know I can do `text-to-column` and set the `delimiter`, but the output would generate a BIGGER spreadsheet that will be more difficult for me to select for the info I need.
    Is there another way to do it? (have been trying with LFET, LEN, RIGHT MID, but none seems to work the way I had hoped)
    Last edited by seraphin; 02-13-2015 at 12:23 PM.

  2. #2
    Registered User
    Join Date
    02-24-2014
    Location
    Seattle, WA
    MS-Off Ver
    Excel 2010
    Posts
    9

    Re: how to parse and select certain data in a cell

    Hey Seraphin -

    You can use the following formulas to get the data left of the colon, and the data right of the last colon. In this case, the sheet containing your unparsed cells is Sheet1, starting in cell A1.
    Sheet2!A1 = =LEFT(Sheet1!A1,FIND(":",Sheet1!A1,1)-1)
    Sheet3!A1 = =RIGHT(Sheet1!A1,LEN(Sheet1!A1)-FIND("*",SUBSTITUTE(Sheet1!A1,":","*",LEN(Sheet1!A1)-LEN(SUBSTITUTE(Sheet1!A1,":","")))))

    Another brilliant way I saw to do this would be to use
    Sheet3!A1 = =TRIM(RIGHT(SUBSTITUTE(Sheet1!A1,":",REPT(" ",99)),99))

    which essentially replaces each instance of ":" with 99 blank spaces. Then the function trims the 99 right-most characters. , which guarantees that you don't pick up any values from before the last ":".

    Just drag to the same 100 x 50000 cells on both sheets 2 and 3 and you should be gold!
    Last edited by Bstack; 02-13-2015 at 12:55 PM.

  3. #3
    Forum Contributor
    Join Date
    02-28-2013
    Location
    NY, USA
    MS-Off Ver
    Excel 2019
    Posts
    101

    Re: how to parse and select certain data in a cell

    Thanks !! will give them a try

+ 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. Parse cell data into multiple columns
    By maldonadocj in forum Excel Programming / VBA / Macros
    Replies: 13
    Last Post: 05-05-2014, 08:16 AM
  2. Parse data from one cell to multiple cells
    By Shiraz.dobby in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 01-14-2014, 12:45 AM
  3. Replies: 4
    Last Post: 06-17-2013, 05:21 AM
  4. Parse data from one cell to multiple cells
    By cchoo13 in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 12-11-2009, 01:40 PM
  5. Select Data from a cell, move down a number, select data
    By Kage_ in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 10-12-2007, 02:12 PM

Tags for this Thread

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