SUM with INDIRECT and range named

jocker_boy

Board Regular
Joined
Feb 5, 2015
Messages
83
Hello,

I have this formula in cell L5 in Sheet1:
=SUM('WBS 1:WB3 2'!T5)

I also define this name: "_WBS" that have all this 3 sheets names:
WBS1;WBS2;WBS3

I would like to replace the formula for something like this:

=SUM(INDIRECT(INDIRECT("'"&_WBS&"'!T5"))

But don't work.

Then i try this:
=SUMPRODUCT(SUMIF(INDIRECT("'"&_WBS&"'!T5");"<>0"))

And it works.
But i need to drag from cell L5 to cell L50 and i need to be dynamic:

L5=SUMPRODUCT(SUMIF(INDIRECT("'"&_WBS&"'!T5");"<>0"))
L6=SUMPRODUCT(SUMIF(INDIRECT("'"&_WBS&"'!T6");"<>0"))
L7=SUMPRODUCT(SUMIF(INDIRECT("'"&_WBS&"'!T7");"<>0"))
....
L50=SUMPRODUCT(SUMIF(INDIRECT("'"&_WBS&"'!T50");"<>0"))

How can i do this?

Thanks,
Gonçalo
 

Excel Facts

Did you know Excel offers Filter by Selection?
Add the AutoFilter icon to the Quick Access Toolbar. Select a cell containing Apple, click AutoFilter, and you will get all rows with Apple
Excel Formula:
L==SUMPRODUCT(SUMIF(INDIRECT("'"&_WBS&"'!" &T5);"<>0"))
 
Upvote 0
Try:

Excel Formula:
=SUMPRODUCT(SUMIF(INDIRECT("'"&_WBS&"'!T"&ROW());"<>0"))
 
Upvote 0
Solution
Glad we could help. :)
 
Upvote 0

Forum statistics

Threads
1,214,590
Messages
6,120,421
Members
448,961
Latest member
nzskater

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