Dynamic Formula to reference sheets

p_s

New Member
Joined
Sep 23, 2020
Messages
30
Office Version
  1. 2019
Platform
  1. Windows
  2. Mobile
  3. Web
I have 13 sheets, 1 of which is a summary sheet that references data with sumif formulas. I need to set this up for for over 100 workbooks with a similar format..

Sheet Names are Listed in Row 1 of the Summary Sheet as shown below.

Summary1-Jan2-Feb3-Mar4-Apr5-May6-Jun7-Jul8-Aug9-Sept
Category 1
Category 2
Category 3
etc.

How can I make my formulas dynamic.

Formula needed: =SUMIF('1-Jan'!$E$2:$E$900,$A2,'1-Jan'!$D$2:$D$900)

I tried using the Indirect function and it did not work. I tried it two different ways
  1. =SUMIF(INDIRECT(B$1&"!$E$2:$E$900"),$A2,INDIRECT(B$1&"!$D$2:$D$900"))
  2. =SUMIF(INDIRECT(B$1&"!$E$2"):INDIRECT(B$1&"!$E$900"),$A2,SUMIF(INDIRECT(B$1&"!$D$2"):INDIRECT(B$1&"!$D$900")))
I am not sure what I am doing wrong and how I can fix this. Please help. I have been trying to scour previous threads but I can't seem to find anything that helps. It only works if I manually do it without the cell reference to the sheet name.
 

Excel Facts

Formula for Yesterday
Name Manager, New Name. Yesterday =TODAY()-1. OK. Then, use =YESTERDAY in any cell. Tomorrow could be =TODAY()+1.
=SUMIF(INDIRECT("'"&B$1&"'!$E$2:$E$900"),$A2,INDIRECT("'"&B$1&"'!$D$2:$D$900"))

I used this formula and it seems to have worked. *fingers crossed*
 
Upvote 0
Solution
How about
Excel Formula:
=SUMIF(INDIRECT("'"&B$1&"'!$E$2:$E$900"),$A2,INDIRECT("'"&B$1&"'!$D$2:$D$900"))
 
Upvote 0

Forum statistics

Threads
1,224,828
Messages
6,181,209
Members
453,022
Latest member
RobertV1609

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