How to add only certain rows in a spreadsheet

P

Penny Pincher

I want to create a budget spreadsheet to keep track of how much we are
spending in various categories. I'll enter all of our expenses for the
month. Then I want to be able to add up those catergoies individually.
Example. Assume my spreadsheet has two columns as follows:

A B
1 Home $100
2 Gas $32
3 Food $18
4 Home $29
5 Home $44
6 Gas $31
7 Food $13

What formula do I need to total all Home expenses, food expenses, etc?
 
C

CLR

=SUMIF(A:A,"home",B:B)

Beware, "home" etc must always be spelled the same...........


Vaya con Dios,
Chuck, CABGx3
 
R

RagDyer

Say you enter the category of interest into C1, then try this:

=SUMIF(A1:A25,C1,B1:B25)
--
HTH,

RD
==============================================
Please keep all correspondence within the Group, so all may benefit!
==============================================
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top