Amit Srivastava

New Member
Joined
Jun 5, 2017
Messages
7
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.

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

<tbody>
</tbody><colgroup><col></colgroup>
 

Excel Facts

Best way to learn Power Query?
Read M is for (Data) Monkey book by Ken Puls and Miguel Escobar. It is the complete guide to Power Query.
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,214,651
Messages
6,120,744
Members
448,989
Latest member
mariah3

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