Excel SUMIF across Multiple tabs
24,025
Put the name of the desired sheets in a list and name that range; I named mine sheet
:
Then you can use the following formula:
=SUMPRODUCT(SUMIF(INDIRECT("'" & sheet & "'!$Z:$Z"),"Dogma",INDIRECT("'" & sheet & "'!AA:AA")))
For Reference:
I have three sheets exactly like this:
So you can see it is returning the correct value.
Related videos on Youtube
Author by
coblenski
Updated on September 18, 2022Comments
-
coblenski over 1 year
I have a workbook with multiple tabs with information that I'd like to aggregate about certain products.
The formula I have at the moment looks like this:
=SUMIF($Z:$Z,"Dogma",AA:AA) =SUMIF($Z:$Z,"Dogma",AB:AB) =SUMIF($Z:$Z,"Dogma",AC:AC)
etc.
I tried doing something like
=SUMIF('Austria:Portugal'!$Z:$Z,"Dogma",'Austria:Portugal'!AA:AA)
but that gave a #VALUE error.
Is it possible to convert my SUMIF to look across all tabs? I'm hoping to avoid replicating the table across all tabs and doing a SUM on the aggregate tab?
Many thanks.
-
coblenski over 7 yearsThanks Scott, but that doesn't seem to be working. I'm just getting a bunch of zeroes.
-
Scott Craner over 7 yearsThen check you data. Make sure the sheets in the range are spelled exactly like they are on the tabs. Make sure the data you are looking for is exactly the same no spaces or other characters. Lastly check to make sure the values to be summed are actual numbers and not text.
-
Scott Craner over 7 years@JohnCobby see edit for validation.
-
coblenski over 7 yearsChanged formatting to numbers and bam! Thanks!!