+ Reply to Thread
Results 1 to 16 of 16

Keep month and date - change year

  1. #1
    Registered User
    Join Date
    11-17-2015
    Location
    Vishakhapatnam, India
    MS-Off Ver
    2007
    Posts
    19

    Keep month and date - change year

    In Cell A1 these are date of join 25-Aug-15
    26-Aug-15
    01-Sep-12
    16-Sep-12
    11-Oct-12
    16-Oct-13
    18-Oct-15
    22-Oct-11
    29-Oct-11
    29-Oct-11
    01-Dec-13
    03-Dec-11
    10-Dec-13
    I used this formula DATE(YEAR(TODAY()),MONTH(a1),DAY(a1)) Its work but not 100 % when I put this formula its give for all 2015. Dec should be 2014 because we are still in Nov month. Can some one help me for this formula please

  2. #2
    Registered User
    Join Date
    11-17-2015
    Location
    Vishakhapatnam, India
    MS-Off Ver
    2007
    Posts
    19

    Re: Keep month and date but change year to current year and reoccur when new year rolls ov

    The above formula worked perfectly but I failed to realize that newly added dates with the current year need to generate the due date for the following year. For example if the date is September 4, 2013 the due date needs to generate as September 4, 2014. Is there a way to alter the previous formula to get this result as well?

  3. #3
    Forum Guru samba_ravi's Avatar
    Join Date
    07-26-2011
    Location
    Hyderabad, India
    MS-Off Ver
    Excel 2021
    Posts
    8,914

    Re: Keep month and date but change year to current year and reoccur when new year rolls ov

    pls attach a sample file with desired result
    Samba

    Say thanks to those who have helped you by clicking Add Reputation star.

  4. #4
    Registered User
    Join Date
    11-17-2015
    Location
    Vishakhapatnam, India
    MS-Off Ver
    2007
    Posts
    19

    Re: Keep month and date but change year to current year and reoccur when new year rolls ov

    I cannot see your attachment can you please send to my mail id [email protected] please

  5. #5
    Forum Guru samba_ravi's Avatar
    Join Date
    07-26-2011
    Location
    Hyderabad, India
    MS-Off Ver
    Excel 2021
    Posts
    8,914

    Re: Keep month and date but change year to current year and reoccur when new year rolls ov

    I am asking you to attach a sample file with desired result

  6. #6
    Registered User
    Join Date
    11-17-2015
    Location
    Vishakhapatnam, India
    MS-Off Ver
    2007
    Posts
    19

    Re: Keep month and date but change year to current year and reoccur when new year rolls ov

    Hi I do not that, I cannot attached excel sheet for your reference please see below
    A1) 18-Aug-12 18-Aug-15 DATE(YEAR(TODAY()),MONTH(A1),DAY(A1))
    B1) 22-Aug-15 22-Aug-15 DATE(YEAR(TODAY()),MONTH(b1),DAY(b1))
    C1) 23-Aug-15 23-Aug-15 DATE(YEAR(TODAY()),MONTH(c1),DAY(c1))
    D1) 29-Oct-11 29-Oct-15 DATE(YEAR(TODAY()),MONTH(D1),DAY(D1))
    E1) 01-Dec-13 01-Dec-15 01-Dec-14 DATE(YEAR(TODAY()),MONTH(E1),DAY(E1))-365
    F1) 03-Dec-11 03-Dec-15 03-Dec-14 DATE(YEAR(TODAY()),MONTH(F1),DAY(F1))-365

  7. #7
    Forum Guru samba_ravi's Avatar
    Join Date
    07-26-2011
    Location
    Hyderabad, India
    MS-Off Ver
    Excel 2021
    Posts
    8,914

    Re: Keep month and date but change year to current year and reoccur when new year rolls ov

    =DATE(YEAR(TODAY())-(TODAY()<DATE(YEAR(TODAY()),MONTH(A1),DAY(A1))),MONTH(A1),DAY(A1))
    Please Login or Register  to view this content.
    Try this

  8. #8
    Registered User
    Join Date
    11-17-2015
    Location
    Vishakhapatnam, India
    MS-Off Ver
    2007
    Posts
    19

    Re: Keep month and date but change year to current year and reoccur when new year rolls ov

    Thank you so much for your help !!!

  9. #9
    Registered User
    Join Date
    11-17-2015
    Location
    Vishakhapatnam, India
    MS-Off Ver
    2007
    Posts
    19

    Re: Keep month and date but change year to current year and reoccur when new year rolls ov

    Good morning Siva; I have one more problem with excel formula. In my company have two nationality’s employees One is “TCN” second is “ EXPERT” – In condition if TCN has vacation for 23 week means 161 days and Expert has vacation for 14 weeks means 98 days
    Base on employee start date how to generate next vacation date, formula that need to choose among them (TCN or EXPERT days (161 or 98)
    Example:
    EXPERT: DOJ is 13-OCT-15 + 98 Days for his vacation will be on 19-JAN-16
    13-Oct-15 19-Jan-16

    TCN: DOJ is 01-JAN-15 + 161 Days for his vacation will be on 11-JUN-15
    01-Jan-15 11-Jun-15

    Would you please help me for conditional formula please !!!

  10. #10
    Registered User
    Join Date
    11-17-2015
    Location
    Vishakhapatnam, India
    MS-Off Ver
    2007
    Posts
    19

    Re: Keep month and date but change year to current year and reoccur when new year rolls ov

    TMP Employees Master File.xlsx

    Please see attach in "VC matrix" tab I am using like divided two sections one TCN and one Exipet. Actually I wan to make only one section please help me for formula

  11. #11
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 Version 2405 Win 11 Home 64 Bit
    Posts
    23,893

    Re: Keep month and date - change year

    @lokeshrao
    Unfortunately your post does not comply with Rule 2 of our Forum RULES. Do not post a question in the thread of another member -- start your own thread.

    If you feel an existing thread is particularly relevant to your need, provide a link to the other thread in your new thread.

    Old threads are often only monitored by the original participants. New threads not only open you up to all possible participants again, they typically get faster response, too.

    I have moved your thread and all the replies to a new thread. Please read the rules and abide by them in the future.
    Alan עַם יִשְׂרָאֵל חַי


    Change an Ugly Report with Power Query
    Database Normalization
    Complete Guide to Power Query
    Man's Mind Stretched to New Dimensions Never Returns to Its Original Form

  12. #12
    Registered User
    Join Date
    11-17-2015
    Location
    Vishakhapatnam, India
    MS-Off Ver
    2007
    Posts
    19

    How to generate vacation dates for TCN and Expert

    Good morning; I have problem with excel formula. My company have two nationality’s employees One is “TCN” second is “ EXPERT” – In condition if TCN has vacation for 23 week means 161 days and Expert has vacation for 14 weeks means 98 days
    Base on employee start date, how to generate next vacation date, formula that need to choose among them (TCN or EXPERT days (161 or 98)
    Example:
    EXPERT: DOJ is 13-OCT-15 + 98 Days for his vacation will be on 19-JAN-16
    13-Oct-15 19-Jan-16

    TCN: DOJ is 01-JAN-15 + 161 Days for his vacation will be on 11-JUN-15
    01-Jan-15 11-Jun-15
    Please see attach in "VC matrix" tab I am using like divided two sections one TCN and one Expect. Actually I want to make only one section please help me for formula
    Attached Files Attached Files

  13. #13
    Registered User
    Join Date
    11-17-2015
    Location
    Vishakhapatnam, India
    MS-Off Ver
    2007
    Posts
    19

    Re: Keep month and date - change year

    Can you please help me for above formula

  14. #14
    Forum Guru samba_ravi's Avatar
    Join Date
    07-26-2011
    Location
    Hyderabad, India
    MS-Off Ver
    Excel 2021
    Posts
    8,914

    Re: Keep month and date - change year

    Try=H3+IF(E3="Expat",98,IF(E3="TCN",161,0)) in I3

  15. #15
    Registered User
    Join Date
    11-17-2015
    Location
    Vishakhapatnam, India
    MS-Off Ver
    2007
    Posts
    19

    How to generate vacation dates for TCN and Expert

    I have problem with excel formula. My company have two nationality’s employees One is “TCN” second is “ EXPERT” – In condition if TCN has vacation for 23 week means 161 days and Expert has vacation for 14 weeks means 98 days
    Base on employee start date, how to generate next vacation date, formula that need to choose among them (TCN or EXPERT days (161 or 98)
    Example:
    EXPERT: DOJ is 13-OCT-15 + 98 Days for his vacation will be on 19-JAN-16
    13-Oct-15 19-Jan-16

    TCN: DOJ is 01-JAN-15 + 161 Days for his vacation will be on 11-JUN-15
    01-Jan-15 11-Jun-15
    Please see attach in "VC matrix" tab I am using like divided two sections one TCN and one Expect. Actually I want to make only one section please help me for formula
    Lokesh - Sample.xlsx

  16. #16
    Registered User
    Join Date
    11-17-2015
    Location
    Vishakhapatnam, India
    MS-Off Ver
    2007
    Posts
    19

    Re: Keep month and date - change year

    Thank you so much sir. Let me try this

+ 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. [SOLVED] Year to date figure to change every month end
    By floxxie in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 09-09-2015, 09:12 AM
  2. How can i show date in this form (month,last date of that month, Year)?
    By vjharry in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 10-24-2014, 04:39 AM
  3. Need to convert Month/Date/Year to Year/Month/Date so excel will recognize
    By juliettelam in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 07-25-2014, 04:17 PM
  4. Change year but keep the month the same based on current year
    By Jamon Fries in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 03-11-2014, 05:29 PM
  5. Change date to end of month if unless 5th April year end
    By aaaaaaiden in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 02-14-2014, 07:28 PM
  6. Replies: 3
    Last Post: 09-04-2013, 10:49 AM
  7. Change Date to display Month/Year
    By pdxguy_2188 in forum Excel General
    Replies: 1
    Last Post: 07-06-2011, 01:41 PM

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