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

Create a Pivot Table on a Map
If your data has zip codes, postal codes, or city names, select the data and use Insert, 3D Map. (Found to right of chart icons).
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,215,327
Messages
6,124,290
Members
449,149
Latest member
mwdbActuary

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