PIVOTBY is great for analysis, but PivotTables still have the edge when formatting needs to adapt to data changes.
Modern Excel functions like IFS, SWITCH, XLOOKUP, SUMIFS, and LET replace most nested IF use cases.