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 TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Excel Date Problem

Status
Not open for further replies.

DuMoore

Instructor
Dec 12, 2002
17
US
I need Excel to return the number of days in a month based on a date entered by a user. For example: if a user enters 12-12-02, then I need Excel to return 31.

Is there a way to accomplish this? I have tried to split the date into columns then read the first 2 digits, and then relate that number to a HLOOKUP table holding the number of days in a month. That idea worked very poorly.

Any and all help would be greatly appreciated.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top