summing two columns of different data

D

Dick Scoppettone

I need to sum a dollar total from two different types of columns. One column
identifies the item and another column associates a dollar amount with that
item. The items are different tree species and the dollar amounts are the
pruning costs associated with a specific tree species in a given year. For
example:

Column A Column B Column C
Species 2011 2012
Lemon tree $100
Apple tree $50
Lemon tree $150
Cherry tree $50 $50

I want to sum the total dollar amount to prune only the lemon trees in 2012.
Presently, I am using a COUNTIF to sum the total number of lemon trees, but I
need to also sum the cost of pruning just those lemon trees.

Column D Column E Column F
Trees by species Total 2012 pruning cost
Lemon trees 2 $250 (need formula to get this sum)

Using one formula, can I fill the cells in both Column E and Column F?
 
L

Luke M

=SUMIF($A:$A,"Lemon tree",B:B)
Will give you total for 2011. Copy one cell to the right to get total for
2012.
 
D

Dick Scoppettone

Thanks - your SUMIF started me in the right direction, then Luke closed the
deal.
 

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

Similar Threads


Top