#1   Report Post  
Posted to microsoft.public.excel.misc
Florence
 
Posts: n/a
Default Formula

I'd like to get the sum of a range of cells when two conditions from two
different columns are met.

i.e: if w3:w28=2, and X3:w28=56000, then sum of those cells that are meeting
the two previous conditions.

I have this formula: =IF(AND($W$3:$W$28=2,$X$3:$X$28=56000),SUM(R3:R28) )
which gives me the sum of all the cells from r3 to r28. I'd just want the sum
of the cell that meet the two previous conditions. Does this make sense? can
someone help?
  #2   Report Post  
Posted to microsoft.public.excel.misc
neopolitan
 
Posts: n/a
Default Formula


I'm not quite sure what condition you want the cells in col X and Col W
to meet to have the corresponding cell in col r added to the sum.

Could you perhaps show a small example?


--
neopolitan


------------------------------------------------------------------------
neopolitan's Profile: http://www.excelforum.com/member.php...nfo&userid=611
View this thread: http://www.excelforum.com/showthread...hreadid=504917

  #3   Report Post  
Posted to microsoft.public.excel.misc
bpeltzer
 
Posts: n/a
Default Formula

=sumproduct(--(w3:w28=2),--(x3:x28=56000),(r3:r28)).
The first two arguments are arrays of 1/0 (1 indicating a match, 0 a
mismatch). So the sumproduct winds up adding those elements of R where both
columns W and X match.
HTH. --Bruce

"Florence" wrote:

I'd like to get the sum of a range of cells when two conditions from two
different columns are met.

i.e: if w3:w28=2, and X3:w28=56000, then sum of those cells that are meeting
the two previous conditions.

I have this formula: =IF(AND($W$3:$W$28=2,$X$3:$X$28=56000),SUM(R3:R28) )
which gives me the sum of all the cells from r3 to r28. I'd just want the sum
of the cell that meet the two previous conditions. Does this make sense? can
someone help?

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
2 Nesting questions Starchaser Excel Worksheet Functions 7 January 20th 06 06:53 PM
Formula Problem - interrupted by #VALUE! in other cells!? Ted Excel Worksheet Functions 17 November 25th 05 05:18 PM
Hide formula skateblade Excel Worksheet Functions 10 October 15th 05 08:36 PM
Formula checking multiple worksheets sonic-the-mouse Excel Worksheet Functions 2 June 5th 05 03:28 AM
Match / Vlookup within an Array formula Hari Prasadh Excel Discussion (Misc queries) 3 February 3rd 05 04:37 PM


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