Eomonth Formula Help

DRExcel515

Board Regular
Joined
Oct 20, 2017
Messages
56
Ok I have a column of dates and in cell A9 my formula reads as follows EOMONTH(A8,1). A8 has the date 11/30/2016 and the formula is bringing back 12/31/2016, but the last day of December in 2016 was 12/29/2016. Is there a way to tweak my formula to bring back the correct day end of the month prior? Any help would be much appreciated!

Cheers:)
 

Excel Facts

Format cells as currency
Select range and press Ctrl+Shift+4 to format cells as currency. (Shift 4 is the $ sign).
Actually I just realized the formula is pulling the correct end of month, what I meant was there a way to have it pull in the last business day of the month? Thanks!
 
Upvote 0
You can do that by getting the first day of the following month and then going back one workday

=WORKDAY(EOMONTH(A8,1)+1,-1)

If you want to exclude holidays you can include a range of holiday dates at the end, e.g. assuming holidays in H2:H8

=WORKDAY(EOMONTH(A8,1)+1,-1,H$2:H$8)
 
Last edited:
Upvote 0

Forum statistics

Threads
1,214,984
Messages
6,122,601
Members
449,089
Latest member
Motoracer88

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