Solved

Adding Cells based on a category in Excel

Posted on 2011-03-24
2
275 Views
Last Modified: 2012-05-11
Hi,

I have a basic excel question.  I've got a spreadsheet with two columns. One is dollar amounts and the other is category. I have 4 categories that I'm putting the dollar amounts into. For example,

Office Supplies
Meals
Advertising
Telephone

I am trying to figure out how to automatically total the dollar values for each category.  It should be something straight forward like total all dollar values in column A that have "meals" listed in column B for the same row.

The purpose here is that I have months of credit card statements that I need to go through to and break down in categories. I can get them in Excel but the charges are all mixed together and are currently not groups in any category.   If I can add a category column to that spreadsheet and then have it total them it would be a tremendous time saver as there will probably be about 25 categories for each statement and a few hundred charges for each month.  I've attached a basic sample sheet showing what I'm would like to do.

Thanks


SampleSheet.xls
0
Comment
Question by:djadambomb
2 Comments
 
LVL 33

Accepted Solution

by:
jppinto earned 500 total points
ID: 35206665
Just use a SUMPRODUCT formula like this:

=SUMPRODUCT(($B$2:$B$12=E3)*($A$2:$A$12))

Please check the attached file.

jppinto
SampleSheet.xls
0
 
LVL 50

Expert Comment

by:barry houdini
ID: 35206817
...or SUMIF....

In F3 copied down

=SUMIF(B:B,E3,A:A)

regards, barry
0

Featured Post

Live: Real-Time Solutions, Start Here

Receive instant 1:1 support from technology experts, using our real-time conversation and whiteboard interface. Your first 5 minutes are always free.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

A little background as to how I came to I design this code: Around 5 years ago I designed an add-in that formatted Excel files to a corporate standard, applying different cell colours and font type depending on whether the cells contained inputs,…
When you see single cell contains number and text, and you have to get any date out of it seems like cracking our heads.
The view will learn how to download and install SIMTOOLS and FORMLIST into Excel, how to use SIMTOOLS to generate a Monte Carlo simulation of 30 sales calls, and how to calculate the conditional probability based on the results of the Monte Carlo …
This Micro Tutorial will demonstrate how to use longer labels with horizontal bar charts instead of the vertical column chart.

813 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now