#1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3
Default How To Sum Rows

Suppose I have rows 1 to 10 and columns A to E. I want to add up all the
values in Columns A but only when the value of column B = criteriaB and value
of column C = criteriaC. How do I do this?

  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8,520
Default How To Sum Rows

When you have move than 1 criterias; use SUMPRODUCT(). With criteria1 in cell
F1 and criteria2 in cell F2; try the below formula

=SUMPRODUCT(--($B$1:$B$100=F1),--($C$1:$C$100=F2),$A$1:$A$100)

If this post helps click Yes
---------------
Jacob Skaria


"Boying Opaw" wrote:

Suppose I have rows 1 to 10 and columns A to E. I want to add up all the
values in Columns A but only when the value of column B = criteriaB and value
of column C = criteriaC. How do I do this?

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 913
Default How To Sum Rows

On Thu, 8 Oct 2009 19:02:01 -0700, Boying Opaw
wrote:

Suppose I have rows 1 to 10 and columns A to E. I want to add up all the
values in Columns A but only when the value of column B = criteriaB and value
of column C = criteriaC. How do I do this?



Try this formula:

=SUMPRODUCT((A1:A10)*(B1:B10=criteriaB)*(C1:C10=cr iteriaC))

Hope this helps / Lars-Åke
  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 15,768
Default How To Sum Rows

If you're using Excel 2007...

Use cells to hold the criteria.

G1 = criteriaB
H1 = criteriaC

=SUMIFS(A1:A10,B1:B10,G1,C1:C10,H1)

--
Biff
Microsoft Excel MVP


"Boying Opaw" wrote in message
...
Suppose I have rows 1 to 10 and columns A to E. I want to add up all the
values in Columns A but only when the value of column B = criteriaB and
value
of column C = criteriaC. How do I do this?



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
Auto extract data & inserts rows additional rows automatically Meeru Excel Discussion (Misc queries) 3 September 9th 09 01:46 PM
Counting characters in multiple rows when rows meet specific criteria news.virginmedia.com Excel Worksheet Functions 3 June 28th 08 09:03 PM
Copy rows of data (eliminating blank rows) from fixed layout Sweepea Excel Discussion (Misc queries) 1 March 13th 07 11:05 PM
Excel 2003 -Rows hidden. Scrolling unhides rows ! How do I stop th Excellent1975 Excel Discussion (Misc queries) 0 June 21st 06 08:01 PM
Pivot Tables: How do I show ALL field rows, including empty rows?? [email protected] Excel Worksheet Functions 2 April 8th 05 06:21 PM


All times are GMT +1. The time now is 11:50 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"