Calculating days between two dates

L

lledelen

Hope someone can help.

When trying to come up with the number of days between a date on my
spreadsheet and the current date I am not getting the results in days.

Date format on my spreadsheet for G2 - 11/17/2006 13:19
Formula - =DATEDIF(G2,TODAY(),"D")
Result - 4/21/1900 0:00
 
D

Dave F

April 21, 1900 corresponds to the number 112. Your cell is formatted as a
date. Nov 17, 2006 was 112 days ago.

Dave
 
N

Niek Otten

Hi Laura,

Format as General

--
Kind regards,

Niek Otten
Microsoft MVP - Excel

| Hope someone can help.
|
| When trying to come up with the number of days between a date on my
| spreadsheet and the current date I am not getting the results in days.
|
| Date format on my spreadsheet for G2 - 11/17/2006 13:19
| Formula - =DATEDIF(G2,TODAY(),"D")
| Result - 4/21/1900 0:00
|
|
| --
| Thanks,
| Laura
 
V

Vergel Adriano

The cell where you had put your formula is formatted as a date. Format it as
"General". Format->Cells, in the Number tab, select "General" in the
Category list.
 
Top