Getting the last day of the month
December 20, 2010 Leave a comment
Here’s a common problem. You need to create a column with the last day of a given month, converting another date in the row/record. Below accomplishes the trick:
DATE(YEAR(B5),MONTH(B5)+1,1)-1
where the cell, B5, contains the date you are converting.