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:

enter image description here

Then you can use the following formula:

=SUMPRODUCT(SUMIF(INDIRECT("'" & sheet & "'!$Z:$Z"),"Dogma",INDIRECT("'" & sheet & "'!AA:AA")))

enter image description here


For Reference:

I have three sheets exactly like this:

So you can see it is returning the correct value.

enter image description here

Share:
24,025

Related videos on Youtube

coblenski
Author by

coblenski

Updated on September 18, 2022

Comments

  • coblenski
    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
    coblenski over 7 years
    Thanks Scott, but that doesn't seem to be working. I'm just getting a bunch of zeroes.
  • Scott Craner
    Scott Craner over 7 years
    Then 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
    Scott Craner over 7 years
    @JohnCobby see edit for validation.
  • coblenski
    coblenski over 7 years
    Changed formatting to numbers and bam! Thanks!!