Conditional summing across multiple sheets

Utterly Bamboozled

New Member
Joined
Jul 7, 2010
Messages
39
Hi,

I am trying to sum the same cell across multiple sheets, but want to incorporate a summing criteria. Ordinarily I would use '1:3'!C23 (for example) to sum the same cell (C23) across sheets 1 to 3.

However, say C23 on sheet 2 doesn't fit my criteria (such as cell C1 on all sheets being the name of a client), yet C23 on sheets 1 and 3 do - is it possible to use this type of formula and incorporate a criteria such that the result would be sum('1'!C23,'3'!C23)?

Thanks in advance,

UB
 

Excel Facts

Move date out one month or year
Use =EDATE(A2,1) for one month later. Use EDATE(A2,12) for one year later.
Hi,

I am trying to sum the same cell across multiple sheets, but want to incorporate a summing criteria. Ordinarily I would use '1:3'!C23 (for example) to sum the same cell (C23) across sheets 1 to 3.

However, say C23 on sheet 2 doesn't fit my criteria (such as cell C1 on all sheets being the name of a client), yet C23 on sheets 1 and 3 do - is it possible to use this type of formula and incorporate a criteria such that the result would be sum('1'!C23,'3'!C23)?

Thanks in advance,

UB

Try...

=SUMPRODUCT(SUMIF(INDIRECT("`"&SheetList"`!C1"),"IBM",INDIRECT("`"&SheetList"`!C3")))

where SheetList is a range housing the relevant sheet names.
 
Upvote 0
This works great; however, I have a table that I need to use the formula in. When I drag the formula down, the cell references do not increment. E.g., for:

=SUMPRODUCT(SUMIF(INDIRECT("`"&SheetList"`!$C$1"),"IBM",INDIRECT("`"&SheetList"`!C3")))

...even though !C3 is a relative reference, it will stay !C3 in all cells when the forumula is copied down or across. Is there a way to have Excel update this reference as relative?
 
Upvote 0
This works great; however, I have a table that I need to use the formula in. When I drag the formula down, the cell references do not increment. E.g., for:

=SUMPRODUCT(SUMIF(INDIRECT("`"&SheetList"`!$C$1"),"IBM",INDIRECT("`"&SheetList"`!C3")))

...even though !C3 is a relative reference, it will stay !C3 in all cells when the forumula is copied down or across. Is there a way to have Excel update this reference as relative?

Try...
Code:
=SUMPRODUCT(SUMIF(INDIRECT("`"&SheetList"`!$C$1"),"IBM",
     INDIRECT("`"&SheetList"`!"&CELL("address",C3))))
 
Last edited:
Upvote 0
Try...
Code:
=SUMPRODUCT(SUMIF(INDIRECT("`"&SheetList"`!$C$1"),"IBM",
     INDIRECT("`"&SheetList"`!"&CELL("address",C3))))

Excellent suggestion - using the CELL function worked! One change though... I needed to add a "&" after SheetList in both locations where it is used in the formula (I noticed I had that already in my working spreadsheet). Here is the final working formula:

Code:
=SUMPRODUCT(SUMIF(INDIRECT("`"&SheetList&"`!$C$1"),"IBM", 
     INDIRECT("`"&SheetList&"`!"&CELL("address",C3))))

Thanks Aladin! You are super helpful and made my day! I was struggling with this for a while.
 
Upvote 0
Excellent suggestion - using the CELL function worked! One change though... I needed to add a "&" after SheetList in both locations where it is used in the formula (I noticed I had that already in my working spreadsheet). Here is the final working formula:

Code:
=SUMPRODUCT(SUMIF(INDIRECT("`"&SheetList&"`!$C$1"),"IBM", 
     INDIRECT("`"&SheetList&"`!"&CELL("address",C3))))

Thanks Aladin! You are super helpful and made my day! I was struggling with this for a while.

You are welcome. Yes, another & is needed there.
 
Upvote 0
This works great; however, I have a table that I need to use the formula in. When I drag the formula down, the cell references do not increment. E.g., for:

=SUMPRODUCT(SUMIF(INDIRECT("`"&SheetList"`!$C$1"),"IBM",INDIRECT("`"&SheetList"`!C3")))

...even though !C3 is a relative reference, it will stay !C3 in all cells when the forumula is copied down or across. Is there a way to have Excel update this reference as relative?


Hi,I am new in these terms (" ' " & ) I am having the same problem that I need to add different tabs with one condition, but I cant figure what goes inside those symbols or instead of those.

Would you please explain a little more in detail this
 
Upvote 0
Hi,I am new in these terms (" ' " & ) I am having the same problem that I need to add different tabs with one condition, but I cant figure what goes inside those symbols or instead of those.

Would you please explain a little more in detail this

Would you care to describe what you need to do just using one sheet?
 
Upvote 0

Forum statistics

Threads
1,224,609
Messages
6,179,876
Members
452,949
Latest member
Dupuhini

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