Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 553
Default CONDITIONAL SUMMING (URGENT)

Hi,

Data as follows:

A B C
ID1 YES YES
ID2 YES
ID3 YES
ID1
ID4 YES YES
ID2 YES
ID2 YES YES

What formula to be inserted in Column D to result the number of times an ID
in Column A repeats in case where either Column B or C shows "YES"

Desired result:

A B C D
ID1 YES YES 1
ID2 YES 3
ID3 YES 1
ID1 "" (Blank because B & C both are <"YES")
ID4 YES YES 1
ID2 YES 3
ID2 YES YES 3


--

Best Regards,
FARAZ A. QURESHI
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 15,768
Default CONDITIONAL SUMMING (URGENT)

Try this:

=IF(COUNTA(B1:C1),SUMPRODUCT(--(A$1:A$7=A1),--((B$1:B$7="yes")+(C$1:C$7="yes")0)),"")


--
Biff
Microsoft Excel MVP


"FARAZ QURESHI" wrote in message
...
Hi,

Data as follows:

A B C
ID1 YES YES
ID2 YES
ID3 YES
ID1
ID4 YES YES
ID2 YES
ID2 YES YES

What formula to be inserted in Column D to result the number of times an
ID
in Column A repeats in case where either Column B or C shows "YES"

Desired result:

A B C D
ID1 YES YES 1
ID2 YES 3
ID3 YES 1
ID1 "" (Blank because B & C both are <"YES")
ID4 YES YES 1
ID2 YES 3
ID2 YES YES 3


--

Best Regards,
FARAZ A. QURESHI



  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 553
Default CONDITIONAL SUMMING (URGENT)

XCLent Biff,

But just found a problem. "Yes" is being reflected by a formula and so
Counta() also counts the "". How 2 overtake this problem?

--

Best Regards,
FARAZ A. QURESHI


"T. Valko" wrote:

Try this:

=IF(COUNTA(B1:C1),SUMPRODUCT(--(A$1:A$7=A1),--((B$1:B$7="yes")+(C$1:C$7="yes")0)),"")


--
Biff
Microsoft Excel MVP


"FARAZ QURESHI" wrote in message
...
Hi,

Data as follows:

A B C
ID1 YES YES
ID2 YES
ID3 YES
ID1
ID4 YES YES
ID2 YES
ID2 YES YES

What formula to be inserted in Column D to result the number of times an
ID
in Column A repeats in case where either Column B or C shows "YES"

Desired result:

A B C D
ID1 YES YES 1
ID2 YES 3
ID3 YES 1
ID1 "" (Blank because B & C both are <"YES")
ID4 YES YES 1
ID2 YES 3
ID2 YES YES 3


--

Best Regards,
FARAZ A. QURESHI




  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 618
Default CONDITIONAL SUMMING (URGENT)

Does this modification to Biff's formula solve your problem?
=IF(COUNTIF(B1:C1,"yes"),SUMPRODUCT(--(A$1:A$7=A1),--((B$1:B$7="yes")+(C$1:C$7="yes")0)),"")
--
David Biddulph

"FARAZ QURESHI" wrote in message
...
XCLent Biff,

But just found a problem. "Yes" is being reflected by a formula and so
Counta() also counts the "". How 2 overtake this problem?

--

Best Regards,
FARAZ A. QURESHI


"T. Valko" wrote:

Try this:

=IF(COUNTA(B1:C1),SUMPRODUCT(--(A$1:A$7=A1),--((B$1:B$7="yes")+(C$1:C$7="yes")0)),"")


--
Biff
Microsoft Excel MVP


"FARAZ QURESHI" wrote in message
...
Hi,

Data as follows:

A B C
ID1 YES YES
ID2 YES
ID3 YES
ID1
ID4 YES YES
ID2 YES
ID2 YES YES

What formula to be inserted in Column D to result the number of times
an
ID
in Column A repeats in case where either Column B or C shows "YES"

Desired result:

A B C D
ID1 YES YES 1
ID2 YES 3
ID3 YES 1
ID1 "" (Blank because B & C both are <"YES")
ID4 YES YES 1
ID2 YES 3
ID2 YES YES 3


--

Best Regards,
FARAZ A. QURESHI






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
conditional summing - help Eddy Stan Excel Worksheet Functions 3 March 20th 08 02:59 PM
Conditional Summing Rich D Excel Discussion (Misc queries) 2 September 1st 07 05:10 PM
Urgent Help Required - Conditional Formatting CBD Excel Discussion (Misc queries) 3 May 25th 07 01:22 PM
Conditional summing Brad Excel Discussion (Misc queries) 1 August 31st 05 10:55 PM
conditional Summing ben Excel Worksheet Functions 2 January 10th 05 06:51 PM


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