SUM Across Multiple Sheets with Reference Cell

johnny923

New Member
Joined
Jul 27, 2022
Messages
2
Office Version
  1. 2021
Platform
  1. Windows
Trying to sum across multiple sheets with the ability to include (Y) or exclude (N) certain data sets. I think it's a SUMIF but can't quite get the formula to work so that I can reference the Y or N cells.

I tried searching for a solution but didn't see one.

Thank you!
 

Attachments

  • Capture 8.PNG
    Capture 8.PNG
    24.1 KB · Views: 10
  • Capture 9.PNG
    Capture 9.PNG
    23.4 KB · Views: 10

Excel Facts

How to change case of text in Excel?
Use =UPPER() for upper case, =LOWER() for lower case, and =PROPER() for proper case. PROPER won't capitalize second c in Mccartney
Formula below is based on information from this page: How to Use the SUMIF Function Across Multiple Sheets | Excelchat

As long as your tables are laid out the same across all sheets, this formula in Summary!B3 (filled across and down) may work. You should also create the named range (a list of your worksheet names) in a range of cells on one of the sheets (or in a new sheet strictly for that purpose). In my formula below, I named it Regions, same as in the website's example.

=SUMPRODUCT(SUMIF(INDIRECT("'"&Regions&"'!"&CHAR(COLUMN()+64)&"$1"),"Y",INDIRECT("'"&Regions&"'!"&CHAR(COLUMN()+64)&ROW(B3))))
 
Upvote 0
Sure thing.

Note the 'CHAR(COLUMN()+64) references are to convert the column # into a letter. CHAR(65) = A, CHAR(90) = Z, so if you enter CHAR(COLUMN()+64) into B3, it calculates as
CHAR(COLUMN(B3)+64)
CHAR(2+64)
CHAR(66) = B
 
Upvote 0

Forum statistics

Threads
1,217,423
Messages
6,136,547
Members
450,020
Latest member
ddobrzynski

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