Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 32
Default Sum only specified values

Column A Column B
Joe 100
John 300
Bob 200
George 500
John 300
Bob 250
John 125

How do I get the sum of all entries for John in a cell in Column C?


  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 15,768
Default Sum only specified values

Try this:

=SUMIF(A1:A7,"John",B1:B7)

Or, use a cell to hold the criteria:

D1 = John

=SUMIF(A1:A7,D1,B1:B7)


--
Biff
Microsoft Excel MVP


"Bob" wrote in message
...
Column A Column B
Joe 100
John 300
Bob 200
George 500
John 300
Bob 250 John 125

How do I get the sum of all entries for John in a cell in Column C?




  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 32
Default Sum only specified values

Thanks, that did it!

"T. Valko" wrote in message
...
Try this:

=SUMIF(A1:A7,"John",B1:B7)

Or, use a cell to hold the criteria:

D1 = John

=SUMIF(A1:A7,D1,B1:B7)


--
Biff
Microsoft Excel MVP


"Bob" wrote in message
...
Column A Column B
Joe 100
John 300
Bob 200
George 500
John 300
Bob 250 John 125

How do I get the sum of all entries for John in a cell in Column C?





  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 15,768
Default Sum only specified values

You're welcome!

--
Biff
Microsoft Excel MVP


"Bob" wrote in message
...
Thanks, that did it!

"T. Valko" wrote in message
...
Try this:

=SUMIF(A1:A7,"John",B1:B7)

Or, use a cell to hold the criteria:

D1 = John

=SUMIF(A1:A7,D1,B1:B7)


--
Biff
Microsoft Excel MVP


"Bob" wrote in message
...
Column A Column B
Joe 100
John 300
Bob 200
George 500
John 300
Bob 250 John 125

How do I get the sum of all entries for John in a cell in Column C?







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
Exclude #N/A values and Return Numeric values to consecutive cells in Single Row Sam via OfficeKB.com Excel Worksheet Functions 5 February 9th 08 03:07 AM
Finding Most Recent Values in Col1 -- Summing Matching Values Rothman Excel Discussion (Misc queries) 5 December 20th 07 08:19 PM
Adding numerical values based on multiple values in another column Kazmaniac Excel Worksheet Functions 6 April 4th 07 08:53 PM
Advanced Filter for Values in Column M greater than Values in Colu SteveC Excel Discussion (Misc queries) 3 May 2nd 06 07:55 PM
Excel Compare values in columns & display missing values in a new cpetta Excel Discussion (Misc queries) 1 April 2nd 05 05:51 AM


All times are GMT +1. The time now is 03:52 PM.

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

About Us

"It's about Microsoft Excel"