SUMIF

  • Thread starter jeremy via OfficeKB.com
  • Start date
J

jeremy via OfficeKB.com

I'm trying to sum column two, if column one
meets condition....

weeks tons
2 6.8
6 23.7
7 28.6
4 36.2
8 24.2
8 24.2
6 26.4
6 12.2
2 23.5

IF column 1 =2, sum column 2......
 
R

RagDyer

You can "hard code" the "2" into the formula itself:

=SUMIF(A2:A10,2,B2:B10)

OR
You could assign a cell to contain the number to match, so that you could
easily change it without having to change the formula itself:

=SUMIF(A2:A10,C1,B2:B10)

With C1 designated as the cell to contain the number to match.
--
HTH,

RD
==============================================
Please keep all correspondence within the Group, so all may benefit!
==============================================
 

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

Top