sumif multiple sheets

fuzzymonkey

New Member
Joined
Feb 8, 2006
Messages
33
I have a large number of worksheets in a workbook (but to keep this simple say I have sheet1, sheet2 and sheet3)

In one column (say column A) I have a product code (e.g. A123), and in column B I have the number of items. On all of my worksheets the data is in the first 1000 rows.

I am trying to do something like a sumif to sum all of the number of items across all of the worksheets for a specific product code (i.e. I need to know the total number of product A123 that appears on all the worksheets). SUM allows me to do a 3D referance, but not SUMIF.
 

Excel Facts

What did Pito Salas invent?
Pito Salas, working for Lotus, popularized what would become to be pivot tables. It was released as Lotus Improv in 1989.
Hello, Try
Enter your all sheet names in a range, let's say C2:C4 on Summary Tab

Summary tab A2 contains the Product Code

B2, copy down..

=SUMPRODUCT(SUMIF(INDIRECT("'"&$C$2:$C$4&"'!A:A"),A2,INDIRECT("'"&$C$2:$C$4&"'!B:B")))
 
Upvote 0

Forum statistics

Threads
1,224,590
Messages
6,179,763
Members
452,940
Latest member
rootytrip

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