Jul 19 2022 08:56 PM
When I use the # construct to utilize realized spilled output as input into SUMIF it works, but if I use the same data calculated in LET it does not. I assume this means the realized spill is one type of data and the result of the formula that generated the spilled data is a different type of data. Is that true? What is the difference? Here is an example.
Jul 20 2022 01:40 AM
SolutionIn this part
SUMIFS(values,names,C17#)
you try to use array (values) as sum range. SUMIFS works only with ranges here, not arrays.
Jul 20 2022 01:54 AM
As variant that could be
=LET(
names, UNIQUE(C3:C6),
namesWithYes, FILTER(C3:C6, E3:E6="yes"),
valuesWithYes, FILTER(D3:D6, E3:E6="yes"),
totals, MMULT(--(names=TRANSPOSE(namesWithYes) ), valuesWithYes),
IF( {1,0}, names, totals )
)
Jul 20 2022 07:05 AM
Jul 20 2022 10:19 AM
@boukasa , glad to help
Jul 20 2022 01:40 AM
SolutionIn this part
SUMIFS(values,names,C17#)
you try to use array (values) as sum range. SUMIFS works only with ranges here, not arrays.