+ Reply to Thread
Results 1 to 9 of 9

Need help sorting code

  1. #1
    Forum Contributor
    Join Date
    09-05-2012
    Location
    USA
    MS-Off Ver
    Excel 2010
    Posts
    209

    Need help sorting code

    So I've search sorting and saw many type of sorting and many solved.
    I don't know how to word it but here's a picture.
    This is a list of phones and it's specs.
    If I sort Column "C" for example, how can I make it stay within its Row?
    If i sort any column manually, the rest of the cell/box just stay the same.
    hope it make sense.
    phone.jpg

  2. #2
    Forum Guru :) Sixthsense :)'s Avatar
    Join Date
    01-01-2012
    Location
    India>Tamilnadu>Chennai
    MS-Off Ver
    2003 To 2010
    Posts
    12,770

    Re: Need help sorting code

    Just select the entire range and apply the sorting


    If your problem is solved, then please mark the thread as SOLVED>>Above your first post>>Thread Tools>>
    Mark your thread as Solved


    If the suggestion helps you, then Click *below to Add Reputation

  3. #3
    Forum Contributor
    Join Date
    09-05-2012
    Location
    USA
    MS-Off Ver
    Excel 2010
    Posts
    209

    Re: Need help sorting code

    Ha?
    example: If I click on MEMORY column, it would sort that column. Any cell left or right of it follows.

  4. #4
    Forum Guru :) Sixthsense :)'s Avatar
    Join Date
    01-01-2012
    Location
    India>Tamilnadu>Chennai
    MS-Off Ver
    2003 To 2010
    Posts
    12,770

    Re: Need help sorting code

    Selecting the data and sorting will applicable to selected data only

  5. #5
    Valued Forum Contributor
    Join Date
    12-25-2013
    Location
    Singapore
    MS-Off Ver
    Excel 2016
    Posts
    506

    Re: Need help sorting code

    Base on your attached image, you can try following step-by-step:
    1. Select cells A3:F17 (or till end of your data range)
    2. Goto [Data] menu, click [Sort] icon and you'll see the Sort dialog box popped-up
    3. Uncheck [My data has headers] if it's checked
    4. In the [Sort by] column, click on the drop down and select [Column C] (modified the order if necessary, else leave it as default for ascending order)
    5. Click OK



    _______________________________________________________________________________________________________________________________
    1. Click on the * Add Reputation if you think someone helped you
    2. Mark your thread as SOLVED when question is resolved

    Alvin

  6. #6
    Forum Contributor
    Join Date
    09-05-2012
    Location
    USA
    MS-Off Ver
    Excel 2010
    Posts
    209

    Re: Need help sorting code

    Thanks Alvin
    Thanks but no Thanks to 6sense
    I think I got it.
    Please Login or Register  to view this content.

  7. #7
    Valued Forum Contributor
    Join Date
    12-25-2013
    Location
    Singapore
    MS-Off Ver
    Excel 2016
    Posts
    506

    Re: Need help sorting code

    You're welcome, glad it helps



    _______________________________________________________________________________________________________________________________
    1. Click on the * Add Reputation if you think someone helped you
    2. Mark your thread as SOLVED when question is resolved

    Alvin

  8. #8
    Forum Contributor
    Join Date
    09-05-2012
    Location
    USA
    MS-Off Ver
    Excel 2010
    Posts
    209

    Re: Need help sorting code

    I actually just got done watching youtube.
    I was able to record macro and use it codes.
    Otherwise yours would of been helpful too.
    Still Kudos to you.

  9. #9
    Valued Forum Contributor
    Join Date
    12-25-2013
    Location
    Singapore
    MS-Off Ver
    Excel 2016
    Posts
    506

    Re: Need help sorting code

    Yea, that's one of the great source too.
    Thanks for the repu and don't forget to marked this thread as [SOLVED] using Thread Tools



    _______________________________________________________________________________________________________________________________
    1. Click on the * Add Reputation if you think someone helped you
    2. Mark your thread as SOLVED when question is resolved

    Alvin

+ 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. sorting in vba code
    By Solarissf in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 01-28-2010, 05:52 PM
  2. sorting in vba code
    By Solarissf in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 01-28-2010, 05:00 PM
  3. Help sorting out my code PLEASE
    By itsonlyme4 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 04-06-2006, 01:30 PM
  4. [SOLVED] Sorting code
    By MarkN in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 01-12-2006, 09:35 AM
  5. Sorting with code
    By JohnDK in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 11-03-2005, 05:09 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