Question:
Sum values in an excel spreadsheet based on neighboring cell's name?
?
2010-01-10 10:07:43 UTC
I have a spreadsheet that has 3 columns, example:
ID / Value / Category
McDonald's / -4.56 / Dining
Meijer / -65 / Grocery

I have several different categories that I'd like to sum. Is there any easy way to sum a set of values based on the name of the Category cell next to it?

I don't want to filter and manually sum a range of cells because this spreadsheet gets values added to it monthly so I need an easy way to keep a running total.

Thanks!
Five answers:
Don R
2010-01-10 20:40:51 UTC
It sounds like you want to know how much you spend on "dining", "grocery", etc..

You will have to add a column for each category you want to track. In your example you are tracking "dining" and "grocery" so you can add 2 columns (I'll use D and E). I will also assume you use cols. A, B, C starting in row 2 for the above entries.



Put the following in col. D: =if(C2="Dining",B2,"")

Put the following in col. E: =if(c2="grocery",b2,"")



You can title col D - Dining and col E - grocery.

If you have other categories you can add cols and titles as required.



You can keep a sum of activity by using the formula =sum(use each column here)
?
2016-08-09 23:15:16 UTC
2
anonymous
2016-04-15 07:10:10 UTC
Assume that the cell you wish to conditionally format is A1, and format A1 only if A1 is not blank and between 5 and 10. Use this formula as your 'Formula Is' (Excel 2003) or New Rule > Use a formula to determine which cells to format' (Excel 2007/2010) for cell A1 conditional format: =AND(A1<>"",A1>=5,A1<=10)



For the best answers, search on this site https://smarturl.im/aDKOx
Dorolisa
2014-10-02 18:58:16 UTC
Discover the best site Reverse Phone Lookup ( http://reversephones.info ) Find out the owner of any cell phone or unlisted number. Results include name, address, carrier, and other details when available. Your search is confidential This free cell phone number tracer will give you owner information about a phone number for free. Search for a cell phone number today to begin your free trace! Reverse Phone Lookup area gives you additional access to millions of public records, including: -Unlimited reverse phone lookups (for landline and listed numbers) -Unlimited people search (for addresses, household members, and phone numbers) -Discounted criminal record searches and background reports -And more... Discover Right Now ( http://reversephones.info )
Bob
2010-01-10 10:20:14 UTC
Something like "=SUMIF(´range of cells of category column´,"(type of category i.e)Dining",´range of cells with value´)



The ´type of category´ in the expression needs "quotation marks" I think...



Don´t have excel to check that this is spot-on but should be simple.

Good luck...


This content was originally posted on Y! Answers, a Q&A website that shut down in 2021.
Loading...