+ Reply to Thread
Results 1 to 6 of 6

Sort column A depending on entries in another column

  1. #1
    Registered User
    Join Date
    10-07-2014
    Location
    Salvador da Bahia, Brazil
    MS-Off Ver
    2013
    Posts
    39

    Sort column A depending on entries in another column

    Hello guys.

    I want to sort column A by ascending dates prioritizing specific entries in column R. Whatever cell in column R that contains "O" must be at the top of the list sorted by ascending dates. In the other hand, whatever cell that contains "C" must be at the bottom of the same list also sorted by ascending dates. Good news is that I managed to do that with filters. Bad news is that whenever I want to perform this sorting, I have to manually go to Sort > Custom Sort > and add the two levels. It is kind of a hassle to do that everytime I need to sort data, and it happens frequently.

    In my research I found that I can possibly turn the entire worksheet into a table, but since I have a couple of macros and conditional formattings already set, I don't really want to take this risk.

    Maybe create a button and assign a macro to it would do the trick?

    I appreciate any help.

  2. #2
    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,926

    Re: Sort column A depending on entries in another column

    Are you saying that you want this table to sort automatically? If so, I dont see how it will do that without some VBA code
    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

  3. #3
    Registered User
    Join Date
    10-07-2014
    Location
    Salvador da Bahia, Brazil
    MS-Off Ver
    2013
    Posts
    39

    Re: Sort column A depending on entries in another column

    Hi FDibbins. Thanks for the reply.

    Not really. It doesn't need to be sorted as I insert data. I actually prefer to click somewhere to have it sorted. I just really want to avoid the hassle of creating sort criterias everytime I want to sort data.

  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,926

    Re: Sort column A depending on entries in another column

    Maybe Im missing something, but once you have set up a sort requirement, it stays that way each time you go to sort again - unless you change it?

    Can you upload a small (clean) sample workbook (not a pic) of what you are working with, and what your expected outcome would look like.

  5. #5
    Registered User
    Join Date
    10-07-2014
    Location
    Salvador da Bahia, Brazil
    MS-Off Ver
    2013
    Posts
    39

    Re: Sort column A depending on entries in another column

    Hi FDibbins. You are right. There's a way to easily sort data with a kind-of stored sort criterias. After reading your reply, I checked the sort button in the home/editing ribbon and there's a "Reapply" button (Ctrl+Alt+L) just there! Me dumb. Sorry!

    Screenshot 2015-06-25 19.57.08.png

  6. #6
    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,926

    Re: Sort column A depending on entries in another column

    Great, Im happy you got it resolved Thanks for the feedback

+ 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] Fill a column with a set string depending on number of entries in column.
    By skyping in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 08-29-2013, 08:12 AM
  2. [SOLVED] Inserting blank rows depending on column entries
    By bfb404 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 12-20-2012, 04:42 PM
  3. Replies: 4
    Last Post: 03-08-2012, 12:00 PM
  4. # age entries after sort of column
    By boomla in forum Excel General
    Replies: 3
    Last Post: 12-19-2011, 10:59 PM
  5. Sort array depending on 2nd column
    By pmguerra in forum Excel General
    Replies: 22
    Last Post: 04-15-2010, 06:10 AM

Tags for this Thread

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