+ Reply to Thread
Results 1 to 3 of 3

How to Sort Columns by Clicking on Column Header

  1. #1
    Registered User
    Join Date
    02-28-2014
    Location
    Virginia, USA
    MS-Off Ver
    Excel 2010
    Posts
    4

    Question How to Sort Columns by Clicking on Column Header

    Hello All,

    I am working on an excel spreadsheet for my office and am trying to figure out how to add a sorting function.
    Essentially, I will have several columns titled "Country" "Region" "Name of Director" "Donor" etc. To facilitate navigating the spreadsheet, I want to add some sort of button to each Column Header that, when you click it, it automatically sorts the data based on "region" or "director" etc.

    ...Pretty much exactly the way that itunes columns work: you click "Song" and it organizes the spreadsheet alphabetically by song. Same thing for album and genre. Mine will be very similar because all the sorting can be done alphabetically. I just want to be able to click on the column head rather than having to go to the "A-Z autofilter" button each time.

    Any help would be greatly appreciated!

    Thanks so much,

    HW

  2. #2
    Valued Forum Contributor
    Join Date
    03-22-2013
    Location
    Australia,NSW, Wirrimbi
    MS-Off Ver
    Excel 2013
    Posts
    1,057

    Re: How to Sort Columns by Clicking on Column Header

    Hi..

    Heres one way..

    Basically.. just double click in the column header cell to sort..

    Adjust ranges to suit.. see attachment for example..
    Please Login or Register  to view this content.
    Attached Files Attached Files

  3. #3
    Forum Guru Andy Pope's Avatar
    Join Date
    05-10-2004
    Location
    Essex, UK
    MS-Off Ver
    O365
    Posts
    20,436

    Re: How to Sort Columns by Clicking on Column Header

    This will capture selection of column C

    Please Login or Register  to view this content.
    Why not use a table? That has sorting and filtering built in.
    Cheers
    Andy
    www.andypope.info

+ 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. How to Sort Columns by Clicking on Column Header
    By hwhip in forum Excel General
    Replies: 4
    Last Post: 03-05-2014, 01:02 PM
  2. [SOLVED] Sort multiple columns based on column header
    By Langer101 in forum Excel Programming / VBA / Macros
    Replies: 39
    Last Post: 01-09-2013, 09:55 AM
  3. Code to Sort Data by Clicking on Header Row Cells
    By Coop913 in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 10-07-2009, 01:24 PM
  4. Replies: 3
    Last Post: 05-17-2009, 04:31 AM
  5. Sort by Clicking on column headers
    By ExcelUserBob in forum Excel General
    Replies: 3
    Last Post: 12-17-2007, 11:09 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