+ Reply to Thread
Results 1 to 7 of 7

Breaking up information in one cell into multiple cells

Hybrid View

  1. #1
    Registered User
    Join Date
    03-01-2013
    Location
    Boston
    MS-Off Ver
    Excel 2007
    Posts
    3

    Breaking up information in one cell into multiple cells

    As of now there are no constants from cell A2 down to cell A10.

    I want to take apart the information in A2 so that the year of the cell is posted in B2, the name is posted in C2, and the number is posted in D4

    A2 is currently: 2003 Gregory Holmes Johnson 34
    A3 is currently: 2005 Samuel Mitchell Joan Lee 12
    A4 is currently: 2009 Christopher Nelson Clemens Hayward 24
    A5 is currently: 2009 Lucas Johnson Manuel 38

    and so on...

    So to restate my question, how do I take apart A2, when it has no constants, so that the year in A2 is shown in B2, the full name in A2 is shown in C2, and the number is shown in D4. Any help would be greatly appreciated.

    I am also currently operating on Microsoft Excel

  2. #2
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 insider Version 2505 Win 11
    Posts
    24,725

    Re: Breaking up information in one cell into multiple cells

    Question: Is the number at the end of the cell always going to be two digits?
    Alan עַם יִשְׂרָאֵל חַי


    Change an Ugly Report with Power Query
    Database Normalization
    Complete Guide to Power Query
    Man's Mind Stretched to New Dimensions Never Returns to Its Original Form

  3. #3
    Registered User
    Join Date
    03-01-2013
    Location
    Boston
    MS-Off Ver
    Excel 2007
    Posts
    3

    Re: Breaking up information in one cell into multiple cells

    No the numbers at the end aren't constant. Some numbers at the end are three digits, some are 5, and some include decimals.

  4. #4
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    25,421

    Re: Breaking up information in one cell into multiple cells

    Put this in B2:

    =--LEFT(A2,4)

    if you want the year as a number - if not, then omit the --, which turns the text value into a numeric value.

    You can have this formula in C2:

    =MID(A2,6,LEN(A2)-8)

    assuming your numbers at the end are always 2 digits.

    Then in D4 (or should it be D2 ??), you can have this formula:

    =--RIGHT(A2,2)

    Hope this helps.

    Pete

  5. #5
    Forum Expert Kevin UK's Avatar
    Join Date
    12-07-2010
    Location
    Radstock, Somerset
    MS-Off Ver
    365
    Posts
    1,922

    Re: Breaking up information in one cell into multiple cells

    Hi NMen

    See if the following are of any use.

    In B2: =--LEFT(A2,4)
    In D2: =--TRIM(RIGHT(SUBSTITUTE(A2," ",REPT(" ",100)),100))

    Then in C2: =TRIM(SUBSTITUTE(SUBSTITUTE(A2,B2,""),D2,""))
    And copy the formulas down.
    Regards Kevin


    Merged Cells (They are the work of the devil!!!)

  6. #6
    Registered User
    Join Date
    03-01-2013
    Location
    Boston
    MS-Off Ver
    Excel 2007
    Posts
    3

    Re: Breaking up information in one cell into multiple cells

    Hey Kevin,

    When I apply the formula from C2, I get an error message

  7. #7
    Forum Expert Kevin UK's Avatar
    Join Date
    12-07-2010
    Location
    Radstock, Somerset
    MS-Off Ver
    365
    Posts
    1,922

    Re: Breaking up information in one cell into multiple cells

    Hi NMen

    Should be OK, see the attached.

    Edit: They start in A3 not A2, sorry.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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