#1   Report Post  
jeremy via OfficeKB.com
 
Posts: n/a
Default SUMIF

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......


--
Message posted via OfficeKB.com
http://www.officekb.com/Uwe/Forums.a...l-new/200508/1
  #2   Report Post  
Chip Pearson
 
Posts: n/a
Default

Use the SUMIF function. E.g.,

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



"jeremy via OfficeKB.com" wrote in message
...
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......


--
Message posted via OfficeKB.com
http://www.officekb.com/Uwe/Forums.a...l-new/200508/1



  #3   Report Post  
RagDyer
 
Posts: n/a
Default

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!
==============================================



"jeremy via OfficeKB.com" wrote in message
...
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......


--
Message posted via OfficeKB.com
http://www.officekb.com/Uwe/Forums.a...l-new/200508/1


Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to use SUMIF to return sums between two values located in cells ScottBerger Excel Worksheet Functions 2 April 23rd 23 09:05 PM
SUMIF with Mutiple Ranges & Criteria PokerZan Excel Discussion (Misc queries) 5 August 4th 05 10:31 PM
Dynamic sumif function Jimbola Excel Worksheet Functions 5 May 4th 05 01:10 AM
SUMIF - Range name to used for the "sum_range" portion of a SUMIF function Oscar Excel Worksheet Functions 2 January 11th 05 11:01 PM
SUM(IF( Array to avoid #NUM! values Elijah Excel Worksheet Functions 7 November 21st 04 02:17 PM


All times are GMT +1. The time now is 05:44 PM.

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

About Us

"It's about Microsoft Excel"