Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Jeff
 
Posts: n/a
Default Sum rows if two columns = specific criteria.

I would like to set up a formula that will allow me to sum a column if the
row meets two criteria.



A B C D
1 Apple WA Active 5
2 Pear OR Closed 6
3 Apple OR Active 2
4 cherry WA Closed 3
5 cherry ID Active 4
6 Peach ID Closed 7

example,
I would like the sum of Column D where colum B = Apple & column C = Wa
in this example that would be 5

I have been unable to figure this out using two variables.

--
Jeff
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Bob Phillips
 
Posts: n/a
Default Sum rows if two columns = specific criteria.

=SUMPRODUCT(--(A1:A100="Apple),--(B1:B100="Wa"))

Note that SUMPRODUCT doesn't work with complete columns, you have to specify
a range.

--

HTH

Bob Phillips

(remove nothere from the email address if mailing direct)

"Jeff" wrote in message
...
I would like to set up a formula that will allow me to sum a column if the
row meets two criteria.



A B C D
1 Apple WA Active 5
2 Pear OR Closed 6
3 Apple OR Active 2
4 cherry WA Closed 3
5 cherry ID Active 4
6 Peach ID Closed 7

example,
I would like the sum of Column D where colum B = Apple & column C = Wa
in this example that would be 5

I have been unable to figure this out using two variables.

--
Jeff



  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Ashish Mathur
 
Posts: n/a
Default Sum rows if two columns = specific criteria.

Hi,

You may also try the following array formula (Ctrl+Shift+Enter):

=sum(if((rangeA="Apple")*(rangeB="WA"),rangeD))

Regards,

"Jeff" wrote:

I would like to set up a formula that will allow me to sum a column if the
row meets two criteria.



A B C D
1 Apple WA Active 5
2 Pear OR Closed 6
3 Apple OR Active 2
4 cherry WA Closed 3
5 cherry ID Active 4
6 Peach ID Closed 7

example,
I would like the sum of Column D where colum B = Apple & column C = Wa
in this example that would be 5

I have been unable to figure this out using two variables.

--
Jeff

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
Insert rows based on specific value bob Excel Worksheet Functions 6 February 29th 08 07:11 PM
How to swap rows and columns? [email protected] Excel Discussion (Misc queries) 5 September 21st 05 08:07 AM
Hiding of rows and columns srinivasan Excel Discussion (Misc queries) 1 July 21st 05 08:59 AM
averaging specific rows in multiple arrays GJR3599 Excel Worksheet Functions 2 March 3rd 05 12:24 PM
Display specific rows from table on other worksheet Bruno G. Excel Discussion (Misc queries) 2 January 20th 05 11:22 PM


All times are GMT +1. The time now is 11:07 AM.

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"