Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Calculating With Drop-down Menu Dates

Status
Not open for further replies.

JHHPavel

Technical User
Jul 18, 2003
29
US
I have an Excel spreadsheet with drop-down menus for start date and stop date. After choosing them, I want to calculate the number of days in the chosen period. Just subtracting begin from end doesn't work; 3/31/14 - 1/1/14 = 01/04/00 when calculated from the drop-downs. =datevalue(3/31/14 - 1/1/14 ) yields a #Value! message. Is there any way to get Excel to look at the date chosen?

Thanks,

Paul

 
Hi,

If you look at the HELP documentation for the DateValue() function, you would see that it uses one text date value.

Skip,
[sub]
[glasses]Just traded in my OLD subtlety...
for a NUance![tongue][/sub]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top