Forum Discussion

pr09082000's avatar
pr09082000
Copper Contributor
Sep 16, 2021

How to use DATEDIF as a number?

Hello guys,

I have two datetime at cell G2, H2, for example 9/12/2021 21:49 and 9/13/2021 11:18, when I use DATEDIF(G2, H2, "d") the result is 1. However, I want to do some calculation with that result for example DATEDIF(G2, H2, "d") * I2 * D2 * 0.005 but this function seems not to have a number result, which leads to #VALUE! error. Any ways to solve this?

3 Replies

  • Riny_van_Eekelen's avatar
    Riny_van_Eekelen
    Platinum Contributor

    pr09082000 Created a mock-up on the basis of your description and used some values in D2 and I2 to get a result. I suspect that either of the values in these two cells are not real numbers, as that will return the #VALUE# error.

     

  • NikolinoDE's avatar
    NikolinoDE
    Platinum Contributor

    pr09082000 

    Unfortunately I cannot understand from the text what exactly your plan is, the translation does not help as it should.

    What exactly is your plan?

    Would you like to multiply the date with a numerical value?

    Do you only want the difference between the two dates?

     

    Please insert a file (without sensitive data) and explain exactly what you are planning on the basis of this file.

    Knowing the Excel version and the operating system would be an advantage.

     

    Thank you for your understanding and patience

     

    NikolinoDE

    I know I don't know anything (Socrates)

Resources