eomonth

Stclements1

Board Regular
Joined
Sep 15, 2018
Messages
150
Office Version
  1. 365
Platform
  1. Windows
I have this formula which I am grateful for the help from MrExcel users guidance, but having used it,the problem I have is that it can give me the start and end date of the same month as I asked for it to give me the last Workday at the end of the month but in reflection what I actually want it to do is give me the first Workday of each month. I have added a +before the final numeric 1 but that changed nothing.
=IF(ROWS(E$2:E2)>($B$4*12);"";WORKDAY(EOMONTH(B$2;D2-1)-1;1))
 

Excel Facts

Copy formula down without changing references
If you have =SUM(F2:F49) in F50; type Alt+' in F51 to copy =SUM(F2:F49) to F51, leaving the formula in edit mode. Change SUM to COUNT.
Sorry to waste your time, I have managed to correct it by making the changes as per so
=IF(ROWS(E$2:E17)>($B$4*12);"";WORKDAY(EOMONTH(B$2;D17-1)*1;1))
 
Upvote 0
Thank you for that I have now got the dates working on the first day of the month, myonly problem is that one of them is the 1st of January which is obviously an holiday but I can't work out how to eliminate holidays, I tried networkdays but that didn't work?
 
Upvote 0
try checking Excel's help for Workday


T202008a.xlsm
BCD
415-Dec-20Mon 4-Jan-21
5
2c
Cell Formulas
RangeFormula
D4D4=WORKDAY(EOMONTH(B4,0),1,Holidays)
Named Ranges
NameRefers ToCells
Holidays='2c'!$F$1:$F$2D4
 
Upvote 0
I did look at this and have made a list of holiday dates that I can now add to the formula. I was under the impression that excel stored these automatically. Anyway many thanks for your help and guidance.
 
Upvote 0

Forum statistics

Threads
1,214,375
Messages
6,119,166
Members
448,870
Latest member
max_pedreira

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