![]() |
![]() |
|
|||||||
| Excel Questions All Excel/VBA questions - formulas, macros, pivot tables, general help, etc. Please post to this forum in English only. |
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Board Regular
Join Date: Mar 2002
Posts: 444
|
I want to calculate the number of days between 2 dates. The start_date is in A1 and the end_date is in A2.
When I format the function like this: DATEDIF(A1,A2,D) I get the #NAME? error. So I then tried it like this, DATEDIF("A1","A2",D) I get the #value! error. Since I already have the dates in the worksheet I do not want to enter them into the formula each time. Help |
|
|
|
|
|
#2 |
|
Board Regular
Join Date: Mar 2002
Location: Cincinnati, Ohio, USA
Posts: 6,824
|
Put the D in quotes
"d" |
|
|
|
|
|
#3 |
|
Board Regular
Join Date: Mar 2002
Posts: 444
|
Thanks I believe that worked!!
|
|
|
|
|
|
#4 | |
|
MrExcel MVP
Join Date: Feb 2002
Location: The Hague
Posts: 50,317
|
Quote:
will also work. Need to format the cell of the formula as General. |
|
|
|
|
![]() |
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|