+ Reply to Thread
Results 1 to 3 of 3

Splitting a string of numbers into separate cells: where to even begin?

Hybrid View

  1. #1
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,582

    Re: Splitting a string of numbers into separate cells: where to even begin?

    With your number in A1
    In B1 and copied to the right as far as you want to. Copy down as far as you need to also.
    =IFERROR(MID(A1,COLUMNS($A$1:A1),1),"")

    If you want them to be considered numbers (for calculations)
    =IFERROR(MID(A1,COLUMNS($A$1:A1),1)+0,"")

    COLUMNS($A$1:A1) is a way of iterating your value. it counts the number of columns between parenthese (in this case 1) as you drag/copy your formula to the right, it becomes
    COLUMNS($A$1:B1) (which equals 2 columns) COLUMNS($A$1:C1) (or 3) and so on.
    Last edited by ChemistB; 05-31-2013 at 04:24 PM.
    ChemistB
    My 2?

    substitute commas with semi-colons if your region settings requires
    Don't forget to mark threads as "Solved" (Edit First post>Advanced>Change Prefix)
    If I helped, Don't forget to add to my reputation (click on the little star at bottom of this post)

    Forum Rules: How to use code tags, mark a thread solved, and keep yourself out of trouble

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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