Why not the more direct route...To get the last day of the month, just use the EOMONTH function:
=EOMONTH(DATE(A1,B1,1),0)
where A1 is the year and B1 is the month. To get the 4/30/2017 format, just select that format from the date formats. Duplicates should be no problem.
To get the last day of the month, just use the EOMONTH function:
=EOMONTH(DATE(A1,B1,1),0)
where A1 is the year and B1 is the month. To get the 4/30/2017 format, just select that format from the date formats. Duplicates should be no problem.
Hope this helps.