+ Reply to Thread
Results 1 to 6 of 6

How to hide date 01/10/1900 for calculating dates

  1. #1
    Forum Contributor
    Join Date
    12-16-2015
    Location
    Southern Cali
    MS-Off Ver
    2013
    Posts
    104

    How to hide date 01/10/1900 for calculating dates

    Hello,

    I have the following:

    Start Date: D15 (Formatted as date)
    Due Date: E15 (Formatted as date) with following formula: =(DATE(YEAR(D15),MONTH(D15),DAY(D15)+10))
    As you can see it adds 10 days to the due date.

    This works great if there is a date in D15, however if there is no date I get the 1/10/1900. How do I hide this? I have tried custom formatting dd/mm/yyyy;; which didn't work.

    I was thinking of doing an if statement, but I am sure I am doing it wrong since I am getting an error in the cell.

    Ideally I would like for it to be blank until there is a date entered in D15.

    Also, I have no issue with changing the formula, this is how I have done it in the past, but if there is an easier way in order to hide the 1/10/1900 date, I am all for it!

    Thanks
    Last edited by rhett7660; 09-01-2017 at 10:11 AM. Reason: Solved

  2. #2
    Forum Expert Sam Capricci's Avatar
    Join Date
    06-14-2012
    Location
    Palm Harbor, Florida
    MS-Off Ver
    16.84 for Mac MS 365
    Posts
    8,496

    Re: How to hide date 01/10/1900 for calculating dates

    maybe add an IF statement to it, something like ... =IF(D15="","",(DATE(YEAR(D15),MONTH(D15),DAY(D15)+10)))
    (untested)
    Make contributors happy, click on the "* Add Reputation" as a way to say thank you.
    Sam Capricci

  3. #3
    Forum Contributor
    Join Date
    12-16-2013
    Location
    Canada
    MS-Off Ver
    Excel 2010
    Posts
    109

    Re: How to hide date 01/10/1900 for calculating dates

    =IF(D15="", "",D15+10)

    it will add days without all of the formattings.

    http://www.easyexcelanswers.com

  4. #4
    Forum Contributor
    Join Date
    12-16-2015
    Location
    Southern Cali
    MS-Off Ver
    2013
    Posts
    104

    Re: How to hide date 01/10/1900 for calculating dates

    Quote Originally Posted by Sambo kid View Post
    maybe add an IF statement to it, something like ... =IF(D15="","",(DATE(YEAR(D15),MONTH(D15),DAY(D15)+10)))
    (untested)
    Holy smokes, I was doing it wrong. Thank you very much this worked liked a charm!

  5. #5
    Forum Expert Sam Capricci's Avatar
    Join Date
    06-14-2012
    Location
    Palm Harbor, Florida
    MS-Off Ver
    16.84 for Mac MS 365
    Posts
    8,496

    Re: How to hide date 01/10/1900 for calculating dates

    glad it worked for you AND thanks for the rep!

  6. #6
    Forum Contributor
    Join Date
    12-16-2015
    Location
    Southern Cali
    MS-Off Ver
    2013
    Posts
    104

    Re: How to hide date 01/10/1900 for calculating dates

    Quote Originally Posted by easyexcelanswers View Post
    =IF(D15="", "",D15+10)

    it will add days without all of the formattings.
    Thank you, I had a feeling there was another way of doing this and thank you very much!!!!!

+ 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. Calculating dates that are before the year 1900
    By Patcheen in forum Excel General
    Replies: 4
    Last Post: 06-28-2015, 12:25 AM
  2. date pasted as 1/2/1900 in excel instead of 1/1/1900
    By ekkslatha in forum Excel General
    Replies: 4
    Last Post: 10-25-2014, 08:34 PM
  3. Macro for changing the date from 02-Jan-1900 to 01-Jan-1900
    By Lavanya Anandan in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 07-22-2013, 07:08 AM
  4. Replies: 0
    Last Post: 05-18-2013, 03:29 AM
  5. [SOLVED] 1900 year date when filter column of dates
    By rz6657 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 04-03-2013, 12:18 PM
  6. Calculating dates prior to Jan 1, 1900?
    By DorothyFan1 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 01-02-2011, 08:23 PM
  7. [SOLVED] Date functions for dates pre-1900
    By Stephen Larivee in forum Excel General
    Replies: 2
    Last Post: 07-20-2005, 04:05 PM

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