+ Reply to Thread
Results 1 to 4 of 4

Macro for sorting rows based on dates in column G

  1. #1
    Registered User
    Join Date
    05-25-2014
    Posts
    2

    Macro for sorting rows based on dates in column G

    Hi everyone. I have a spreadsheet for ppl who attend a rehabilitation day program. The columns are A to M and the rows are from 7 to 32. I need the rows to re-sort themselves based on the dates in column G. Not sure if this matters but the dates in column G are a result of a calculation based on initial completion date (column e) and sick days in column F. It would be awesome if the rows resorted simply whenever data is entered anywhere but even if they re-sorted on opening the file would be brilliant. Thanks everyone. Appreciate your time.

    Glenn

  2. #2
    Valued Forum Contributor
    Join Date
    09-21-2011
    Location
    Birmingham UK
    MS-Off Ver
    Excel 2003/7/10
    Posts
    2,188

    Re: Macro for sorting rows based on dates in column G

    record yourself doing it, then use that. Sort by column G
    Hope this helps

    Sometimes its best to start at the beginning and learn VBA & Excel.

    Please dont ask me to do your work for you, I learnt from Reading books, Recording, F1 and Google and like having all of this knowledge in my head for the next time i wish to do it, or wish to tweak it.
    Available for remote consultancy work PM me

  3. #3
    Forum Expert
    Join Date
    06-12-2012
    Location
    Ridgefield Park, New Jersey
    MS-Off Ver
    Excel 2003,2007,2010
    Posts
    10,241

    Re: Macro for sorting rows based on dates in column G

    Can you attach a file with some dummy data and your sheet layout? Click Go Advanced button, scroll down to the Manage Attachments button, browse to the required file, and then push the Upload button.

  4. #4
    Registered User
    Join Date
    05-25-2014
    Posts
    2

    Re: Macro for sorting rows based on dates in column G

    Thanks very much John. This is the file that i'm working with. Cheers, Glenn
    Attached Files Attached Files
    Last edited by Scotcel; 09-04-2014 at 03:56 AM.

+ 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 all data based on data in single column (DATES)
    By subbby in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 10-16-2013, 08:19 AM
  2. [SOLVED] Sorting rows of data based off a single column for a variable number of entries.
    By soxcrates in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 08-28-2012, 12:31 PM
  3. VBA/Macro to delete rows based on comparing two dates?
    By tltlk678 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 02-26-2012, 02:25 AM
  4. Sorting Rows Based on a Column Data
    By amtrane in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 11-21-2007, 05:47 PM
  5. [SOLVED] Sorting dates:How do I sort a column filled with dates by Month, Day, then Year?
    By Heather in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 06-22-2005, 10:05 PM

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