+ Reply to Thread
Results 1 to 5 of 5

Is there a way to split a set of numbers into different columns

  1. #1
    Registered User
    Join Date
    04-08-2011
    Location
    Singapore
    MS-Off Ver
    Excel 2003
    Posts
    5

    Is there a way to split a set of numbers into different columns

    Hi,

    Good morning from S'pore. I am a novic excel user. Here is my question:

    I have 10,000 sets of numbers, ranging from 0000 to 9999 keyed into 10,000 rows. Is there anyway to split these 10,000 sets of numbers into 4 columns?

    For instance, column A containing 6789 (*note: no spacing) to be split into:

    Column B: 6
    Column C: 7
    Column D: 8
    Column E: 9

    Thank you!
    Last edited by wgwg123; 04-09-2011 at 01:00 AM.

  2. #2
    Forum Expert teylyn's Avatar
    Join Date
    10-28-2008
    Location
    New Zealand
    MS-Off Ver
    Excel 365 Insider Fast
    Posts
    11,372

    Re: Is there a way to split a set of numbers into different columns

    Hello,
    you can use this set of formulas

    B1
    =LEFT(A1,1)

    C1
    =MID(A1,2,1)

    D1
    =MID(A1,3,1)

    E1
    =MID(A1,4,1)

    This will work if all numbers have 4 digits. If the a number has less than 4 digits, the columns to the right will be empty.

    cheers

  3. #3
    Registered User
    Join Date
    04-08-2011
    Location
    Singapore
    MS-Off Ver
    Excel 2003
    Posts
    5

    Re: Is there a way to split a set of numbers into different columns

    Hi Teylyn,

    Thanks for your suggestion.

    It works for most of the cases, except numbers beginning with zero. That means your suggested formulas doesn't apply to 0000 to 0009. Is there any way to solve this? Thanks again for your advice.

    Regards,
    Werner

  4. #4
    Registered User
    Join Date
    04-08-2011
    Location
    Singapore
    MS-Off Ver
    Excel 2003
    Posts
    5

    Thumbs up Re: Is there a way to split a set of numbers into different columns

    Hi,

    I'm referring to my second questions about the range of numbers from 0000 to 0009. I tried to input a 'sign before the first zero, and it works!

    I would like to take this opportunity to thank Teylyn again.

    Regards,
    Werner

  5. #5
    Forum Expert teylyn's Avatar
    Join Date
    10-28-2008
    Location
    New Zealand
    MS-Off Ver
    Excel 365 Insider Fast
    Posts
    11,372

    Re: Is there a way to split a set of numbers into different columns

    "Werner" klingt nicht besonders S'pore Chinesisch ... Danke fuer das Feedback.

+ 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