DATEDIF is not working with Excel Online. Any substitute function for this? Kindly help

Anonymous
2023-02-23T11:39:51+00:00

DATEDIF is not working with Excel Online. Any substitute function for this? Kindly help

Microsoft 365 and Office | Excel | For education | 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
{count} votes
Answer accepted by question author
  1. Anonymous
    2023-02-24T14:53:24+00:00

    MaheshKumar1 wrote:

    Image

    Even though it is not listed, the function still works.

    We can enter =DATEDIF(C1, D1, "d")

    But there is no benefit to using DATEDIF for calculating days.

    Just enter =D1 - C1


    PS.... MSFT has been trying to deprecate the use of DATEDIF for many years. In Excel 2010, for example, it does not appear in offline help, and there is also no meaningful intellisense for the function. Nevertheless, the function persists. Click here for the online help page.

    2 people found this answer helpful.
    0 comments No comments
Answer accepted by question author
  1. Anonymous
    2023-02-24T12:16:22+00:00

    You can use

    =date(2023,10,1)-date(2023,1,3)

    If A1 and B1 is date format, you can also use

    =B1-A1

    1 person found this answer helpful.
    0 comments No comments

4 additional answers

Sort by: Most helpful
  1. Anonymous
    2023-02-23T11:58:54+00:00

    Hi MaheshKumar1,

    Greetings! Thank you for posting to Microsoft Community.

    Could you share us which function of the datedif you want to use? Share some dummy data and expected result will also help to write a formula for you.

    Best Regards,

    Snow Lu

    0 comments No comments
  2. Anonymous
    2023-02-24T11:51:27+00:00

    Datedif function is not listed in function

    1 person found this answer helpful.
    0 comments No comments
  3. Anonymous
    2023-02-24T12:01:05+00:00

    DATEDIF function - Microsoft Support

    Which unit do you want to return?

    0 comments No comments