+ Reply to Thread
Results 1 to 5 of 5

how to sort by number when cells have multiple entries

  1. #1
    Registered User
    Join Date
    11-17-2013
    Location
    Guyra , NSW
    MS-Off Ver
    Excel 2011
    Posts
    9

    how to sort by number when cells have multiple entries

    how to sort by number when a cells have multiple number entries, and include the referenced information in the other columns;

    eg
    1,
    1,1000,2000,

    6,1000,

    to become
    1,

    6

    1000

    1000

    2000
    Attached Files Attached Files
    Last edited by angelman; 06-25-2016 at 12:55 AM.

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

    Re: how to sort by number when cells have multiple entries

    Here is how I did it. I highlighted column A. On the data tab, I selected Text to columns. For the destination I set it to J1. I then deleted all columns to the right of column J. I then went to the Data tab again and selected sort. I highlighted the range A1:J last row. and sorted on column J smallest to largest. The result is attached.
    Attached Files Attached Files
    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
    11-17-2013
    Location
    Guyra , NSW
    MS-Off Ver
    Excel 2011
    Posts
    9

    Re: how to sort by number when cells have multiple entries

    thank you; thats a very good start. though not all numbers are included so ; row 3 is 1.1,1.19,6.29,8,10,20,40,72,73,95,125,146,148,248,250,333,440,444,465,522,523,555,600,625,650,768,786,800,802,880,1500,1550,1600,1865,3000,5000,10000,

    but i want these to be one a line with the corresponding info included with them.

    so
    1.1
    1.19
    6.29
    8
    10
    etc

  4. #4
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,933

    Re: how to sort by number when cells have multiple entries

    First and foremost, use cells to contain ONCE piece of info, dont put multiple bits of data into the same cell - and if you are dealing with text, keep it text, and if you are working with values/numbers, keep the cell as that. That way, you can do all sorts of analysis using built-in functions
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  5. #5
    Registered User
    Join Date
    11-17-2013
    Location
    Guyra , NSW
    MS-Off Ver
    Excel 2011
    Posts
    9

    Re: how to sort by number when cells have multiple entries

    ok. so now I am getting closer; thank you.

    I did first what alansidman said. I sorted on row j. then on row k, then row l. put then that of row k under row j and then row l under row j. then sort the 3 again of row j.

    But that makes another 16 rows to do.


    see attached.

    is there an easier way.
    Attached Files Attached Files

+ 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. [SOLVED] How do I sort and extract unique entries from multiple references
    By sherlock99 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 07-13-2014, 08:01 AM
  2. Replies: 4
    Last Post: 06-11-2014, 10:39 AM
  3. [SOLVED] Counting the number of entries in an array having cells with multiple values
    By RAHUL_MOHAN in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 09-10-2013, 07:20 AM
  4. Counting number of entries after sort
    By TheOx in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 09-14-2009, 12:16 PM
  5. ... how to sort entries in multiple comboboxes, filled by a variant...
    By lottesfog in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 04-07-2008, 01:31 AM
  6. how can I sort alphanumeric entries by number in excel
    By beasleyb in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 10-27-2005, 06:05 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