Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I'm trying to transform a number "200412" into the date of the last day of
that month. If A1 = "200412", I do below steps. Step 1 works fine, but in Step 2, I can't figure out a formula to return "12/31/2004" or the last date of month. Any help would be appreciated. Step 1: In B1, I enter =RIGHT(A1,2) & "/" & (LEFT(A1,LEN(A1)-2)) which gives me "12/2004" Step 2: In C1, I'm trying to use the formula EndOfMonth = DateSerial(Year(B1),Month(B1)+1,0) to return "12/31/2004" but I get the error #NAME? |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
count month when date is in day/month/year format | Excel Worksheet Functions | |||
excel to make the days cary over month to month automaticly | New Users to Excel | |||
Excel 2003 month to month data change grid | Excel Discussion (Misc queries) | |||
Converting Month Number to Month Text Abbreviation | Excel Worksheet Functions | |||
transfer cell $ amount to other sheet month-to-month without overc | Excel Discussion (Misc queries) |