I have a table of data where I'm trying to use the SUMIFS formula. Rather than designating a specific column as the sum range, I want the formula to return the sum range based on which column has a specific header.
I've created the table below as an example. I'd want to use a SUMIFS formula where it finds the column with the header "Mouse" and uses that as the sum array, then uses Date as the criteria range (which doesn't need to be dynamic, this I can just select as fixed). I'd then have one of the dates as the criteria.
I've tried match formulas to get the Column number but don't know how to integrate this into a larger SUMIFS formula to reference the sum array. I even then converted the column number into the letters of the column, and tried to create that into the text for the formula, but couldn't get it to work.
Going crazy with this one. Thank you

You could try one of the followings:
• Using
SUMIFS()withXLOOKUP()for thesum_range• Using
SUMIF()withINDEX()+MATCH()/XMATCH()for thesum_range• Or, what I see
SUMPRODUCT()orSUM()MS365 is suffice for the requirements.