Follow

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use
Contact

List dates of specific month and exclude Friday and Saturday

I could list the dates of a specific month based on the date in cell A1 using the following formula

=TRANSPOSE(IFERROR(DATEVALUE(DAY(ROW(1:30))&"-"&MONTH($A$1)&"-"&YEAR($A$1)),""))

Is it possible using formulas to list the dates but to exclude Friday and Saturday from the list generated?

MEDevel.com: Open-source for Healthcare and Education

Collecting and validating open-source software for healthcare, education, enterprise, development, medical imaging, medical records, and digital pathology.

Visit Medevel

>Solution :

Use WORKDAY.INTL which allows the exclusion of weekdays:

=LET(dy,WORKDAY.INTL(A1-1,SEQUENCE(31),"0000110"),IF(dy>EOMONTH(A1,0),"",dy))

enter image description here

If you want it horizontal:

=LET(dy,WORKDAY.INTL(A1-1,SEQUENCE(,31),"0000110"),IF(dy>EOMONTH(A1,0),"",dy))

Without the dynamic array formula, put this in the first column and drag over:

=IF(WORKDAY.INTL(A1-1,COLUMN(A1),"0000110")>EOMONTH(A1,0),"",WORKDAY.INTL(A1-1,COLUMN(A1),"0000110"))
Add a comment

Leave a Reply

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use

Discover more from Dev solutions

Subscribe now to keep reading and get access to the full archive.

Continue reading