Forum Discussion

Tina_G1620's avatar
Tina_G1620
Copper Contributor
Jan 10, 2024

Formula for building a weekly schedule, using week ending dates only

I am trying to build a schedule based on week ending dates.  I am able to get the start date to filter in, but not the end dates.  As you can see in G4 it is repeat the job name with a start date that matches G3.  But I can't get it to repeat until the end date.

Should I change formulas? Can this one be edited to pick up end date?

Thanks

Tina 

7 Replies

  • Patrick2788's avatar
    Patrick2788
    Silver Contributor

    Tina_G1620 

    This is a 365 solution. I've set up a few dynamic items so you can add more data and it will update.

     

    =LET(
        height, ROWS(Jobs),
        width, COLUMNS(WeekOf),
        GetJobs, LAMBDA(r, c,
            LET(
                weekly_date, INDEX(WeekOf, , c),
                first_date, INDEX(Start, r),
                second_date, INDEX(End, r),
                job, INDEX(Jobs, r),
                IF(AND(weekly_date >= first_date, weekly_date <= second_date), job, "")
            )
        ),
        MAKEARRAY(height, width, GetJobs)
    )

     

    • Tina_G1620's avatar
      Tina_G1620
      Copper Contributor
      That is awesome. Glad you attached a file.
      I have a few more questions. Do you mind if I send you a file with examples?
  • peiyezhu's avatar
    peiyezhu
    Bronze Contributor
    if possible,share your file instead of screenshot.
    Maybe it is easier to figure out what you need.
    • Tina_G1620's avatar
      Tina_G1620
      Copper Contributor
      Hello,
      I sent the file directly to you.

      Thank you!

Resources