+ Reply to Thread
Results 1 to 8 of 8

Formula to change dates

Hybrid View

  1. #1
    Valued Forum Contributor
    Join Date
    01-18-2007
    Location
    Georgia
    MS-Off Ver
    2010
    Posts
    4,434

    Formula to change dates

    Hello:

    Please refer to attached file.

    I have A1 = 2015
    I have dates in column N and O for 2015.

    I need a formula so that if i change A1 = 2016 then those dates will change the year part to 2016

    Let me know if you have any questions.
    Thanks.
    Attached Files Attached Files

  2. #2
    Forum Guru AlKey's Avatar
    Join Date
    07-20-2009
    Location
    Lakeland, FL USA
    MS-Off Ver
    Microsoft Office 2010/ Office 365
    Posts
    8,903

    Re: Formula to change dates

    Enter formula in A2 and copy down

    =DATE(A$1,MONTH(N1),DAY(N1))
    If you like my answer please click on * Add Reputation
    Don't forget to mark threads as "Solved" if your problem has been resolved

    "Nothing is so firmly believed as what we least know."
    --Michel de Montaigne

  3. #3
    Forum Expert bebo021999's Avatar
    Join Date
    07-22-2011
    Location
    Vietnam
    MS-Off Ver
    Excel 2016
    Posts
    9,641

    Re: Formula to change dates

    Try in N1:
    =DATE($A$1,1,1)
    O1:
    =IF(DAY(N1)=16,EOMONTH(N1,0),N1+14)
    Drag both down.
    Quang PT

  4. #4
    Valued Forum Contributor
    Join Date
    01-18-2007
    Location
    Georgia
    MS-Off Ver
    2010
    Posts
    4,434

    Re: Formula to change dates

    Hi Allkey:

    I got your solution working.
    Thanks a lot..................
    Riz

  5. #5
    Valued Forum Contributor
    Join Date
    01-18-2007
    Location
    Georgia
    MS-Off Ver
    2010
    Posts
    4,434

    Re: Formula to change dates

    Hi Allkey:

    I think there is some misunderstanding.
    I will have year in Cell A1.
    Now need a
    Formula in cell N1 which will give N1 as first day of 1st month of year in cell A1.
    Formula in cell O1 which will give O1 as 15th day of 1st month of year in cell A1.
    Formula in cell N2 which will give N2 as 16th day of 1st month of year in cell A1.
    Formula in cell O2 which will give O1 as last day of 1st month of year in cell A1.

    Formula in cell N3 which will give N3 as first day of 2nd month of year in cell A1.
    Formula in cell O3 which will give O3 as 15th day of 2nd month of year in cell A1.
    Formula in cell N4 which will give N4 as 16th day of 2nd month of year in cell A1.
    Formula in cell O4 which will give O4 as last day of 2nd month of year in cell A1.

    and so on.

    Please let me know if you have any questions.
    Thanks.

    Riz

  6. #6
    Forum Guru Jonmo1's Avatar
    Join Date
    03-08-2013
    Location
    Bryan, TX
    MS-Off Ver
    Excel 2010
    Posts
    9,763

    Re: Formula to change dates

    Try

    N1: =DATE($A$1,1,1)
    N2: =DATE($A$1,1,16)
    N3: =EDATE(N1,1) <- Fill down to N24

    O1: =N2-1 <- Fill down to O23
    O24: =DATE(A1,12,31)

  7. #7
    Forum Expert bebo021999's Avatar
    Join Date
    07-22-2011
    Location
    Vietnam
    MS-Off Ver
    Excel 2016
    Posts
    9,641

    Re: Formula to change dates

    @rizmomin,
    Formula in #3 and #6 paste new list onto itself.
    Formula in #2 paste new list into other area
    It is up to you.

  8. #8
    Valued Forum Contributor
    Join Date
    01-18-2007
    Location
    Georgia
    MS-Off Ver
    2010
    Posts
    4,434

    Re: Formula to change dates

    Hi Guys:

    Thanks a lot to all excel expert and seems like all of the above formulas will work for me.
    Riz

+ 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] change formula to extract data from between two dates
    By nigelog in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 09-28-2015, 10:42 AM
  2. Formula that updates spreadsheet when I change the dates
    By chris004 in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 06-23-2015, 09:38 AM
  3. [SOLVED] Need to change formula to look at 2 dates instead of 1
    By john dalton in forum Excel Formulas & Functions
    Replies: 12
    Last Post: 10-16-2013, 01:57 PM
  4. Need formula to change dates based on given year
    By kesmith2 in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 07-27-2013, 06:46 AM
  5. [SOLVED] Choose a Months, and Cells change to those dates Formula
    By ashhm in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 08-21-2012, 07:21 PM
  6. Replies: 3
    Last Post: 07-15-2010, 09:02 AM
  7. formula for referencing dates that change
    By Staberinde in forum Excel General
    Replies: 9
    Last Post: 03-02-2010, 05:30 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