Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.misc
|
|||
|
|||
Maximum date in a Month
Is there a way, using a macro to calculate the last date for a month when the
fist day of the month is input? examples: Input 10/1/2008 Result 10/31/2008 Input 8/1/2008 Result 8/31/2008 Thanks Steve |
#2
Posted to microsoft.public.excel.misc
|
|||
|
|||
Maximum date in a Month
Assuming your input date is in cell A1, try this formula:
=DATE(YEAR(A1),MONTH(A1)+1,0) tom |
#3
Posted to microsoft.public.excel.misc
|
|||
|
|||
Maximum date in a Month
If you have the Analysis ToolPak add-in installed (Excel versions prior to
Excel 2007): A1 = some date =EOMONTH(A1,0) -- Biff Microsoft Excel MVP "Steve" wrote in message ... Is there a way, using a macro to calculate the last date for a month when the fist day of the month is input? examples: Input 10/1/2008 Result 10/31/2008 Input 8/1/2008 Result 8/31/2008 Thanks Steve |
#4
Posted to microsoft.public.excel.misc
|
|||
|
|||
Maximum date in a Month
Works fine. Thanks guys
Steve "T. Valko" wrote: If you have the Analysis ToolPak add-in installed (Excel versions prior to Excel 2007): A1 = some date =EOMONTH(A1,0) -- Biff Microsoft Excel MVP "Steve" wrote in message ... Is there a way, using a macro to calculate the last date for a month when the fist day of the month is input? examples: Input 10/1/2008 Result 10/31/2008 Input 8/1/2008 Result 8/31/2008 Thanks Steve |
#5
Posted to microsoft.public.excel.misc
|
|||
|
|||
Maximum date in a Month
You're welcome. Thanks for the feedback!
-- Biff Microsoft Excel MVP "Steve" wrote in message ... Works fine. Thanks guys Steve "T. Valko" wrote: If you have the Analysis ToolPak add-in installed (Excel versions prior to Excel 2007): A1 = some date =EOMONTH(A1,0) -- Biff Microsoft Excel MVP "Steve" wrote in message ... Is there a way, using a macro to calculate the last date for a month when the fist day of the month is input? examples: Input 10/1/2008 Result 10/31/2008 Input 8/1/2008 Result 8/31/2008 Thanks Steve |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Return Maximum value for Specific Month(s) | Excel Worksheet Functions | |||
Date arithmetic: adding 1 month to prior end of month date | Excel Worksheet Functions | |||
Sort month/date/year data using month and date only | Excel Discussion (Misc queries) | |||
=VLOOKUP(1,Nationality!B5:B29,IF(MONTH(date)6,MONTH(date)-6, MON | Excel Worksheet Functions | |||
Month to date sales - reset in new month??? | Excel Worksheet Functions |