Share via

DATEDIF(D9,E9,"d") does not work

Anonymous
2017-04-03T19:15:54+00:00

Can anybody give me a clue why I can not make it work.

I need it to work to calculate days between to dates,

and I have many, many dats to calculate.

The function is typed exactly as the book sais!!!

Ole

Microsoft 365 and Office | Excel | For home | Windows

Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.

0 comments No comments

Answer accepted by question author

Ashish Mathur 101.9K Reputation points Volunteer Moderator
2017-04-03T23:37:00+00:00

Hi,

How about =E9-D9

Does this work?

Was this answer helpful?

0 comments No comments

6 additional answers

Sort by: Most helpful
  1. HansV 462.6K Reputation points
    2017-04-04T16:30:26+00:00

    DATEDIF is - for unknown reasons - the black sheep of the Excel functions family. It was completely undocumented in most versions of Excel, and the name wasn't translated into other languages...

    Was this answer helpful?

    1 person found this answer helpful.
    0 comments No comments
  2. HansV 462.6K Reputation points
    2017-04-03T19:46:02+00:00
    1. I assume that you did have an = before DATEDIF: =DATEDIF(D9,E9,"d")
    2. Make sure that the date in D9 is not later than that in E9. DATEDIF does not return negative differences.
    3. If your system uses comma as decimal separator, you should use semicolon between the arguments in a formula:

    =DATEDIF(D9;E9;"d")

    Was this answer helpful?

    1 person found this answer helpful.
    0 comments No comments
  3. Anonymous
    2017-04-04T10:05:00+00:00

    =E9-D9 I used before, but this time I wanted to use the other function MS provides.

    I think MS should not provde something which does not work at all.

    I would like to have an explenation from MS about this.

    How do I get that?

    Thank you for your effort.

    Ole

    Was this answer helpful?

    0 comments No comments
  4. Anonymous
    2017-04-04T09:57:02+00:00

    In my input I forgot to typ = before the formula, but I did do it when I tryed to use it.

    I have now tryed with semicolon, it does not work.

    I have made shure that the dates are used in the correct order. Doesn't work.

    I think it is very bad that Microsoft has such a bad explanation of the use of this function when one looks it up under Help!

    AT least they should have shown examples whith figurs put into the function.

    They also should go through the explanation and correct it immediately.

    Mind you, this explanation I looked at was in norwegian.

    Thanks for you effort.

    Ole

    Was this answer helpful?

    0 comments No comments