+ Reply to Thread
Results 1 to 9 of 9

Excel Function to return the day of the week for next birthday

  1. #1
    Forum Contributor
    Join Date
    02-20-2011
    Location
    Candada
    MS-Off Ver
    Microsoft Office 365
    Posts
    174

    Excel Function to return the day of the week for next birthday

    I am trying to come up with an Excel formula which will return the weekday, Monday, Tuesday, etc., for the next birthday based on the date of birth of a person. I have used TEXT function, but what I get in return is the weekday when the person was born. What I am really looking for is to obtain the next year weekdays. Please refer to the attachment for example. In advance thank you for your time and help.
    Attached Files Attached Files
    Last edited by Kimston; 12-15-2011 at 12:46 PM. Reason: Solved

  2. #2
    Forum Guru
    Join Date
    05-24-2011
    Location
    India
    MS-Off Ver
    365
    Posts
    2,243

    Re: Excel Function to return the day of the week for next birthday

    Try this,

    =TEXT(DATE(YEAR(1&C2)+1,MONTH(B2),E2),"dddd")

    Or,

    =TEXT(EDATE(E2&C2,12),"dddd")

    If you are on XL2003 or prior Analysis ToolPak AddIn needs to be activated to work EDATE
    Regards,
    Haseeb Avarakkan

    __________________________________
    "Feedback is the breakfast of champions"

  3. #3
    Forum Contributor
    Join Date
    02-20-2011
    Location
    Candada
    MS-Off Ver
    Microsoft Office 365
    Posts
    174

    Thumbs up Re: Excel Function to return the day of the week for next birthday

    Thank you very much for your quick response. This function worked perfectly how I needed it. However, does this mean that this function will work for any upcoming future birthday such in year 2012, 2013, etc? Again, thank you very much for your help and sharing your knowledge. Hope you can add me as your friend for future questions.

  4. #4
    Forum Guru
    Join Date
    05-24-2011
    Location
    India
    MS-Off Ver
    365
    Posts
    2,243

    Re: Excel Function to return the day of the week for next birthday

    Yes Will work for any upcoming future birthdays.

  5. #5
    Forum Contributor
    Join Date
    02-20-2011
    Location
    Candada
    MS-Off Ver
    Microsoft Office 365
    Posts
    174

    Re: Excel Function to return the day of the week for next birthday

    Excellent! Again, Thank you very much for your help and work.

  6. #6
    Forum Expert daddylonglegs's Avatar
    Join Date
    01-14-2006
    Location
    England
    MS-Off Ver
    Microsoft 365
    Posts
    14,695

    Re: Excel Function to return the day of the week for next birthday

    How do you want this to work for future birthdays? Haseeb's formula will always look to the next calendar year....so for your September DOB the suggested formula gives you the 2012 day....but as soon as we hit 1st Jan 2012 that formula will change to show you the September 2013 day.

    To always show the next Birthday (including today) you could use this formula

    =DATE(YEAR(B2)+DATEDIF(B2,TODAY()-1,"y")+1,MONTH(B2),DAY(B2))

    then you can format that to show day, month, weekday as required, see attached
    Attached Files Attached Files
    Audere est facere

  7. #7
    Forum Guru
    Join Date
    05-24-2011
    Location
    India
    MS-Off Ver
    365
    Posts
    2,243

    Re: Excel Function to return the day of the week for next birthday

    Yes DLL. you are right, has not been think about DOB month & day about >TODAY(). Thank you for your effort.

    kimston, I am sorry. my mistake. Mine wouldn't work for the future date as expected.

    See the B5 DOB in DLL's example. Mine will give you 2012 result not 2011. 12/25/2011 has not been come yet. Proceed with DLL's method.

  8. #8
    Forum Contributor
    Join Date
    02-20-2011
    Location
    Candada
    MS-Off Ver
    Microsoft Office 365
    Posts
    174

    Thumbs up Re: Excel Function to return the day of the week for next birthday

    Thank you, daddylonglegs for your helping me out with this problem. I tried your formula and in fact it gives me next birthday. I want to take the opportunity that I have read a lot of your post and they have helped me tremendous in the past. Thank again and hope you can add me as your friend because I have a more challenge project.

  9. #9
    Forum Contributor
    Join Date
    02-20-2011
    Location
    Candada
    MS-Off Ver
    Microsoft Office 365
    Posts
    174

    Re: Excel Function to return the day of the week for next birthday

    Haseeb,
    Don't be sorry. We are very thankful that there are people like you and daddylonglegs and many other to help us!

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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