Automatically Sum by Category

C Barrett

New Member
Joined
Jul 14, 2016
Messages
13
Quick Rundown:
I have a Purchase Order template into which I type Product Codes. The template uses lots of lookup functions to populate the rest of the fields such as Item Description, Vendor, Price, Item Number, Type, etc. from an equipment database. It also automatically sums all prices in the template before I send it off for approval.

The Problem:
I now want to break down that total into Type (i.e. New Equipment, Supplies, Warehouse, Repair Parts) to have a better representation of costs. I have already updated my database with every item's category, and added a lookup function to pull each item's category into the purchase order.

To achieve the categorized totals, I am manually sorting the template by Category, and creating sum functions, then copying and special pasting the sum values so I can re-sort the template by Vendor for easier ordering.

I'm looking for any way to automate those category totals.
 

Excel Facts

Control Word Wrap
Press Alt+Enter to move to a new row in a cell. Lets you control where the words wrap.
not sure of your layout - but would a SUMIF() help sum by category ?
 
Upvote 0
Thank you for the quick reply! SUMIF works perfectly.

Column A: Category
Column B: Price

Equipment Total =SUMIF(A:A,"Equipment",B:B)

And then just tailor that formula to each category and the actual cell ranges.

Works perfectly, thanks again.
 
Upvote 0

Forum statistics

Threads
1,215,786
Messages
6,126,891
Members
449,347
Latest member
Macro_learner

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