+ Reply to Thread
Results 1 to 4 of 4

Place individual digits from a number into seperate cells

  1. #1
    Registered User
    Join Date
    02-02-2024
    Location
    Sydney, Australia
    MS-Off Ver
    office 365
    Posts
    1

    Place individual digits from a number into seperate cells

    Hello All,

    I need to place each digit from a number into its own cell.

    For example the number 123 I need 1 to be in cell b1, 2 to be in c1, and 3 to be in cell d1. Each of the original numbers can be upto to 6 digits long and there are over 200,000 rows of data, so too many to do manually.

    I tried=LEFT(A1,LEN(A1)-1) etc, but that only seems to work with Text

    Any help would be greatly appreciated.

    Thank you,
    Attached Files Attached Files

  2. #2
    Forum Expert etaf's Avatar
    Join Date
    10-22-2004
    Location
    Wittering, West Sussex, UK
    MS-Off Ver
    365 (Mac OSX) (16.85 (24051214))
    Posts
    8,814

    Re: Place individual digits from a number into seperate cells

    your file shows a different result to
    For example the number 123 I need 1 to be in cell b1, 2 to be in c1, and 3 to be in cell d1.
    you can use
    =MID($A2,COLUMN()-(COLUMN($B2)- 1),1)
    which will turn each number into text
    If you want to retain the numbers then

    =IFERROR(MID($A2,COLUMN()-(COLUMN($B2)- 1),1)*1,"")

    BUT i dont know how to work out which is the longest number in the list and then base that on the columns to fill - so if you have a 10 number in the list
    and say a 1 in a cell to split - it will goto the 10th column and line up

    I suspect there maybe something in 365 that you could do - clever for this - and other members should answer

    BUT as i say the text in the question is different to the solution example shown on spreadsheet
    Attached Files Attached Files
    Wayne
    if my assistance has helped, and only if you wish to , there is an "* Add Reputation" on the left hand side - you can add to my reputation here

    If you have a solution to your thread - Please mark your thread solved do the following: >
    Select Thread Tools-> Mark thread as Solved. To undo, select Thread Tools-> Mark thread as Unsolved.

  3. #3
    Forum Guru HansDouwe's Avatar
    Join Date
    06-21-2022
    Location
    Nederland
    MS-Off Ver
    365 V2403 (Build 17330.20000)
    Posts
    6,465

    Re: Place individual digits from a number into seperate cells

    Please try in B2 and copy down:
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Attached Files Attached Files

  4. #4
    Forum Expert etaf's Avatar
    Join Date
    10-22-2004
    Location
    Wittering, West Sussex, UK
    MS-Off Ver
    365 (Mac OSX) (16.85 (24051214))
    Posts
    8,814

    Re: Place individual digits from a number into seperate cells

    as i mentioned , a member will be able to provide a solution , i was overthinking it as i was assuming various numbers of different length might be added to list and so if the number is for example added to the list 1234554321 - then you would want to change ALL the splits to start in the 10th columns away

    based on the last supplied formula
    maybe then
    =SORTBY(IFERROR(--MID(A2,SEQUENCE(,MAX(LEN($A$2:$A$100)),LEN(A2),-1),1),""),SEQUENCE(,MAX(LEN($A$2:$A$100))),-1)
    Last edited by etaf; 04-05-2024 at 06:03 AM.

+ 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. Replies: 3
    Last Post: 09-29-2014, 07:21 AM
  2. Splitting a number into individual digits
    By cdesantis01 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 04-23-2014, 08:50 AM
  3. Storing individual digits to Array Cells
    By cdesantis01 in forum Excel Programming / VBA / Macros
    Replies: 11
    Last Post: 04-13-2014, 09:23 PM
  4. A formula to seperate digits in a cell
    By tariqnaz2005 in forum Excel General
    Replies: 4
    Last Post: 10-27-2009, 02:04 AM
  5. Sum of individual digits (just for fun)
    By Hans Knudsen in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 07-10-2006, 03:29 AM
  6. Seperate cell string into individual cells
    By ERudy in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 05-12-2006, 02:50 AM
  7. Count individual digits
    By James in forum Excel General
    Replies: 11
    Last Post: 04-28-2005, 03:06 PM

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