Forum Discussion

CS1999's avatar
CS1999
Copper Contributor
Dec 27, 2022
Solved

Filter rows from multiple column data

I currently have 5 columns with names I.E A, B, C, D, E and I want to be able to return the sum of the data (F1:AE23) for when those 5 names are duplicated. However, they may be in a different order ...
  • OliverScheurich's avatar
    Dec 27, 2022

    CS1999 

    =BYROW(A1:E23,LAMBDA(x,IF(TEXTJOIN("",,TRANSPOSE(SORTBY(TRANSPOSE(x),TRANSPOSE(x))))="ABCDE",SUM(OFFSET(x,0,5,1,26)),"")))

     

    An alternative could be this formula which is easier to adapt if you want to check if e.g. A to Z occur in the first 26 columns in any order.

Resources