+ Reply to Thread
Results 1 to 6 of 6

Display today's date until the end of the year then fix it as the last day of that year

  1. #1
    Registered User
    Join Date
    01-29-2014
    Location
    UK
    MS-Off Ver
    Excel 2010 starter
    Posts
    3

    Question Display today's date until the end of the year then fix it as the last day of that year

    Hi

    I need to display the current date in a cell until the end of the year then fix it as the last day of that year.

    this is the best i could come up with =IF(TODAY()>DATEVALUE("31/12/2014"),TODAY(),"31/12/2014")

    but it just displays the FALSE i.e. 31/12/2014, the date is used by another formula and calculates figures that are only related to that year hence the need for the date not to exceed the last day of the year.

    I hope someone can help i really am stumped!

    Thanks
    Darren.

  2. #2
    Registered User
    Join Date
    11-20-2013
    Location
    Las Vegas, NV
    MS-Off Ver
    Excel 2010
    Posts
    64

    Re: Display today's date until the end of the year then fix it as the last day of that yea

    How about:

    Please Login or Register  to view this content.
    Format the cell as a date:

    I can't test it because US date is DATE(2014,12,31).. but think that will work.

    If not:
    Please Login or Register  to view this content.
    Last edited by kspeese; 01-29-2014 at 08:29 PM.

  3. #3
    Forum Expert daddylonglegs's Avatar
    Join Date
    01-14-2006
    Location
    England
    MS-Off Ver
    2016
    Posts
    14,675

    Re: Display today's date until the end of the year then fix it as the last day of that yea

    You actually want to display the smallest value out of today and 31st Dec 2014 so that can be done with this formula

    =MIN(TODAY(),DATE(2014,12,31))

    format as date
    Audere est facere

  4. #4
    Registered User
    Join Date
    01-29-2014
    Location
    UK
    MS-Off Ver
    Excel 2010 starter
    Posts
    3

    Re: Display today's date until the end of the year then fix it as the last day of that yea

    #kspeese

    amazing! it worked after formatting the cell.
    could you please emplane how this works?
    Last edited by Darren H; 01-29-2014 at 08:34 PM.

  5. #5
    Registered User
    Join Date
    01-29-2014
    Location
    UK
    MS-Off Ver
    Excel 2010 starter
    Posts
    3

    Re: Display today's date until the end of the year then fix it as the last day of that yea

    thanks Kspeese i understand now it was actuality a simple syntax error i just needed to "<=" instead of ">".

  6. #6
    Registered User
    Join Date
    11-20-2013
    Location
    Las Vegas, NV
    MS-Off Ver
    Excel 2010
    Posts
    64

    Re: Display today's date until the end of the year then fix it as the last day of that yea

    Cool deal. Please mark the thread solved, using thread tools.

+ 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] Formula for today's date as year month day
    By Jahzeal in forum Office 365
    Replies: 3
    Last Post: 10-21-2013, 06:50 AM
  2. [SOLVED] Getting Today's Year to Update a Date in a Cell
    By karimel_romeo in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 10-07-2013, 03:33 PM
  3. Replies: 3
    Last Post: 09-04-2013, 10:49 AM
  4. [SOLVED] Excel 2007 : Convert Today's Date To The Previous Month & Year
    By The_Snook in forum Excel General
    Replies: 8
    Last Post: 04-26-2012, 06:37 AM
  5. Display today date as quorters of the year macro
    By hunsnowboarder in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 08-12-2008, 08:36 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