Forum Discussion

Damian510's avatar
Damian510
Copper Contributor
Sep 14, 2023
Solved

Splitting Budget Hours per Workstream by Month

Hi,   I'm really struggling with this one:   I have 2 tables, one for the budget per workstream, the other for total chargeable hours per month.   If the workstream has a YES, that means its ch...
  • Patrick2788's avatar
    Sep 14, 2023

    Damian510 

    I'm not completely clear on how you want to handle the allocation but here's a start:

     

    =LET(
        cols, ROWS(Workstreams),
        matrix, SWITCH(Workstreams, "Yes", 1, 0),
        multiplier, SEQUENCE(, cols, 1, 0),
        monthly_totals, MMULT(multiplier, matrix),
        Allocated, TotalHours / monthly_totals,
        Allocated * matrix
    )

     

Resources