Is it possible to make a dynamic sum_range within a SUMIFS formula?
In a SUMIFS formula I have my sum_range: sheet2!5:5
Is there a way to replace that 5:5 with a formula so my sum_range will change depending on the cells referenced in the formula??
Posted Nov 17, 2017, 7:38 PM UTC
What do you mean 5:5?
Try the indirect function?
I want my sum_range to be a row from another sheet (sheet1!5:5) for example looks at row 5 from sheet1. However, ideally I want the sum_range to change dynamically so that it doesn't always return row 5, but instead returns a row depending on a formula.
Basically, I want to be able to write sheet1!(formula) for my sum_range.
That's what the indirect function does.
Sheet1 A1 = "B5:B5" for example just to take your example. Then on Sheet2 you in the formula you're trying to write you can do
and that should actually evaluate to
Perfect, it worked! thank you very much!
No worries, can you mark it as a solution?