+ 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
    31

    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... based in Ireland... but I could be anywhere in the world
    MS-Off Ver
    Office 365 for PC.
    Posts
    34,981

    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



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

    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
    Ipswich, England
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel (Windows 11 64-bit)
    Posts
    62,194

    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" to anyone who has offered you help in your thread. You can reward them by clicking on * Add Reputation below theur user name on the left, if you wish.


    Forum Rules (updated September 2018): please read them here.
    How to use the Power Query code you've been given: help here. More about the Power suite here.

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

    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
    31

    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
    22,784

    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