last working day of the month

Amit Srivastava

New Member
Joined
Jun 5, 2017
Messages
7
[TABLE="width: 1134"]
<tbody>[TR]
[TD]Hi All

while calculating the average balance for my working I need to use the last working day of the month, however If the month end does not fall on the last working day, the average balance is not correct. For example, if 29th is the last working day of a 31-day month, the average balance provided would only account for 29 out of 31 days instead of full month aggregated average balance.

I do not have the dates in the file I am getting I am just using the month in consideration as my base (for ex if I am working on Jun 2017 then I need to calculate the last working day for the same.)

How can I get the last working day of the month if the above needs to be considered.[/TD]
[/TR]
[TR]
[TD]
Also as a separate request if I need to update the formula for any holidays that fall within the said month how to incorporate the same.


Kind Regards,
Amit Srivastava[/TD]
[/TR]
[TR]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[/TR]
</tbody><colgroup><col></colgroup>[/TABLE]
 

Excel Facts

Control Word Wrap
Press Alt+Enter to move to a new row in a cell. Lets you control where the words wrap.
The following formula returns the last workday of the current month (assuming you have your holiday dates in a range named Holidays):

=WORKDAY(EOMONTH(TODAY(),0)+1,-1,Holidays)
 
Upvote 0

Forum statistics

Threads
1,223,903
Messages
6,175,284
Members
452,630
Latest member
OdubiYouth

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