last day of the month

spf2010

New Member
Joined
Oct 11, 2017
Messages
6
I have a month column and a year column.I want to calculate the last day of the month going back multiple years.I also want it in a 4/30/2017 format.Also there are duplicate entries with the same month and year.
 

Excel Facts

What does custom number format of ;;; mean?
Three semi-colons will hide the value in the cell. Although most people use white font instead.
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.
 
Upvote 0
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.
Why not the more direct route...

=DATE(A1,B1+1,0)
 
Upvote 0
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.

The month is spelled out
 
Upvote 0

Forum statistics

Threads
1,224,834
Messages
6,181,243
Members
453,026
Latest member
cknader

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top