+ Reply to Thread
Results 1 to 11 of 11

How to sort data?

  1. #1
    Registered User
    Join Date
    09-12-2013
    Location
    vietnam
    MS-Off Ver
    2010
    Posts
    30

    How to sort data?

    Hello, everybody.
    I have a file data excel. Please view file attach. I want sort sample?
    Please, help me.
    Thank you very much.
    Capture.PNG
    sort2.xlsx

  2. #2
    Forum Guru
    Join Date
    03-02-2006
    Location
    Los Angeles, Ca
    MS-Off Ver
    WinXP/MSO2007;Win10/MSO2016
    Posts
    12,612

    Re: How to sort data?

    You can use a helper column, say B. Then put:
    Please Login or Register  to view this content.
    and copy down. Then sort columns A & B on B
    Hide column B
    Attached Files Attached Files
    Ben Van Johnson

  3. #3
    Registered User
    Join Date
    09-12-2013
    Location
    vietnam
    MS-Off Ver
    2010
    Posts
    30

    Re: How to sort data?

    Quote Originally Posted by protonLeah View Post
    You can use a helper column, say B. Then put:
    Please Login or Register  to view this content.
    and copy down. Then sort columns A & B on B
    Hide column B
    Thanks ProtonLeah,
    but a few cases it is not longer accurate.
    e.x. (Please, view file)
    special.xlsx
    Thank you very much!

  4. #4
    Forum Guru
    Join Date
    03-02-2006
    Location
    Los Angeles, Ca
    MS-Off Ver
    WinXP/MSO2007;Win10/MSO2016
    Posts
    12,612

    Re: How to sort data?

    O.k., try:
    Please Login or Register  to view this content.

  5. #5
    Forum Expert bebo021999's Avatar
    Join Date
    07-22-2011
    Location
    Vietnam
    MS-Off Ver
    Excel 2016
    Posts
    9,466

    Re: How to sort data?

    @minhphuong.humg
    Xin chào bạn.
    @protonLeah,
    Yours seems to treat 7.10 as 7.1, while OP request:
    7.1
    7.2
    ...
    7.9
    7.10
    ...

    I am trying to get my solution for this.
    Quang PT

  6. #6
    Registered User
    Join Date
    09-12-2013
    Location
    vietnam
    MS-Off Ver
    2010
    Posts
    30

    Re: How to sort data?

    Quote Originally Posted by protonLeah View Post
    O.k., try:
    Please Login or Register  to view this content.
    Thank ProtonLeah,
    Seem you don't test on my data.
    If you do, the error becomes more and more serious!
    (e.x: '7.10 ----> 71 (in fact 710).
    Please, help me.
    Thank you very much.

  7. #7
    Registered User
    Join Date
    09-12-2013
    Location
    vietnam
    MS-Off Ver
    2010
    Posts
    30

    Re: How to sort data?

    @bebo021999:
    Rất vui được làm quen với bạn. Tìm thấy bạn giữa biển người, ắt hẳn có duyên!

  8. #8
    Forum Expert bebo021999's Avatar
    Join Date
    07-22-2011
    Location
    Vietnam
    MS-Off Ver
    Excel 2016
    Posts
    9,466

    Re: How to sort data?

    Assuming your data from A1:A19
    In F1:
    Please Login or Register  to view this content.
    ...confirmed by pressing CTRL+SHIFT+ENTER to activate the array, not just ENTER. You will know the array is active when you see curly braces { } appear around your formula. If you do not CTRL+SHIFT+ENTER you will get an error or a clearly incorrect answer. Press F2 on that cell and try again.
    Drag down
    This function ROWS($1:1) to returns integer starting from 1. Error may occur from this if your actual data did not start from row 1. Try to adjust it to ROWS($1:1) in the first row formula.
    Attached Files Attached Files

  9. #9
    Registered User
    Join Date
    09-12-2013
    Location
    vietnam
    MS-Off Ver
    2010
    Posts
    30

    Re: How to sort data?

    Quote Originally Posted by bebo021999 View Post
    Assuming your data from A1:A19
    In F1:
    Please Login or Register  to view this content.
    ...confirmed by pressing CTRL+SHIFT+ENTER to activate the array, not just ENTER. You will know the array is active when you see curly braces { } appear around your formula. If you do not CTRL+SHIFT+ENTER you will get an error or a clearly incorrect answer. Press F2 on that cell and try again.
    Drag down
    This function ROWS($1:1) to returns integer starting from 1. Error may occur from this if your actual data did not start from row 1. Try to adjust it to ROWS($1:1) in the first row formula.
    Thank bebo021999,
    Can you test my "special" file?
    (file attach).
    special.xlsx
    Thank you.

  10. #10
    Forum Expert bebo021999's Avatar
    Join Date
    07-22-2011
    Location
    Vietnam
    MS-Off Ver
    Excel 2016
    Posts
    9,466

    Re: How to sort data?

    "Monster Special formula" for "special file"
    Attached Files Attached Files

  11. #11
    Registered User
    Join Date
    09-12-2013
    Location
    vietnam
    MS-Off Ver
    2010
    Posts
    30

    Re: How to sort data?

    Quote Originally Posted by bebo021999 View Post
    "Monster Special formula" for "special file"
    Thank bebo021999,
    When I applied to my data, I found it not true anymore. I want to sort out the integer part and the odd numbers. E.x:
    1
    2
    1.1
    1.2
    1.1.1
    1.1.2
    .....
    special-2.xlsx
    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)

Similar Threads

  1. [SOLVED] How to sort the data by item code first, then sort them by date?
    By Zecond in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 08-04-2013, 01:55 AM
  2. Replies: 4
    Last Post: 11-20-2012, 06:00 PM
  3. [SOLVED] Pls. reply Sort Data and copy to next coulmn when sort order chang
    By shital shah in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 08-19-2005, 10:05 AM
  4. Sort Data and copy to next coulmn when sort data changes
    By shital shah in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 08-18-2005, 10:05 AM
  5. Replies: 1
    Last Post: 03-17-2005, 08: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