ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   DATEIF Name error (https://www.excelbanter.com/excel-worksheet-functions/44961-dateif-name-error.html)

SCOOBYDOO

DATEIF Name error
 
Hi, I have to find the difference between two dates, the first (and earlier
date) is in column C, cells C2 - C5910 and the second is in column H, same
row references. The dates are in a dd/mm/yyyy format. I have input the
following in column I - =DATEIF(c2,h2,"d") which I expected to return the
number of days between the two dates, however, I am getting a "#NAME?" error.
Can anyone help please?

Thanks


bj

try datedif rather than dateif

"SCOOBYDOO" wrote:

Hi, I have to find the difference between two dates, the first (and earlier
date) is in column C, cells C2 - C5910 and the second is in column H, same
row references. The dates are in a dd/mm/yyyy format. I have input the
following in column I - =DATEIF(c2,h2,"d") which I expected to return the
number of days between the two dates, however, I am getting a "#NAME?" error.
Can anyone help please?

Thanks


Ron Rosenfeld

On Mon, 12 Sep 2005 07:59:10 -0700, SCOOBYDOO
wrote:

Hi, I have to find the difference between two dates, the first (and earlier
date) is in column C, cells C2 - C5910 and the second is in column H, same
row references. The dates are in a dd/mm/yyyy format. I have input the
following in column I - =DATEIF(c2,h2,"d") which I expected to return the
number of days between the two dates, however, I am getting a "#NAME?" error.
Can anyone help please?

Thanks


The correct name of the worksheet function is DATEDIF.
^

(You left out the second "D").

But for days between dates, simpler might be

=H2-C2

and format as General or Number.


--ron

Paul Sheppard


SCOOBYDOO Wrote:
Hi, I have to find the difference between two dates, the first (and
earlier
date) is in column C, cells C2 - C5910 and the second is in column H,
same
row references. The dates are in a dd/mm/yyyy format. I have input
the
following in column I - =DATEIF(c2,h2,"d") which I expected to return
the
number of days between the two dates, however, I am getting a "#NAME?"
error.
Can anyone help please?

Thanks


Hi Scoobydoo

Try DATEDIF


--
Paul Sheppard


------------------------------------------------------------------------
Paul Sheppard's Profile: http://www.excelforum.com/member.php...o&userid=24783
View this thread: http://www.excelforum.com/showthread...hreadid=466812



All times are GMT +1. The time now is 02:11 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com