+ Reply to Thread
Results 1 to 8 of 8

splitting cells

  1. #1
    Forum Contributor
    Join Date
    04-29-2012
    Location
    nuneaton, England
    MS-Off Ver
    Excel 2007
    Posts
    366

    splitting cells

    i want to split a cell with a formula and not use text to columns. i will have a cell a1 for example with 1d 4h 36m 34s in and want to have 4 formulas 1 in
    a5
    a6
    a7
    a8

    .. so the result will be

    1
    4
    36
    34

    i know you can split with left, mid and right but dont know how to do it with the desired results

    thanks,

    wayne

  2. #2
    Forum Expert cbatrody's Avatar
    Join Date
    04-15-2014
    Location
    Dubai
    MS-Off Ver
    Microsoft Office 365 ProPlus
    Posts
    2,136

    Re: splitting cells

    Hi,

    Can you please post few more examples?

  3. #3
    Forum Expert GeneralDisarray's Avatar
    Join Date
    09-15-2011
    Location
    Pittsburgh, PA, USA
    MS-Off Ver
    Windows Excel 2016
    Posts
    1,416

    Re: splitting cells

    If the text/numbers are exactly as you describe (no extra spaces on front or back) use:

    A5
    =LEFT(A1,FIND("d",A1)-1)

    A6
    =MID(A1,FIND("d ",A1)+2,FIND("h ",A1)-FIND("d ",A1)-2)

    A7
    =MID(A1,FIND("h ",A1)+2,FIND("m ",A1)-FIND("h ",A1)-2)

    A8
    =MID(A1,FIND("m ",A1)+2,FIND("s",A1)-FIND("m ",A1)-2)
    Remember, saying thanks only takes a second or two. Click the star icon(*) below the post you liked, to give some Rep if you think an answer deserves it.

    Please,mark your thread [SOLVED] if you received your answer.

  4. #4
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    43,984

    Re: splitting cells

    Beaten to it... Same approach taken by me, except that I used search (case insensitive) instead of find.
    Attached Files Attached Files
    Glenn




    None of us get paid for helping you... we do this for fun. So DON'T FORGET to say "Thank You" to all who have freely given some of their time to help YOU.

    Temporary addition of accented to illustrate ongoing problem to the TT: L? fh?ile P?draig sona dhaoibh

  5. #5
    Forum Contributor
    Join Date
    04-29-2012
    Location
    nuneaton, England
    MS-Off Ver
    Excel 2007
    Posts
    366

    Re: splitting cells

    obviously the numbers will change and they can go into single figures or double.. will that make a difference

  6. #6
    Forum Contributor
    Join Date
    04-29-2012
    Location
    nuneaton, England
    MS-Off Ver
    Excel 2007
    Posts
    366

    Re: splitting cells

    thank you both

  7. #7
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    43,984

    Re: splitting cells

    Single or double will be fine.

  8. #8
    Forum Guru AlKey's Avatar
    Join Date
    07-20-2009
    Location
    Lakeland, FL USA
    MS-Off Ver
    Microsoft Office 2010/ Office 365
    Posts
    8,903

    Re: splitting cells

    Or with one formula

    =LOOKUP(25^25,1*LEFT(TRIM(MID(SUBSTITUTE($A$1," ",REPT(" ",255)),(ROWS($A$1:A1)-1)*255+1,255)),ROW(A$1:A$10000)))

    A
    B
    1
    1d 4h 36m 34s 1
    2
    4
    3
    36
    4
    34
    Last edited by AlKey; 08-13-2014 at 08:27 PM.
    If you like my answer please click on * Add Reputation
    Don't forget to mark threads as "Solved" if your problem has been resolved

    "Nothing is so firmly believed as what we least know."
    --Michel de Montaigne

+ 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. Splitting cells.
    By tronsmith in forum Excel General
    Replies: 3
    Last Post: 07-09-2010, 06:10 AM
  2. Splitting Cells
    By b50 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 07-01-2010, 07:48 PM
  3. Replies: 1
    Last Post: 06-11-2009, 03:57 AM
  4. splitting cells
    By gorgenyi in forum Excel General
    Replies: 1
    Last Post: 09-27-2006, 12:28 PM
  5. [SOLVED] Splitting Cells
    By Jess in forum Excel General
    Replies: 1
    Last Post: 05-20-2006, 07:15 AM

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