+ Reply to Thread
Results 1 to 3 of 3

Altering a DATE in a cell

  1. #1
    Forum Contributor
    Join Date
    08-23-2013
    Location
    Alberta, Canada
    MS-Off Ver
    Excel 365
    Posts
    166

    Altering a DATE in a cell

    I have a cell that is automatically updated to the first of every month, so
    Please Login or Register  to view this content.
    .
    In another cell, I want a formula to take the year of this date and put it at December 1, 20**.
    So this year =DATE(2015,12,1)
    and then next year, when my first date cell goes to =DATE(2016,1,1) I want this other cell to automatically go to =DATE(2016,12,1).

    In essence I need a formula to extract the last month of the year from the original date cell.

    I hope this makes sense...

  2. #2
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,578

    Re: Altering a DATE in a cell

    If the first formula is in A1

    =DATE(YEAR(A1), 12, 1)
    Is that what you are looking for?
    ChemistB
    My 2?

    substitute commas with semi-colons if your region settings requires
    Don't forget to mark threads as "Solved" (Edit First post>Advanced>Change Prefix)
    If I helped, Don't forget to add to my reputation (click on the little star at bottom of this post)

    Forum Rules: How to use code tags, mark a thread solved, and keep yourself out of trouble

  3. #3
    Forum Contributor
    Join Date
    08-23-2013
    Location
    Alberta, Canada
    MS-Off Ver
    Excel 365
    Posts
    166

    Re: Altering a DATE in a cell

    Thanks Chem.

+ 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. altering web query date by one hour
    By chilli76 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 08-18-2015, 04:49 AM
  2. [SOLVED] Altering Code to Change Date Value on Row Updated (Want to Set a Specific Range)
    By nKife in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 05-19-2015, 05:11 PM
  3. [SOLVED] Excel Sheet Altering Date Format from UserForm
    By inq80 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 03-15-2015, 03:50 PM
  4. [SOLVED] Altering the existing macro to get date as numerical va;ue
    By ajang in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 05-30-2013, 08:27 PM
  5. altering cell references within a formula
    By jasonineverett in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 12-27-2012, 09:23 PM
  6. Altering cell content
    By Faith79 in forum Excel General
    Replies: 1
    Last Post: 11-20-2008, 12:51 PM
  7. [SOLVED] Excel Addin altering date format on text file import
    By RJ Lohan in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 03-03-2005, 12:06 AM

Tags for this Thread

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