EOMONTH Formula Changed due to New Year

reneev

Board Regular
Joined
Apr 26, 2017
Messages
53
I have the following formula in a report which takes the hire date (3/15/16) and converts it to the end of the month of the current year (3/31/17) which is when their next annual appraisal would be due. Works great....

=EOMONTH(DATE(YEAR(TODAY()),MONTH($J4),DAY($J4)),0)

HOWEVER, now that it's 2018, it's converting that date to 3/31/18. This is a 2017 report and I need it to keep its 2017 dates. How do I edit this formula to refer to a specific year and not "Today".

In the future, I will copy/paste values to remove the formula when I'm finished with my report to preserve the dates.
 

Excel Facts

Return population for a City
If you have a list of cities in A2:A100, use Data, Geography. Then =A2.Population and copy down.
reneev, Good afternoon.

Try to use: =EOMONTH(DATE(2017,MONTH($J4),DAY($J4)),0)

Is that what you want?
I hope it helps.
 
Upvote 0
YES! Thank you! I couldn't figure out where to put the 2017 and then what to do with the commas and parenthesis.
 
Upvote 0
You could do this more simply (and avoid problems with leap years) by using this formula

=DATE(2017,MONTH($J4)+1,0)
 
Upvote 0
or expanding it a bit further so you don't have to make massive changes for next year try the following

in cell A1 of your report put the year

and use an absolute reference to the YEAR cell in your formula so when you copy it for next year make the copy and change the YEAR

=EOMONTH(DATE($A$1,MONTH($J4),DAY($J4)),0)
 
Upvote 0

Forum statistics

Threads
1,223,228
Messages
6,170,875
Members
452,363
Latest member
merico17

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