ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   Look up and total (https://www.excelbanter.com/excel-discussion-misc-queries/98304-look-up-total.html)

[email protected]

Look up and total
 
I am putting together a budget sheet for a friend, I would like to
combine the budget template from MS's website and the Check book ledger
template. I have added a category column to the ledger sheet. I want to
budget sheet to search for these categories and bring back a total.
Say, they have 3 entries for groceries, I want the budget sheet to
total these three entries.

How do I write a formula that totals all the lines that say groceries
in it. I have too many categories for a large if statment.

Thanks for the help.


Biff

Look up and total
 
Hi!

Try this:

=SUMIF(A1:A10,"groceries",B1:B10)

If A1:A10 contains the entry: groceries, the corresponding cell(s) in B1:B10
will be summed.

You can use a cell to hold the criteria:

C1 = groceries

=SUMIF(A1:A10,C1,B1:B10)

Biff

wrote in message
oups.com...
I am putting together a budget sheet for a friend, I would like to
combine the budget template from MS's website and the Check book ledger
template. I have added a category column to the ledger sheet. I want to
budget sheet to search for these categories and bring back a total.
Say, they have 3 entries for groceries, I want the budget sheet to
total these three entries.

How do I write a formula that totals all the lines that say groceries
in it. I have too many categories for a large if statment.

Thanks for the help.





All times are GMT +1. The time now is 10:25 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com