SUMIFS for a 2-Dimensional Array

Hi there,

I've got a sheet [Sheet A] that needs to summarize another sheet [Sheet B], where each row on Sheet A needs to reflect a column on Sheet B. I can do this very easily with a SUMIFS function.

e.g. Sheet A Row1 =SUMIFS({Sheet B column 3}, {Sheet B column 1}, "example", {Sheet B column 2}, true).

The issue with this setup is that I then have to define a new range reference for every single row [{Sheet B column 4} for Sheet A Row2, {Sheet B column 5} for Sheet A Row3, etc]. I'd much rather have a single reference [{Sheet B columns 1-X}] and just offset/column_index to the column I need. Any ideas on how to do that?

I don't think Smartsheets has any kind of offset() function like in Excel/Google Sheets. I don't think a VLOOKUP() or INDEX() can be used to return a range of values, either. That just leaves COLLECT(), which is optimized for checking columns vertically, not rows horizontally. The literature on COLLECT() doesn't make reference to 2-dimensional arrays anywhere.

I've somehow avoided having to build a solution like this for years now, so I'm a bit befuddled. I figured I'd ask the class before I start experimenting with COLLECT() by trial and error. Any insights y'all can offer?

Answers

Help Article Resources

Want to practice working with formulas directly in Smartsheet?

Check out the Formula Handbook template!