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.
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.