Workday calendar

Anonymous
2023-11-18T13:58:02+00:00

Hi,
I've put together a workday calendar, but, A, are there more efficient ways and B

is there a way to use Workddays in the sequence of some other method?

This is what I have .

=LET(d,DATE(YEAR(TODAY()),1,1),dplus,EDATE(d,12),count,dplus-d,

dr,SEQUENCE(count,,d,1),result,IF(WEEKDAY(dr,2)=6,"",IF(WEEKDAY(dr,2)=7,"",dr)),

FILTER(result,result<>""))

Richard.

Microsoft 365 and Office | Excel | For home | Windows

Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.

0 comments No comments

Answer accepted by question author

Ashish Mathur 102.2K Reputation points Volunteer Moderator
2023-11-18T23:31:20+00:00

Hi,

In cell A2, enter this formula

=LET(diy,DATE(YEAR(TODAY()),12,31)-DATE(YEAR(TODAY()),1,1)+1,lgc,DATE(YEAR(TODAY()),1,1)+SEQUENCE(diy,,0),FILTER(lgc,WEEKDAY(lgc,2)<=5))

Hope this helps.

Was this answer helpful?

1 person found this answer helpful.
0 comments No comments

Answer accepted by question author

Anonymous
2023-11-18T14:38:12+00:00

Hi RichardDrake1505,

Thank you for reaching out. My name is Leo, a user just like you. I'd be happy to help you with your concern.

You can consider using the WORKDAY function or combining SEQUENCE with other functions. Here is an alternative approach using the WORKDAY function:

=WORKDAY(TODAY(),SEQUENCE(252),1)

This formula generates a sequence of 252 workdays (assuming a typical work year of 252 days) starting from the current date using the SEQUENCE function and the WORKDAY function. The third argument of the WORKDAY function is set to 1, indicating that weekends (Saturday and Sunday) should be excluded.

Regarding your second question (B), if you want to use the WORKDAY function in a sequence or any other method, you can still use the SEQUENCE function to generate a sequence of numbers and then add those to the starting date. For example:

=WORKDAY(TODAY(),SEQUENCE(252),1)

Your understanding and patience will be highly appreciated. I hope I provided a helpful information regarding your concern! Let me know if you have any further questions. Be safe always!

Best Regards,

Leo

Was this answer helpful?

1 person found this answer helpful.
0 comments No comments

4 additional answers

Sort by: Most helpful
  1. Anonymous
    2023-11-19T13:45:59+00:00

    And how about, ]

    LET( startdate, DATE(YEAR(TODAY()),1,1),enddate,EDATE(startdate,12)-1,count, enddate - startdate,

    result,WORKDAY.INTL(startdate,SEQUENCE(count),"0000000"), FILTER(result, WEEKDAY(result,2)<=5) )

    Bringing back all then filtering out so as to stop at the end of the year.

    RD

    Was this answer helpful?

    0 comments No comments
  2. Anonymous
    2023-11-19T13:04:48+00:00

    Thank you,

    RD

    Was this answer helpful?

    0 comments No comments
  3. Anonymous
    2023-11-19T13:04:13+00:00

    Thank you both,

    I did not think of using sequence to generate the day count , in workday / networkday,

    I had tried using it but in a different way and it did not really work,

    I would still make the count dynamic so used network,

    This seems to work pretty well,

    = LET( startdate,DATE(YEAR(TODAY()),1,1), enddate,EDATE( startdate,12)-1, daycount, NETWORKDAYS.INTL(startdate,enddate,1),

    result, WORKDAY.INTL( startdate, SEQUENCE(daycount),1),result )

    Thanks for the help.

    Richard.

    Was this answer helpful?

    0 comments No comments