Forum Discussion

mikamandi79's avatar
mikamandi79
Copper Contributor
Jan 01, 2025
Solved

Using DATEIF function

How does one use the DATEIF function to calculate the difference between two dates in different centuries, e.g. 1900s vs. 2000s? What would the formula look like?

  • mikamandi79's avatar
    mikamandi79
    Jan 24, 2025

    Thank you for your assistance, Hans.  When I first looked at your example, my recollection is that the example before me didn't appear to span two different centuries. Thanks again!

4 Replies

    • mikamandi79's avatar
      mikamandi79
      Copper Contributor

      Yes, I understand that. Thank you.  BUT, my question was apparently it can't function between two centuries . . . such as between 1990 and 2025?

      • HansVogelaar's avatar
        HansVogelaar
        MVP

        As you can see in the screenshot in my previous reply, DATEDIF can calculate the difference between dates in the 20th century and 21st century. What exactly is your problem?

Resources