Last day of each month – Formula required

grady121

Active Member
Joined
May 27, 2005
Messages
383
Office Version
  1. 2016
Platform
  1. Windows
At the end of each year, I want to try and set up a template that shows the last day of each month for the following year. (Meter Reading)

I suppose what I’m ideally looking for, is perhaps some way of entering a formula (using VBA) in cell “D15” that I copy down the following 11 rows, to produce an end date for the 12 months of the new year. I could start with a default 01/01/**** if it helps - (**** indicates the new year)

I’d be grateful if anyone has any ideas in how to achieve this, preferably using VBA.
 

Excel Facts

Add Bullets to Range
Select range. Press Ctrl+1. On Number tab, choose Custom. Type Alt+7 then space then @ sign (using 7 on numeric keypad)
Enter below formula in cell A1:
Code:
=EOMONTH(--ROWS(A$1:A1)&-2017,0)
and copy/fill down till 12th row.

Format the cells as date. To get the cell format dialog box, right-click and select cell format or select cells range and press Ctrl+1

Hope this helps.
 
Last edited:
Upvote 0
Thanks narendra,
Works like a charm.

Exactly what I needed.
 
Upvote 0

Forum statistics

Threads
1,214,920
Messages
6,122,279
Members
449,075
Latest member
staticfluids

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