• Hi All

    Please note that at the Chandoo.org Forums there is Zero Tolerance to Spam

    Post Spam and you Will Be Deleted as a User

    Hui...

  • When starting a new post, to receive a quicker and more targeted answer, Please include a sample file in the initial post.

Days Function - #Value error

Hi,

I am getting a value error for the formula =Days(today(),"15/04/1982") in my workbook. The same formula works well in my colleague workbook. What is the possible root cause of this issue.
 
Which version of Excel do You use?
My version do not have that formula.
=Days360(startdate,enddate,..)
 
The above solution worked. How to change the settings to mm/dd/yyyy in excel so that any user who opens it will get the result.

That's based on your system's regional setting. Check the time/date format there. It should be set to "M/d/yyyy" for short date.

Edit:
However, it's far safer to use DATE() function rather than string when working with dates in Excel like below. It will adjust to any date format.
=DAYS(Today(),Date(1982,4,15))
 
Back
Top