List Network Days

msk7777

Active Member
Joined
Mar 30, 2004
Messages
280
Hey everyone...having difficulty finding the answer to this one. Could be looking wrong. All I am trying to do is list all net work days for a month. In cell A1 I have a drop down list with all months listed. I already have a NETWORKDAYS list to take into account our paid holidays. I want to be able to select the month and it automatically show the net work days for that month in cells A7:A29.

What would be the best set up for this?

Thanks for any help!
 

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.
With
A1: containing a month name (from a dropdown list)...eg JUN

This regular formula begins the list of workdays:
Code:
B1: =WORKDAY(($A$1&"-1")-1,1,HolidayList)
And this regular formula, copied down through B31, continues the list:
Code:
EDITED....B2 formula replaced with a better one:
B2: =IF(B1="","",IF(TEXT(WORKDAY(B1,1,$M$2:$M$15),"mmm")<>$A$1,"",WORKDAY(B1,1,$M$2:$M$15)))
<?XML:NAMESPACE PREFIX = NETWORKDAYS($A$1&"-1",EOMONTH($A$1&"-1",0),$M$2 /><NETWORKDAYS($A$1&"-1",EOMONTH($A$1&"-1",0),$M$2:$M$15),WORKDAY(B1,1,HolidayList),"")< p>
</NETWORKDAYS($A$1&"-1",EOMONTH($A$1&"-1",0),$M$2:$M$15),WORKDAY(B1,1,HolidayList),"")<>
<NETWORKDAYS($A$1&"-1",EOMONTH($A$1&"-1",0),$M$2:$M$15),WORKDAY(B1,1,HolidayList),"")< p>Format those cells as dates.</NETWORKDAYS($A$1&"-1",EOMONTH($A$1&"-1",0),$M$2:$M$15),WORKDAY(B1,1,HolidayList),"")<>
<NETWORKDAYS($A$1&"-1",EOMONTH($A$1&"-1",0),$M$2:$M$15),WORKDAY(B1,1,HolidayList),"")< p></NETWORKDAYS($A$1&"-1",EOMONTH($A$1&"-1",0),$M$2:$M$15),WORKDAY(B1,1,HolidayList),"")<>
<NETWORKDAYS($A$1&"-1",EOMONTH($A$1&"-1",0),$M$2:$M$15),WORKDAY(B1,1,HolidayList),"")< p>Note_1: HolidayList refers to whatever range you used to identify holidays.</NETWORKDAYS($A$1&"-1",EOMONTH($A$1&"-1",0),$M$2:$M$15),WORKDAY(B1,1,HolidayList),"")<>
<NETWORKDAYS($A$1&"-1",EOMONTH($A$1&"-1",0),$M$2:$M$15),WORKDAY(B1,1,HolidayList),"")< p>Note_2: the space before and afte the < symbol are there to prevent this website from interpreting the symbol as an HTML tag.</NETWORKDAYS($A$1&"-1",EOMONTH($A$1&"-1",0),$M$2:$M$15),WORKDAY(B1,1,HolidayList),"")<>
<NETWORKDAYS($A$1&"-1",EOMONTH($A$1&"-1",0),$M$2:$M$15),WORKDAY(B1,1,HolidayList),"")< p></NETWORKDAYS($A$1&"-1",EOMONTH($A$1&"-1",0),$M$2:$M$15),WORKDAY(B1,1,HolidayList),"")<>
<NETWORKDAYS($A$1&"-1",EOMONTH($A$1&"-1",0),$M$2:$M$15),WORKDAY(B1,1,HolidayList),"")< p>
Is that something you can work with?
</NETWORKDAYS($A$1&"-1",EOMONTH($A$1&"-1",0),$M$2:$M$15),WORKDAY(B1,1,HolidayList),"")<>
 
Last edited:
Upvote 0
<table border="1" cellspacing="0" cellpadding="0" style="font-family:Arial,Arial; font-size:10pt; background-color:#ffffff; padding-left:2pt; padding-right:2pt; "> <colgroup><col style="width:30px; " /><col style="width:190px;" /><col style="width:22px;" /><col style="width:76.67px;" /></colgroup><tr style="background-color:#cacaca; text-align:center;font-size:8pt; "><td > </td><td >A</td><td >B</td><td >C</td></tr><tr style="height:26px ;" ><td style="font-size:8pt; background-color:#cacaca; text-align:center; " >1</td><td >March</td><td > </td><td style="font-weight:bold; ">Holidays</td></tr><tr style="height:25px ;" ><td style="font-size:8pt; background-color:#cacaca; text-align:center; " >2</td><td > </td><td > </td><td style="text-align:right; ">1/1/2011</td></tr><tr style="height:25px ;" ><td style="font-size:8pt; background-color:#cacaca; text-align:center; " >3</td><td > </td><td > </td><td style="text-align:right; ">3/9/2011</td></tr><tr style="height:25px ;" ><td style="font-size:8pt; background-color:#cacaca; text-align:center; " >4</td><td > </td><td > </td><td style="text-align:right; ">3/17/2011</td></tr><tr style="height:25px ;" ><td style="font-size:8pt; background-color:#cacaca; text-align:center; " >5</td><td > </td><td > </td><td style="text-align:right; ">4/22/2011</td></tr><tr style="height:25px ;" ><td style="font-size:8pt; background-color:#cacaca; text-align:center; " >6</td><td > </td><td > </td><td style="text-align:right; ">5/30/2011</td></tr><tr style="height:25px ;" ><td style="font-size:8pt; background-color:#cacaca; text-align:center; " >7</td><td style="text-align:right; ">Tuesday, March 01, 2011</td><td > </td><td > </td></tr><tr style="height:25px ;" ><td style="font-size:8pt; background-color:#cacaca; text-align:center; " >8</td><td style="text-align:right; ">Wednesday, March 02, 2011</td><td > </td><td > </td></tr><tr style="height:25px ;" ><td style="font-size:8pt; background-color:#cacaca; text-align:center; " >9</td><td style="text-align:right; ">Thursday, March 03, 2011</td><td > </td><td > </td></tr><tr style="height:25px ;" ><td style="font-size:8pt; background-color:#cacaca; text-align:center; " >10</td><td style="text-align:right; ">Friday, March 04, 2011</td><td > </td><td > </td></tr><tr style="height:25px ;" ><td style="font-size:8pt; background-color:#cacaca; text-align:center; " >11</td><td style="text-align:right; ">Monday, March 07, 2011</td><td > </td><td > </td></tr><tr style="height:25px ;" ><td style="font-size:8pt; background-color:#cacaca; text-align:center; " >12</td><td style="text-align:right; ">Tuesday, March 08, 2011</td><td > </td><td > </td></tr><tr style="height:25px ;" ><td style="font-size:8pt; background-color:#cacaca; text-align:center; " >13</td><td style="text-align:right; ">Thursday, March 10, 2011</td><td > </td><td > </td></tr><tr style="height:25px ;" ><td style="font-size:8pt; background-color:#cacaca; text-align:center; " >14</td><td style="text-align:right; ">Friday, March 11, 2011</td><td > </td><td > </td></tr><tr style="height:25px ;" ><td style="font-size:8pt; background-color:#cacaca; text-align:center; " >15</td><td style="text-align:right; ">Monday, March 14, 2011</td><td > </td><td > </td></tr><tr style="height:25px ;" ><td style="font-size:8pt; background-color:#cacaca; text-align:center; " >16</td><td style="text-align:right; ">Tuesday, March 15, 2011</td><td > </td><td > </td></tr><tr style="height:25px ;" ><td style="font-size:8pt; background-color:#cacaca; text-align:center; " >17</td><td style="text-align:right; ">Wednesday, March 16, 2011</td><td > </td><td > </td></tr><tr style="height:25px ;" ><td style="font-size:8pt; background-color:#cacaca; text-align:center; " >18</td><td style="text-align:right; ">Friday, March 18, 2011</td><td > </td><td > </td></tr><tr style="height:25px ;" ><td style="font-size:8pt; background-color:#cacaca; text-align:center; " >19</td><td style="text-align:right; ">Monday, March 21, 2011</td><td > </td><td > </td></tr><tr style="height:25px ;" ><td style="font-size:8pt; background-color:#cacaca; text-align:center; " >20</td><td style="text-align:right; ">Tuesday, March 22, 2011</td><td > </td><td > </td></tr><tr style="height:25px ;" ><td style="font-size:8pt; background-color:#cacaca; text-align:center; " >21</td><td style="text-align:right; ">Wednesday, March 23, 2011</td><td > </td><td > </td></tr><tr style="height:25px ;" ><td style="font-size:8pt; background-color:#cacaca; text-align:center; " >22</td><td style="text-align:right; ">Thursday, March 24, 2011</td><td > </td><td > </td></tr><tr style="height:25px ;" ><td style="font-size:8pt; background-color:#cacaca; text-align:center; " >23</td><td style="text-align:right; ">Friday, March 25, 2011</td><td > </td><td > </td></tr><tr style="height:25px ;" ><td style="font-size:8pt; background-color:#cacaca; text-align:center; " >24</td><td style="text-align:right; ">Monday, March 28, 2011</td><td > </td><td > </td></tr><tr style="height:25px ;" ><td style="font-size:8pt; background-color:#cacaca; text-align:center; " >25</td><td style="text-align:right; ">Tuesday, March 29, 2011</td><td > </td><td > </td></tr><tr style="height:25px ;" ><td style="font-size:8pt; background-color:#cacaca; text-align:center; " >26</td><td style="text-align:right; ">Wednesday, March 30, 2011</td><td > </td><td > </td></tr><tr style="height:25px ;" ><td style="font-size:8pt; background-color:#cacaca; text-align:center; " >27</td><td style="text-align:right; ">Thursday, March 31, 2011</td><td > </td><td > </td></tr><tr style="height:25px ;" ><td style="font-size:8pt; background-color:#cacaca; text-align:center; " >28</td><td > </td><td > </td><td > </td></tr><tr style="height:25px ;" ><td style="font-size:8pt; background-color:#cacaca; text-align:center; " >29</td><td > </td><td > </td><td > </td></tr><tr style="height:25px ;" ><td style="font-size:8pt; background-color:#cacaca; text-align:center; " >30</td><td > </td><td > </td><td > </td></tr></table><br /><table style="font-family:Arial; font-size:10pt; border-style: groove ;border-color:#00ff00;background-color:#fffcf9; color:#000000; "><tr><td ><b>Spreadsheet Formulas</b></td></tr><tr><td ><table border = "1" cellspacing="0" cellpadding="2" style="font-family:Arial; font-size:9pt;"><tr style="background-color:#cacaca; font-size:10pt;"><td >Cell</td><td >Formula</td></tr><tr><td >A7</td><td >=IF($A$1="","",<br />IF<span style=' color:008000; '>(MONTH<span style=' color:#0000ff; '>(<span style=' color:#ff0000; '>(WORKDAY<span style=' color:#804000; '>(DATEVALUE<span style=' color:#ff7837; '>($A$1&" 1"&", "&YEAR<span style=' color:#8000ff; '>(TODAY<span style=' color:#545fa5; '>()</span>)</span>)</span>,ROW<span style=' color:#ff7837; '>(A1)</span>-1,$C$2:$C$20)</span>)</span>)</span><>MONTH<span style=' color:#0000ff; '>(DATEVALUE<span style=' color:#ff0000; '>($A$1&" 1, 2011")</span>)</span>,"",WORKDAY<span style=' color:#0000ff; '>(DATEVALUE<span style=' color:#ff0000; '>($A$1&" 1"&", "&YEAR<span style=' color:#804000; '>(TODAY<span style=' color:#ff7837; '>()</span>)</span>)</span>,ROW<span style=' color:#ff0000; '>(A1)</span>-1,$C$2:$C$20)</span>)</span>)</td></tr></table></td></tr></table>
 
Upvote 0
Thanks! Going to try this! In formula 2 is the cells listed in column M refering to my Holiday list?





With
A1: containing a month name (from a dropdown list)...eg JUN

This regular formula begins the list of workdays:
Code:
B1: =WORKDAY(($A$1&"-1")-1,1,HolidayList)
And this regular formula, copied down through B31, continues the list:
Code:
EDITED....B2 formula replaced with a better one:
B2: =IF(B1="","",IF(TEXT(WORKDAY(B1,1,$M$2:$M$15),"mmm")<>$A$1,"",WORKDAY(B1,1,$M$2:$M$15)))
<?XML:NAMESPACE PREFIX = NETWORKDAYS($A$1&"-1",EOMONTH($A$1&"-1",0),$M$2 /><NETWORKDAYS($A$1&"-1",EOMONTH($A$1&"-1",0),$M$2:$M$15),WORKDAY(B1,1,HolidayList),"")< p>
</NETWORKDAYS($A$1&"-1",EOMONTH($A$1&"-1",0),$M$2:$M$15),WORKDAY(B1,1,HolidayList),"")<>
<NETWORKDAYS($A$1&"-1",EOMONTH($A$1&"-1",0),$M$2:$M$15),WORKDAY(B1,1,HolidayList),"")< p>Format those cells as dates.</NETWORKDAYS($A$1&"-1",EOMONTH($A$1&"-1",0),$M$2:$M$15),WORKDAY(B1,1,HolidayList),"")<>
<NETWORKDAYS($A$1&"-1",EOMONTH($A$1&"-1",0),$M$2:$M$15),WORKDAY(B1,1,HolidayList),"")< p></NETWORKDAYS($A$1&"-1",EOMONTH($A$1&"-1",0),$M$2:$M$15),WORKDAY(B1,1,HolidayList),"")<>
<NETWORKDAYS($A$1&"-1",EOMONTH($A$1&"-1",0),$M$2:$M$15),WORKDAY(B1,1,HolidayList),"")< p>Note_1: HolidayList refers to whatever range you used to identify holidays.</NETWORKDAYS($A$1&"-1",EOMONTH($A$1&"-1",0),$M$2:$M$15),WORKDAY(B1,1,HolidayList),"")<>
<NETWORKDAYS($A$1&"-1",EOMONTH($A$1&"-1",0),$M$2:$M$15),WORKDAY(B1,1,HolidayList),"")< p>Note_2: the space before and afte the < symbol are there to prevent this website from interpreting the symbol as an HTML tag.</NETWORKDAYS($A$1&"-1",EOMONTH($A$1&"-1",0),$M$2:$M$15),WORKDAY(B1,1,HolidayList),"")<>
<NETWORKDAYS($A$1&"-1",EOMONTH($A$1&"-1",0),$M$2:$M$15),WORKDAY(B1,1,HolidayList),"")< p></NETWORKDAYS($A$1&"-1",EOMONTH($A$1&"-1",0),$M$2:$M$15),WORKDAY(B1,1,HolidayList),"")<>
<NETWORKDAYS($A$1&"-1",EOMONTH($A$1&"-1",0),$M$2:$M$15),WORKDAY(B1,1,HolidayList),"")< p>
Is that something you can work with?
</NETWORKDAYS($A$1&"-1",EOMONTH($A$1&"-1",0),$M$2:$M$15),WORKDAY(B1,1,HolidayList),"")<>
 
Upvote 0
Here's my try:
Excel Workbook
ABC
1tammikuu
2Holidays:
31.1.11
46.1.11
5
6Workdays:Data Validation List:
73.1.2011tammikuu
83.1.2011helmikuu
94.1.2011maaliskuu
105.1.2011huhtikuu
117.1.2011toukokuu
1210.1.2011keskuu
1311.1.2011heinkuu
1412.1.2011elokuu
1513.1.2011syyskuu
1614.1.2011lokakuu
1717.1.2011marraskuu
1818.1.2011joulukuu
Sheet

All the month names on the Data Validation List are real dates (1.1.2011 for January etc.) but the cell format is "MMM". This way the drop down list in A1 displays the dates as month names as well. A1 should be formatted "MMM" as well.

My Excel uses the Finnish language so the month names are displayed in Finnish.
 
Upvote 0
Thanks! Going to try this! In formula 2 is the cells listed in column M refering to my Holiday list?
OOPS! My mistake...When I pasted in the new formula, I forgot to replace the $M$2:$M$15 reference with the word: HolidayList.

Thanks for asking
 
Upvote 0
I am using this formula below, but have run into one issue. When selecting "January" (For example) in the DV list it is still showing January 1st as the first net work day of the month even though 1/1/2011 is listed withing the Named Range "HolidayList". Any thoughts?









<table border="1" cellspacing="0" cellpadding="0" style="font-family:Arial,Arial; font-size:10pt; background-color:#ffffff; padding-left:2pt; padding-right:2pt; "> <colgroup><col style="width:30px; " /><col style="width:190px;" /><col style="width:22px;" /><col style="width:76.67px;" /></colgroup><tr style="background-color:#cacaca; text-align:center;font-size:8pt; "><td >*</td><td >A</td><td >B</td><td >C</td></tr><tr style="height:26px ;" ><td style="font-size:8pt; background-color:#cacaca; text-align:center; " >1</td><td >March</td><td >*</td><td style="font-weight:bold; ">Holidays</td></tr><tr style="height:25px ;" ><td style="font-size:8pt; background-color:#cacaca; text-align:center; " >2</td><td >*</td><td >*</td><td style="text-align:right; ">1/1/2011</td></tr><tr style="height:25px ;" ><td style="font-size:8pt; background-color:#cacaca; text-align:center; " >3</td><td >*</td><td >*</td><td style="text-align:right; ">3/9/2011</td></tr><tr style="height:25px ;" ><td style="font-size:8pt; background-color:#cacaca; text-align:center; " >4</td><td >*</td><td >*</td><td style="text-align:right; ">3/17/2011</td></tr><tr style="height:25px ;" ><td style="font-size:8pt; background-color:#cacaca; text-align:center; " >5</td><td >*</td><td >*</td><td style="text-align:right; ">4/22/2011</td></tr><tr style="height:25px ;" ><td style="font-size:8pt; background-color:#cacaca; text-align:center; " >6</td><td >*</td><td >*</td><td style="text-align:right; ">5/30/2011</td></tr><tr style="height:25px ;" ><td style="font-size:8pt; background-color:#cacaca; text-align:center; " >7</td><td style="text-align:right; ">Tuesday, March 01, 2011</td><td >*</td><td >*</td></tr><tr style="height:25px ;" ><td style="font-size:8pt; background-color:#cacaca; text-align:center; " >8</td><td style="text-align:right; ">Wednesday, March 02, 2011</td><td >*</td><td >*</td></tr><tr style="height:25px ;" ><td style="font-size:8pt; background-color:#cacaca; text-align:center; " >9</td><td style="text-align:right; ">Thursday, March 03, 2011</td><td >*</td><td >*</td></tr><tr style="height:25px ;" ><td style="font-size:8pt; background-color:#cacaca; text-align:center; " >10</td><td style="text-align:right; ">Friday, March 04, 2011</td><td >*</td><td >*</td></tr><tr style="height:25px ;" ><td style="font-size:8pt; background-color:#cacaca; text-align:center; " >11</td><td style="text-align:right; ">Monday, March 07, 2011</td><td >*</td><td >*</td></tr><tr style="height:25px ;" ><td style="font-size:8pt; background-color:#cacaca; text-align:center; " >12</td><td style="text-align:right; ">Tuesday, March 08, 2011</td><td >*</td><td >*</td></tr><tr style="height:25px ;" ><td style="font-size:8pt; background-color:#cacaca; text-align:center; " >13</td><td style="text-align:right; ">Thursday, March 10, 2011</td><td >*</td><td >*</td></tr><tr style="height:25px ;" ><td style="font-size:8pt; background-color:#cacaca; text-align:center; " >14</td><td style="text-align:right; ">Friday, March 11, 2011</td><td >*</td><td >*</td></tr><tr style="height:25px ;" ><td style="font-size:8pt; background-color:#cacaca; text-align:center; " >15</td><td style="text-align:right; ">Monday, March 14, 2011</td><td >*</td><td >*</td></tr><tr style="height:25px ;" ><td style="font-size:8pt; background-color:#cacaca; text-align:center; " >16</td><td style="text-align:right; ">Tuesday, March 15, 2011</td><td >*</td><td >*</td></tr><tr style="height:25px ;" ><td style="font-size:8pt; background-color:#cacaca; text-align:center; " >17</td><td style="text-align:right; ">Wednesday, March 16, 2011</td><td >*</td><td >*</td></tr><tr style="height:25px ;" ><td style="font-size:8pt; background-color:#cacaca; text-align:center; " >18</td><td style="text-align:right; ">Friday, March 18, 2011</td><td >*</td><td >*</td></tr><tr style="height:25px ;" ><td style="font-size:8pt; background-color:#cacaca; text-align:center; " >19</td><td style="text-align:right; ">Monday, March 21, 2011</td><td >*</td><td >*</td></tr><tr style="height:25px ;" ><td style="font-size:8pt; background-color:#cacaca; text-align:center; " >20</td><td style="text-align:right; ">Tuesday, March 22, 2011</td><td >*</td><td >*</td></tr><tr style="height:25px ;" ><td style="font-size:8pt; background-color:#cacaca; text-align:center; " >21</td><td style="text-align:right; ">Wednesday, March 23, 2011</td><td >*</td><td >*</td></tr><tr style="height:25px ;" ><td style="font-size:8pt; background-color:#cacaca; text-align:center; " >22</td><td style="text-align:right; ">Thursday, March 24, 2011</td><td >*</td><td >*</td></tr><tr style="height:25px ;" ><td style="font-size:8pt; background-color:#cacaca; text-align:center; " >23</td><td style="text-align:right; ">Friday, March 25, 2011</td><td >*</td><td >*</td></tr><tr style="height:25px ;" ><td style="font-size:8pt; background-color:#cacaca; text-align:center; " >24</td><td style="text-align:right; ">Monday, March 28, 2011</td><td >*</td><td >*</td></tr><tr style="height:25px ;" ><td style="font-size:8pt; background-color:#cacaca; text-align:center; " >25</td><td style="text-align:right; ">Tuesday, March 29, 2011</td><td >*</td><td >*</td></tr><tr style="height:25px ;" ><td style="font-size:8pt; background-color:#cacaca; text-align:center; " >26</td><td style="text-align:right; ">Wednesday, March 30, 2011</td><td >*</td><td >*</td></tr><tr style="height:25px ;" ><td style="font-size:8pt; background-color:#cacaca; text-align:center; " >27</td><td style="text-align:right; ">Thursday, March 31, 2011</td><td >*</td><td >*</td></tr><tr style="height:25px ;" ><td style="font-size:8pt; background-color:#cacaca; text-align:center; " >28</td><td >*</td><td >*</td><td >*</td></tr><tr style="height:25px ;" ><td style="font-size:8pt; background-color:#cacaca; text-align:center; " >29</td><td >*</td><td >*</td><td >*</td></tr><tr style="height:25px ;" ><td style="font-size:8pt; background-color:#cacaca; text-align:center; " >30</td><td >*</td><td >*</td><td >*</td></tr></table><br /><table style="font-family:Arial; font-size:10pt; border-style: groove ;border-color:#00ff00;background-color:#fffcf9; color:#000000; "><tr><td ><b>Spreadsheet Formulas</b></td></tr><tr><td ><table border = "1" cellspacing="0" cellpadding="2" style="font-family:Arial; font-size:9pt;"><tr style="background-color:#cacaca; font-size:10pt;"><td >Cell</td><td >Formula</td></tr><tr><td >A7</td><td >=IF($A$1="","",<br />IF<span style=' color:008000; '>(MONTH<span style=' color:#0000ff; '>(<span style=' color:#ff0000; '>(WORKDAY<span style=' color:#804000; '>(DATEVALUE<span style=' color:#ff7837; '>($A$1&" 1"&", "&YEAR<span style=' color:#8000ff; '>(TODAY<span style=' color:#545fa5; '>()</span>)</span>)</span>,ROW<span style=' color:#ff7837; '>(A1)</span>-1,$C$2:$C$20)</span>)</span>)</span><>MONTH<span style=' color:#0000ff; '>(DATEVALUE<span style=' color:#ff0000; '>($A$1&" 1, 2011")</span>)</span>,"",WORKDAY<span style=' color:#0000ff; '>(DATEVALUE<span style=' color:#ff0000; '>($A$1&" 1"&", "&YEAR<span style=' color:#804000; '>(TODAY<span style=' color:#ff7837; '>()</span>)</span>)</span>,ROW<span style=' color:#ff0000; '>(A1)</span>-1,$C$2:$C$20)</span>)</span>)</td></tr></table></td></tr></table>
 
Upvote 0
Sorry, try this...

Code:
=IF($A$1="","",
IF(MONTH((WORKDAY(DATEVALUE($A$1&" 1"&", "&YEAR(TODAY()))-1,ROW(A5),$C$2:$C$20)))<>MONTH(DATEVALUE($A$1&" 1, 2011")),"",
WORKDAY(DATEVALUE($A$1&" 1"&", "&YEAR(TODAY()))-1,ROW(A5),$C$2:$C$20)))

Or a little shorter version of the same thing...
Code:
=IF($A$1="","",
IF(MONTH((WORKDAY(DATEVALUE($A$1&" 1")-1,ROW(A1),$C$2:$C$20)))<>MONTH(DATEVALUE($A$1&" 1")),"",
WORKDAY(DATEVALUE($A$1&" 1")-1,ROW(A1),$C$2:$C$20)))
 
Last edited:
Upvote 0
Try this version of Ron's approach....in A7 copied down

=IF(TEXT(WORKDAY((1&A$1)-1,ROWS(A$7:A7),C$2:C$20),"mmmm")<>A$1,"",WORKDAY((1&A$1)-1,ROWS(A$7:A7),C$2:C$20))
 
Last edited:
Upvote 0

Forum statistics

Threads
1,224,559
Messages
6,179,513
Members
452,921
Latest member
BBQKING

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