Sum Quantities Based on 3 Columns

tineyerin

New Member
Joined
Nov 11, 2015
Messages
2
I am trying to sum an inventory report which has the same product in different locations. The product is listed by product name and color.

Column A = Brand Name
Column B = Color
Column C = Quantity

Ex.
Brand A Red 5
Brand A Red 7
Brand A White 8
Brand A Green 9
Brand B Red 4
Brand B Red 2
Brand B Red 9

Is there a way to sum if Column A and B are the same in rows 1 and 2, so on and so forth?

Thanks!
 

Excel Facts

Copy formula down without changing references
If you have =SUM(F2:F49) in F50; type Alt+' in F51 to copy =SUM(F2:F49) to F51, leaving the formula in edit mode. Change SUM to COUNT.
[TABLE="class: grid, width: 500"]
<tbody>[TR]
[TD]Brand
[/TD]
[TD]Color
[/TD]
[TD]qty
[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]a
[/TD]
[TD]red
[/TD]
[TD]5
[/TD]
[TD][/TD]
[TD]a[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]a
[/TD]
[TD]red
[/TD]
[TD]7
[/TD]
[TD][/TD]
[TD]red
[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]a
[/TD]
[TD]white
[/TD]
[TD]8
[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]a
[/TD]
[TD]green
[/TD]
[TD]9
[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]b
[/TD]
[TD]red
[/TD]
[TD]4
[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]b
[/TD]
[TD]red
[/TD]
[TD]2
[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]b
[/TD]
[TD]red
[/TD]
[TD]9
[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
Given this:
Code:
=SUMIFS(C2:C8,A2:A8,E2,B2:B8,E3)
 
Upvote 0
Since this is an inventory report with numerous brands and colors, this is a bit impractical.

Since I'm sorting alphabetically by column A and then column B, is there a way to sum when the values in column A change and then when the value in column B changes?
 
Upvote 0

Forum statistics

Threads
1,223,236
Messages
6,170,912
Members
452,366
Latest member
TePunaBloke

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