about this formula =DATEDIF(J5,H5,"d")

  • Thread starter Thread starter Guest
  • Start date Start date
Hi,
That's wrong formula.
If you want to find if the cell contains Date, you can go for,
=If(IsDate(yourCell),"D"))
or
=IsNumber(yourCell)
the above formula will interpret both numbers and dates as produces boolean
(yes / no) result.
 
First, if by {...} you're indicating that you're array-entering the
formula, you don't need to.

What are the values in J5 and H5? DATEDIF requires that J5 and H5 are
dates (and J5<=H5). If they are Text, instead, you'll get the #VALUE!
error.
 
And if you're really interested in the difference in days, you can use:

=h5-j5
and format as General (or not date)

J5 and H5 must be real dates.
 
Back
Top