Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

sum question in excel 1

Status
Not open for further replies.

mimi2

Technical User
Apr 2, 2002
407
CA
Hello,
Is there a way to sum columns by year ?

these are my columns

year month frequency
2002 1 2
2002 1 1
2001 3 1
2001 12 3

i need to sum the frequency column by year. For example for 2001---> 4
2002---> 3

how can i do that ?
Thanks a lot
 
Thanks.
i was looking for some sort of code to write but i did it as you said with the wizard.
i would like to learn to do that.
 
You could also use SUMIF. At the end of your table of data, use the formula

=SUMIF($A$1:$A$20,2001,$C$1:$C$20)

Where your 'year' data is in column A, and frequency is in column C.

This will then total all the frequency items that appear in a row with 2001. Copy the formula for each other year you're interested in.

To make it neater, instead of typing '2001' in the above formula, type 2001 (2002, 2003 etc) in cells, and reference the cells in your formula.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top