Forum Discussion

anshul_marele's avatar
anshul_marele
Copper Contributor
Jun 28, 2024

BYCOL & BYROW

Hi,

 

Below formula throwing #Calc error:

BYCOL(C3#,LAMBDA(ColHdrs_1,
BYROW(B4#,LAMBDA(RowHdrs_1,
IFERROR(COUNTA(UNIQUE(FILTER($K$3:$K$25,($I$3:$I$25=RowHdrs_1)*($J$3:$J$25=ColHdrs_1)))),0)))))

 

Need one array formula.

Sheet

      • SergeiBaklan's avatar
        SergeiBaklan
        MVP

        anshul_marele 

        So far Excel doesn't support nested arrays natively. Google Sheets supports.

        As a comment, you use formula like IFERROR( COUNTA( UNIQUE(...

        If UNIQUE returns an error, COUNTA gives 1. It counts all values, includes errors. Thus IFERROR never works here.

         

        As variant that could be IFERROR( ROWS( UNIQUE(... which with gives 0 in case of error.

Resources