Solved

Adding Cells based on a category in Excel

Posted on 2011-03-24
2
270 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

What Is Threat Intelligence?

Threat intelligence is often discussed, but rarely understood. Starting with a precise definition, along with clear business goals, is essential.

Join & Write a Comment

A2 = A1 That kind of cell reference is relative.  If you copy it from A2 to B2, then B2 will get this: B2 = B1 That's all fine and good, but if you then insert a new row above row 2, you'll find: A3 = A1 B3 = B1 This is intentional. …
This article descibes how to create a connection between Excel and SAP and how to move data from Excel to SAP or the other way around.
The viewer will learn how to create two correlated normally distributed random variables in Excel, use a normal distribution to simulate the return on different levels of investment in each of the two funds over a period of ten years, and, create a …
This Micro Tutorial will demonstrate how to use a scrolling table in Microsoft Excel using the INDEX function.

760 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

20 Experts available now in Live!

Get 1:1 Help Now