+ Reply to Thread
Results 1 to 13 of 13

Separate numbers from group of numbers

  1. #1
    Forum Contributor
    Join Date
    08-18-2017
    Location
    London
    MS-Off Ver
    Excel 2016
    Posts
    308

    Separate numbers from group of numbers

    hi,
    does anyone know how to slip a group of numbers into digits from left to right... did some googling but can't find a simple solution? sheet below:
    Attached Files Attached Files

  2. #2
    Forum Expert rorya's Avatar
    Join Date
    08-13-2008
    Location
    East Sussex, UK
    MS-Off Ver
    365 Ent Monthly Channel / Insiders Beta
    Posts
    8,903

    Re: Separate numbers from group of numbers

    Assuming that it's a set number of digits, just use a series of MID formulas:
    =MID(A1,1,1)
    =MID(A1,2,1)
    =MID(A1,3,1)
    etc.
    Rory

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

    Re: Separate numbers from group of numbers

    Put this formula in J1:

    =MID($A1,COLUMNS($J:J),1)

    then copy across. You also need to set your Calculation Options (on the Formulas menu) to Automatic.

    Hope this helps.

    Pete

  4. #4
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 Version 2404 Win 11 Home 64 Bit
    Posts
    23,865

    Re: Separate numbers from group of numbers

    If all your entries are the same length, then you could use text to columns, fixed width. This can be found on the data tab on the ribbon.
    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

  5. #5
    Forum Contributor
    Join Date
    08-18-2017
    Location
    London
    MS-Off Ver
    Excel 2016
    Posts
    308

    Re: Separate numbers from group of numbers

    thx for all these solutions.... first one is the shortest so I will use that one.

    very good help all round.)

  6. #6
    Forum Contributor
    Join Date
    08-18-2017
    Location
    London
    MS-Off Ver
    Excel 2016
    Posts
    308

    Re: Separate numbers from group of numbers

    PS how do I star** you all?

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

    Re: Separate numbers from group of numbers

    I don't think you can do that in one operation - you have to click on each person's "star" in turn then fill in the dialogue box (if you want to leave a message) and click OK.

    Hope this helps.

    Pete

  8. #8
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 Version 2404 Win 11 Home 64 Bit
    Posts
    23,865

    Re: Separate numbers from group of numbers

    Click on Add Reputation

  9. #9
    Forum Expert avk's Avatar
    Join Date
    07-12-2007
    Location
    India
    MS-Off Ver
    Microsoft Office 2013
    Posts
    3,223

    Re: Separate numbers from group of numbers

    Without formula also you can do this.
    >Select the number cells, and click Data > Text to Columns.
    > In the step 1 of the Convert Text to Columns Wizard, check Fixed width
    > Click Next to go to step 2 of the Wizard, and click at the positions you want to create the break line
    > Click Next to go to step 3, and select a destination you want to output the split numbers.
    >Click Finish, and then the selected numbers are split into columns.


    atul


    If my answer (or that of other members) has helped you, please say "Thanks" by clicking the Add Reputation button at the foot of one of their posts.

    Also: if your problem is solved, please take the time to mark your thread as SOLVED by going to the top of your first post, selecting "Thread Tools" and then "Mark thread as solved".

  10. #10
    Forum Contributor
    Join Date
    08-18-2017
    Location
    London
    MS-Off Ver
    Excel 2016
    Posts
    308

    Re: Separate numbers from group of numbers

    Pete_UK,
    "Calculation Options (on the Formulas menu) to Automatic."

    I can't find this option? where is it?

    I mean its already set to Automatic, but I can use the slip digit?
    Attached Files Attached Files
    Last edited by QuantEdge; 08-29-2018 at 11:22 AM.

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

    Re: Separate numbers from group of numbers

    When I opened your first file it was set to Manual, but that might have been due to other (earlier) files that I had downloaded.

    In this second file you need to do this:

    =IF(MID(K1,1,1)="3",1,"")

    The second parameter of the MID function is the character number where you should start to take the middle-string, but K1 is only a single character. Also, the MID function returns a text value, so you need to put quotes around the 3 so that you are comparing like with like.

    Hope this helps.

    Pete

  12. #12
    Forum Contributor
    Join Date
    08-18-2017
    Location
    London
    MS-Off Ver
    Excel 2016
    Posts
    308

    Re: Separate numbers from group of numbers

    thx Pete, ... all sorted now*) hope to hear from you in the coming posts...

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

    Re: Separate numbers from group of numbers

    Glad to hear you got it working, and thanks for the rep earlier.

    EDIT: … and just now.

    Pete
    Last edited by Pete_UK; 08-29-2018 at 11:45 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. Highlight numbers in a column +/- 2.5 from a select group of numbers
    By AlgoTrader77 in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 05-22-2018, 02:30 AM
  2. [SOLVED] Separate total of negative numbers and positive numbers.
    By avidcat in forum Excel General
    Replies: 3
    Last Post: 04-06-2014, 07:26 PM
  3. [SOLVED] filter long numbers with only exact group of numbers
    By Zentiva in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 08-25-2013, 06:08 AM
  4. [SOLVED] 2 separate columns with numbers separated by commas and single numbers not, need sum
    By Slothbob in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 05-22-2013, 04:33 PM
  5. [SOLVED] Search Group of Numbers in Cel Rangel and Highligh matched numbers.
    By david gonzalez in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 02-24-2013, 01:07 AM
  6. Program to randomly selecting numbers from a group of numbers
    By flexalong in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 10-27-2008, 04:22 AM
  7. Replies: 1
    Last Post: 01-09-2006, 09:30 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