Calculate Total using specific values is list of mulitple items

mrs.scott

New Member
Joined
Nov 28, 2012
Messages
3
I am pretty sure this is an easy question but I have no idea how to create the formula that I need. Please help!

I have an excel workbook that has multiple inventory items on it. Certain items are being marked to "keep", "sale", or "scrap".

At the top of the sheet I have a total row. I need for this row to show the true total quantity of all keep, sale and scrap items.

So my total row wold look something like this:

A1 Keep (B1) XXXXXXXX
A2 Sale (B2) XXXXXXXX
A3 Scrap (B3) XXXXXXXX

So I need a formula that looks at my data and sees in column C5 that I have "scrap" in that column and then for it to look in column B5 to get the quantity of each row. And then add all of the quantites for all "scrap" items together and return that one value to my summary column at the top.

A5 B5 C5
Item # Qty Action (Scrap, Keep, Sale)
1 100 Scrap
2 50 Keep
3 60 Scrap

Please help if possible!


Thanks!!
 

Excel Facts

Excel Joke
Why can't spreadsheets drive cars? They crash too often!
Scrap??? Formula to calculate Scrap Only
Sale??? Formula to calculate Sale Only
Keep??? Formula to calculate Keep Only
Item NumberQtyAction
123100Keep
45650Scrap
78960Sale
32180Scrap
65410Keep

<tbody>
</tbody>
 
Upvote 0
Welcome to the Board!

You can use SUMIF:


Excel 2010
ABC
1Scrap130
2Sale60
3Keep110
4
5Item NumberQtyAction
6123100Keep
745650Scrap
878960Sale
932180Scrap
1065410Keep
Sheet1
Cell Formulas
RangeFormula
B1=SUMIF($C$6:$C$10,A1,$B$6:$B$10)
B2=SUMIF($C$6:$C$10,A2,$B$6:$B$10)
B3=SUMIF($C$6:$C$10,A3,$B$6:$B$10)


HTH,
 
Upvote 0

Forum statistics

Threads
1,216,614
Messages
6,131,739
Members
449,668
Latest member
michaeljamesellis

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