A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Excel » General Discussion
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

summing two columns of different data



 
 
Thread Tools Display Modes
  #1  
Old May 24th, 2010, 07:11 PM posted to microsoft.public.excel.misc
Dick Scoppettone
external usenet poster
 
Posts: 3
Default summing two columns of different data

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?

--
Dick Scoppettone
  #2  
Old May 24th, 2010, 07:37 PM posted to microsoft.public.excel.misc
Luke M[_4_]
external usenet poster
 
Posts: 451
Default summing two columns of different data

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

--
Best Regards,

Luke M
"Dick Scoppettone" (donotspam) wrote in message
...
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?

--
Dick Scoppettone



  #3  
Old May 24th, 2010, 07:45 PM posted to microsoft.public.excel.misc
Teethless mama
external usenet poster
 
Posts: 3,722
Default summing two columns of different data

Take a look SUMIF() in help menu


"Dick Scoppettone" wrote:

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?

--
Dick Scoppettone

  #4  
Old May 25th, 2010, 08:00 PM posted to microsoft.public.excel.misc
Dick Scoppettone
external usenet poster
 
Posts: 3
Default summing two columns of different data

Thanks, Luke - works like a charm!!!
--
Dick Scoppettone


"Luke M" wrote:

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

--
Best Regards,

Luke M
"Dick Scoppettone" (donotspam) wrote in message
...
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?

--
Dick Scoppettone



.

  #5  
Old May 25th, 2010, 08:02 PM posted to microsoft.public.excel.misc
Dick Scoppettone
external usenet poster
 
Posts: 3
Default summing two columns of different data

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


"Teethless mama" wrote:

Take a look SUMIF() in help menu


"Dick Scoppettone" wrote:

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?

--
Dick Scoppettone

 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 04:18 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.