Placing INDIRECT in a SUMIFS formula

Duck13

New Member
Joined
Nov 9, 2021
Messages
2
Office Version
  1. 365
Platform
  1. Windows
Hey

I'm trying to place a indirect formula, in a SUMIFIS formula. The SUMIFIS formula (SUM.HVISER), is currently drawing data from a sheet named T2_2021. I want it to draw the name from B3 instead (Which is currently named T2_2021). So in the future i can change B3 to for example T1_2022, and it will draw data from a worksheet named T1_2022.

The formula is currently as follows

=SUM.HVISER(T2_2021!$M:$M;T2_2021!$N:$N;FREMSKRIVNING!$B$7;T2_2021!$K:$K;FREMSKRIVNING!B23;T2_2021!$F:$F;FREMSKRIVNING!$A$13)

FREMSKRIVNING is simply a external worksheet, which should stay. The problem is changing T2_2021 to INDIRECT B3.
 

Excel Facts

Which Excel functions can ignore hidden rows?
The SUBTOTAL and AGGREGATE functions ignore hidden rows. AGGREGATE can also exclude error cells and more.
Replace T2_2021!$M:$M with INDIRECT("'"&$B$3&"'!$M:$M") then do the same for the other similar ranges, changing the column reference as necessary.
 
Upvote 0
Solution
It worked like a charm. If you have the time, could you explain or link to some information, regarding the logic behind?
 
Upvote 0

Forum statistics

Threads
1,214,644
Messages
6,120,709
Members
448,983
Latest member
Joaquim_Baptista

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top