Sumif(s) based on Vertical and Horizontal Criteria

lynxbci

Board Regular
Joined
Sep 22, 2004
Messages
201
Office Version
  1. 365
Platform
  1. Windows
  2. MacOS
Hi,
I have a table with
Column A - Suppliers
Columns B to M products with a product group (in row 1)

Prod Group..Core.......Core........Outer........Inner.........Core
Supplier......Type A......Type B.......Type A........Type B.......Type C
AB Ltd........1000.........2000..........500.............750...........5000
CD Ltd........3000.........5000..........100.............950...........8000
AB Ltd........2000.........4000..........600..............800..........7000

I would like to know how to sumif when for eg supplier is "AB Ltd" and the product type is "Core" in this eg = 21,000
(sorry didn't know how to paste a table)

Thanks in advance
 

Excel Facts

Can you AutoAverage in Excel?
There is a drop-down next to the AutoSum symbol. Open the drop-down to choose AVERAGE, COUNT, MAX, or MIN
Like this?

Excel Workbook
ABCDEFGHI
1Prod GroupCoreCoreOuterInnerCoreSupplierAB Ltd
2SupplierType AType BType AType BType CProd GroupCore
3AB Ltd100020005007505000Sum21000
4CD Ltd300050001009508000
5AB Ltd200040006008007000
Sum



See my signature block for several ways to post small screen shots.
 
Upvote 0
Of course, good old sumproduct, thanks so much i was over complicating and took myself down some dead ends.

thanks again
 
Upvote 0
Alternatively, you could use Autofilter to select your criteria and then use the SUBTOTAL function to sum the visible data in column "Core".
 
Upvote 0
Alternatively, you could use Autofilter to select your criteria and then use the SUBTOTAL function to sum the visible data in column "Core".
But note there are 3 'Core' columns that need to be combined into the sum.
 
Upvote 0
This formula does wonders for me. Been trying all the hlookup and vlookups and multiple IF loops. How does the formula execute, what exactly happens inside the formula?
 
Upvote 0
Thanks MrExcel MVP, AlphaFrog & Robert (Bob)...this was something new for me. Never imagined the use of sumproduct in the this fashion. Hatsoff to you guys.
 
Upvote 0

Forum statistics

Threads
1,224,592
Messages
6,179,777
Members
452,942
Latest member
VijayNewtoExcel

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