+ Reply to Thread
Results 1 to 4 of 4

Sorting Dates by Birthday occurance

  1. #1
    Forum Contributor
    Join Date
    05-10-2011
    Location
    Central Ohio
    MS-Off Ver
    Excel 2000, and 2010
    Posts
    654

    Sorting Dates by Birthday occurance

    Given a file of birthdays that produce a list of birthdays for the next 3 months, including the current month, I want to sort the results in order of sequential occurrence. i.e. If I have a list of 7 birthdays, 2 this month, 4 next month and 1 the following month, I would like to have them listed in chronological order for this year only. If I sort a list of dates say:

    8/10/2013
    8/31/2013
    9/14/2013
    9/20/2013
    10//27/2013

    The Sort will be - oldest to newest;

    31-Aug
    10-Aug
    27-Oct
    20-Sep
    14-Sep

    I am looking for;

    10-Aug
    31-Aug
    14-Sept
    20-Sept
    27-Oct

    The next birthday in the list is the 10th of Aug, followed by the 30st of Aug and so forth.

    I am not sure how to handle the date sort to achieve this result.

    Jim O
    Attached Files Attached Files
    Last edited by JO505; 08-16-2013 at 03:17 PM.

  2. #2
    Registered User
    Join Date
    08-15-2013
    Location
    San Francisco, CA
    MS-Off Ver
    Excel 2013
    Posts
    16

    Re: Sorting Dates by Birthday occurance

    Hey Jim, I think there are a few solutions to this but here is one. I Inserted a new column after column E and called it "Derived Birthday".

    In the new column in cell F2, try entering the following formula

    =DATE(2013,MONTH(E2),DAY(E2))

    and drag down.

    This formula basically sets everyone's birthdate to the same year (2013) so that you can do the sort you want to. One thing to note--this approach doesn't work if someone has a birthday on February 29 in a leapyear.
    Last edited by cpwalker; 08-16-2013 at 01:33 PM. Reason: clarifying caveat about leapyear
    Have a great day!

  3. #3
    Forum Expert daffodil11's Avatar
    Join Date
    07-11-2013
    Location
    Phoenixville, PA
    MS-Off Ver
    MS Office 2016
    Posts
    4,465

    Re: Sorting Dates by Birthday occurance

    I found another of many possible solutions:
    • I used your formula in H to designated qualified birthdays
    • used I to rank them with unique values using rank(ref,range)+countif(range,ref)-1
    • and J counts backwards from the highest rank to automatically Index and Match

    Attachment 258460

  4. #4
    Forum Contributor
    Join Date
    05-10-2011
    Location
    Central Ohio
    MS-Off Ver
    Excel 2000, and 2010
    Posts
    654

    Re: Sorting Dates by Birthday occurance

    cpwalker,

    Very nice! I could not think of how to separate days and months in the sort. It never dawned on me to make them all the same year, I suppose making them the same month would do as well. So far no one was born on Feb 29th so we will cross that bridge when we come to it.

    dffodil11,

    Thanks for your response also. The sort I get from your formula does not quite sort to what I am looking for. It will sort month part fine but the day is not included in the final rank.

    The sort becomes;

    14-Sep
    20-Sep
    27-Oct
    10-Aug
    31-Aug

    was looking for;

    10-Aug
    31-Aug
    14-Sep
    20-Sep
    27-Oct

    Thanks again to both for your input.

    Jim O

+ 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. Birthday dates
    By wilkas in forum Excel General
    Replies: 12
    Last Post: 07-12-2011, 06:15 AM
  2. Sorting column by birthday wise
    By wasim.qureshi in forum Excel General
    Replies: 3
    Last Post: 10-15-2009, 06:38 AM
  3. Find Birthday of persons which falls between the given two dates
    By acsishere in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 10-31-2008, 09:55 AM
  4. [SOLVED] Sorting by Birthday Anniversary
    By R.S.Lynn in forum Excel General
    Replies: 2
    Last Post: 10-05-2005, 09:05 PM
  5. [SOLVED] Sorting by Birthday
    By Dennis Hughes in forum Excel General
    Replies: 3
    Last Post: 01-15-2005, 11:06 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