Forum Discussion

8 Replies

  • FikturFox's avatar
    FikturFox
    Brass Contributor

    CatherineMadden 

    You may try this as well.

    =LET(opRange, $G:$G, opNum, $P4, pMonth, U$3,
    data, OFFSET(OFFSET($B$1,MATCH(opNum,opRange,0)-1,0),6,0,24,13),
    cData, VSTACK(CHOOSECOLS(data,{1,2,3}),CHOOSECOLS(data,{8,9,10})),
    INDEX(cData,XMATCH(pMonth,INDEX(cData,,1))+7,COLUMN(B1)))

     

  • Patrick2788's avatar
    Patrick2788
    Silver Contributor

    CatherineMadden 

     

    I created a Lambda called 'TotalPoints' to obtain the totals. There's a bit of moving heaven and earth because of the data arrangement but here it is:

     

    =LAMBDA(Points_Array,Week_array,OP,month,LET(
        F, FILTER(
            Points_Array,
            (arrOPID = OP) * (TEXT(Week_array, "mmmm") = month) * (IFERROR(YEAR(Week_array), 0) = 2023)
        ),
        IFERROR(SUM(F), 0)
    ))

     

     

    arrOPID was created to run parallel with the defined items to identify the rows:

    =SCAN("", OPID, LAMBDA(a, v, IF(OR(v < 100, ISTEXT(v)), a, v

     

     

  • CatherineMadden 

    This is complicated. Would it be OK to move the December to February data below the September to November data, instead of being to the right of them?

    • CatherineMadden's avatar
      CatherineMadden
      Brass Contributor
      unfortunately, no, everything has to stay where it is. I was hoping it would work if we did like an XLOOKUP paired with the return value be from a V or H Lookup?

Resources