I have data from different quarters (Q1 to Q4) and a sumifs formula that takes the selected quarter as a parameter. What if I want to sum data from the entire year (all 4 quarters)?
I can do an if statement nesting a sumifs if a quarter is selected or a sumif if Yr2021 is selected but is there a more elegant formula to toggle between the two?
Edit: thousands of rows, quarter in column M. Drop down with 5 options, 4 quarters and 2021. Current formula is a sumifs accounting for quarter. When user selects year option, formula returns 0 because column M is labeled Q1 to Q4.
=SuMPRODUCT(SUMIFS(Area,rng,{"Q1","Q2",...}))- Scott Craner