![]() |
How to add only certain rows in a spreadsheet
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? |
=SUMIF(A:A,"home",B:B)
Beware, "home" etc must always be spelled the same........... Vaya con Dios, Chuck, CABGx3 "Penny Pincher" <Penny Pincher @discussions.microsoft.com wrote in message ... 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? |
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! ============================================== "Penny Pincher" <Penny Pincher @discussions.microsoft.com wrote in message ... 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? |
All times are GMT +1. The time now is 08:14 PM. |
Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com