sum if across multiple sheets

paullie d

New Member
Joined
Mar 24, 2002
Messages
2
I have an array formula that I want to work over multiple sheets but the following formula doesn't work. Am I misstating how excel looks at multiple sheets? I want to look down the same column (A5 to A80) across multiple sheets (sheet names are 1,2,3,4,5,6,7,8,9,10,11,12,13). If the number is 99 in A5 to A80, sum H5:H80 across the 13 sheets and give me the result. Here's the incorrect array formula:
{=SUM(IF('1:13'!A5:A80=99,'1:13'!H5:H80,""))}
 

Excel Facts

Format cells as time
Select range and press Ctrl+Shift+2 to format cells as time. (Shift 2 is the @ sign).
On 2002-03-25 15:29, paullie d wrote:
On 2002-03-25 15:26, Aladin Akyurek wrote:
3-D references cannot be used in array formulas.
Then how can I set this up to work?

One way:

In the main sheet, enter sheet names 1, 2, etc in A from A2 on.

In B1 enter: 99 [ your condition/criterion ]

In B2 enter and copy down as far as needed:

=SUMIF(INDIRECT(A2&"!A5:A80"),B6,INDIRECT(A2&"!H5:H80"))

Then apply SUM from B2 to the last cell in B.

Note. There is a recent thread in which a macro has been described, which can list all the sheet names in your WB in the desired range.

Aladin
 
Upvote 0

Forum statistics

Threads
1,214,429
Messages
6,119,424
Members
448,896
Latest member
MadMarty

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