How do I get end of month in a field given a date? Eg. 10/5/2004 should give me 10/31/2004 Thanks
G Guest Oct 8, 2004 #1 How do I get end of month in a field given a date? Eg. 10/5/2004 should give me 10/31/2004 Thanks
M Myrna Larson Oct 8, 2004 #3 If you have the Analysis Tool Pak installed, use its EOMONTH formula with 0 as the 2nd argument. If not, assuming 10/5/2004 is in A1 =DATE(YEAR(A1),MONTH(A1)+1,0) i.e. the 0th day of next month is the last day of this month.
If you have the Analysis Tool Pak installed, use its EOMONTH formula with 0 as the 2nd argument. If not, assuming 10/5/2004 is in A1 =DATE(YEAR(A1),MONTH(A1)+1,0) i.e. the 0th day of next month is the last day of this month.
G Guest Oct 8, 2004 #4 Thanks much...that worked like a charm!!! -----Original Message----- Try, for a date in A1: =DATE(YEAR(A1),MONTH(A1)+1,0) . Click to expand...
Thanks much...that worked like a charm!!! -----Original Message----- Try, for a date in A1: =DATE(YEAR(A1),MONTH(A1)+1,0) . Click to expand...