#1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
ceemo
 
Posts: n/a
Default Sumproduct


Hi, I would like to the number of rows where the following condition is
met

(ColA="V" or "D") and (Col=3 or Col=P). The answer would be 3 (rows
5,8,10)


i would also like to know how to sum ColE which would be 695


Please help,

Row ColA ColB ColC ColD ColE
1 A C 3 P 541
2 A C 4 O 2
3 V A 2 O 2
4 D A 1 P 54
5 F D 3 J 565
6 D A 4 U 95
7 F C 2 N 36
8 F D 3 J 45
9 J A 6 O 74
10 V D 8 P 85
11 E A 7 U 25
12 T A 8 M 32


--
ceemo
------------------------------------------------------------------------
ceemo's Profile: http://www.excelforum.com/member.php...o&userid=10650
View this thread: http://www.excelforum.com/showthread...hreadid=517431

  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
davesexcel
 
Posts: n/a
Default Sumproduct


ceemo Wrote:
Hi, I would like to the number of rows where the following condition is
met

(ColA="V" or "D") and (Col=3 or Col=P). The answer would be 3 (rows
5,8,10)


i would also like to know how to sum ColE which would be 695


Please help,

Row ColA ColB ColC ColD ColE
1 A C 3 P 541
2 A C 4 O 2
3 V A 2 O 2
4 D A 1 P 54
5 F D 3 J 565
6 D A 4 U 95
7 F C 2 N 36
8 F D 3 J 45
9 J A 6 O 74
10 V D 8 P 85
11 E A 7 U 25
12 T A 8 M 32


=sum(E1:E13) I get 1556

I think you have your columns mixed up, column 10 is not 3


--
davesexcel
------------------------------------------------------------------------
davesexcel's Profile: http://www.excelforum.com/member.php...o&userid=31708
View this thread: http://www.excelforum.com/showthread...hreadid=517431

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
ceemo
 
Posts: n/a
Default Sumproduct


Yep i messed up the formula, which ive now corrected and also tyd'd up
the columns

(ColA="V" or colB"D") and (ColC=3 or ColD=P). The answer would be 3
(rows 5,8,10)


i would also like to know how to sum ColE which would be 695


Please help,

Row ColA ColB ColC ColD ColE
1 A C 3 P 541
2 A C 4 O 2
3 V A 2 O 2
4 D A 1 P 54
5 F D 3 J 565
6 D A 4 U 95
7 F C 2 N 36
8 F D 3 J 45
9 J A 6 O 74
10 V D 8 P 85
11 E A 7 U 25
12 T A 8 M 32
Edit/Delete Message


--
ceemo
------------------------------------------------------------------------
ceemo's Profile: http://www.excelforum.com/member.php...o&userid=10650
View this thread: http://www.excelforum.com/showthread...hreadid=517431

  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Domenic
 
Posts: n/a
Default Sumproduct

Try...

=SUMPRODUCT(--((A1:A12="V")+(B1:B12="D")0),--((C1:C12=3)+(D1:D12="P")0)
,E1:E12)

Hope this helps!

In article ,
ceemo wrote:

Yep i messed up the formula, which ive now corrected and also tyd'd up
the columns

(ColA="V" or colB"D") and (ColC=3 or ColD=P). The answer would be 3
(rows 5,8,10)


i would also like to know how to sum ColE which would be 695


Please help,

Row ColA ColB ColC ColD ColE
1 A C 3 P 541
2 A C 4 O 2
3 V A 2 O 2
4 D A 1 P 54
5 F D 3 J 565
6 D A 4 U 95
7 F C 2 N 36
8 F D 3 J 45
9 J A 6 O 74
10 V D 8 P 85
11 E A 7 U 25
12 T A 8 M 32
Edit/Delete Message

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
Sumproduct Peter B Excel Worksheet Functions 1 March 7th 05 01:59 PM
sumproduct causing memory errors? dave Excel Worksheet Functions 1 March 3rd 05 09:31 AM
Can I reference =, <, or > sign in SUMPRODUCT BobT Excel Discussion (Misc queries) 7 February 16th 05 01:58 PM
Sumproduct function not working Scott Summerlin Excel Worksheet Functions 12 December 4th 04 05:15 AM
adding two sumproduct formulas together ski2004_2005 Excel Worksheet Functions 1 November 12th 04 09:08 PM


All times are GMT +1. The time now is 12:14 AM.

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"