+ Reply to Thread
Results 1 to 8 of 8

Sort the numbers in ascending order by lines

  1. #1
    Valued Forum Contributor marreco's Avatar
    Join Date
    07-02-2011
    Location
    Brazil
    MS-Off Ver
    Excel 2010
    Posts
    1,862

    Sort the numbers in ascending order by lines

    Hi
    I have a spreadsheet with 14 columns and 500 rows each
    I'm trying to organize the numbers in ascending order Sort command lines by Excel, but it only does one line at a time.
    Is there a code to sort all rows at once?

    See line painted yellow, was classified manually.
    Here is a part of the worksheet as an example of what I need
    Attached Files Attached Files
    Last edited by marreco; 03-15-2012 at 04:54 PM.

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

    Re: Sort the numbers in ascending order by lines

    Hi Marreco,

    couldn't you just record a macro while you do this once, and then put that macro within a loop to do it 500 times?

    Hope this helps.

    Pete

  3. #3
    Valued Forum Contributor marreco's Avatar
    Join Date
    07-02-2011
    Location
    Brazil
    MS-Off Ver
    Excel 2010
    Posts
    1,862

    Re: Sort the numbers in ascending order by lines

    hi, Master Peter.
    If you have an example, I am grateful!

  4. #4
    Valued Forum Contributor marreco's Avatar
    Join Date
    07-02-2011
    Location
    Brazil
    MS-Off Ver
    Excel 2010
    Posts
    1,862

    Re: Sort the numbers in ascending order by lines

    Any ideia?

    thank you

  5. #5
    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,943

    Re: Sort the numbers in ascending order by lines

    There is probably a more eligant way to do this (VBA), but the attached does what you want by creating another table and using a formula =small() to sort your numbers by row. If you dont need to keep the original values, you can value (/copy/paste values) answers from the formula, and then delete the original data
    Attached Files Attached Files
    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

  6. #6
    Valued Forum Contributor marreco's Avatar
    Join Date
    07-02-2011
    Location
    Brazil
    MS-Off Ver
    Excel 2010
    Posts
    1,862

    Re: Sort the numbers in ascending order by lines

    hi.
    I have a formula that does, I would like via VBA.

    Thanks for trying to help!

  7. #7
    Forum Expert Mordred's Avatar
    Join Date
    07-06-2010
    Location
    Winnipeg, Canada
    MS-Off Ver
    2007, 2010
    Posts
    2,787

    Re: Sort the numbers in ascending order by lines

    Try:
    Please Login or Register  to view this content.
    If you're happy with someone's help, click that little star at the bottom left of their post to give them Reps.

    ---Keep on Coding in the Free World---

  8. #8
    Valued Forum Contributor marreco's Avatar
    Join Date
    07-02-2011
    Location
    Brazil
    MS-Off Ver
    Excel 2010
    Posts
    1,862

    Re: Sort the numbers in ascending order by lines

    This answer was worthy of a master VBA.

    Thank you very much!

+ 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