+ Reply to Thread
Results 1 to 7 of 7

Formula to change a month to a specific date within that month

  1. #1
    Registered User
    Join Date
    08-16-2011
    Location
    Leeds
    MS-Off Ver
    Excel 2007
    Posts
    33

    Formula to change a month to a specific date within that month

    Hi,

    Just wondered is there a way of converting a date i.e. 01/03/2016 to a specific day in that month so 25/03/2016 and repeat this every year going forward. See attached file.

    Thanks

    S
    Attached Files Attached Files

  2. #2
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    43,893

    Re: Formula to change a month to a specific date within that month

    One way:

    =DATE(YEAR(D5),MONTH(D5),VLOOKUP(TEXT(D5,"MMMM"),$B$11:$C$14,2,FALSE))

    copied across.
    Attached Files Attached Files
    Glenn




    None of us get paid for helping you... we do this for fun. So DON'T FORGET to say "Thank You" to all who have freely given some of their time to help YOU.

    Temporary addition of accented to illustrate ongoing problem to the TT: L? fh?ile P?draig sona dhaoibh

  3. #3
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,604

    Re: Formula to change a month to a specific date within that month

    You can use this formula in D7:

    =DATE(YEAR(D5),MONTH(D5),VLOOKUP(TEXT(D5,"mmmm"),$B$11:$C$14,2,0))

    then copy across as required.

    Hope this helps.

    Pete

  4. #4
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    79,369

    Re: Formula to change a month to a specific date within that month

    In D11 copied across and down:

    =D$5+$C11-1
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  5. #5
    Forum Expert
    Join Date
    09-25-2015
    Location
    Milan Italy
    MS-Off Ver
    office 365
    Posts
    1,776

    Re: Formula to change a month to a specific date within that month

    D7=IFERROR(DATE(YEAR(D$5),MONTH(D$5),INDEX($C$11:$C$14,MATCH(MONTH(D$5),MONTH($B$11:$B$14&0),0))),"")

    Copy across

  6. #6
    Registered User
    Join Date
    08-16-2011
    Location
    Leeds
    MS-Off Ver
    Excel 2007
    Posts
    33

    Re: Formula to change a month to a specific date within that month

    Thanks all appreciate the replies

  7. #7
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,604

    Re: Formula to change a month to a specific date within that month

    If that takes care of your original question, please take a moment to select Thread Tools from the menu above and to the right of your first post in this thread, and mark the thread as SOLVED.

    You might also like to know that you can directly thank those who have helped you by clicking on the small "star" icon located in the lower left corner of a post that you have found to be helpful (not just in this thread - for any post that has helped you). This also adds to the reputation of the poster (the small green bars in the poster's profile).

    Pete

+ 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. Replies: 4
    Last Post: 10-10-2014, 01:28 AM
  2. Replies: 3
    Last Post: 07-16-2014, 02:53 PM
  3. [SOLVED] Change date in excel formulas from month to month automatically
    By ANDREAAS in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 12-02-2013, 09:34 AM
  4. Replies: 4
    Last Post: 09-09-2013, 05:06 AM
  5. Replies: 5
    Last Post: 10-04-2012, 07:06 AM
  6. [SOLVED] Excel 2007 : Counting date in specific month by month
    By adisakman in forum Excel General
    Replies: 8
    Last Post: 06-14-2012, 06:30 AM
  7. Formula to change work schedule from month to month
    By ibtrue in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 03-29-2010, 04:55 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