Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Excel / General Excel Questions / March 2008

Tip: Looking for answers? Try searching our database.

CONDITIONAL SUMMING (URGENT)

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
FARAZ QURESHI - 24 Mar 2008 07:03 GMT
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

Signature


Best Regards,
FARAZ A. QURESHI

T. Valko - 24 Mar 2008 07:34 GMT
Try this:

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

Signature

Biff
Microsoft Excel MVP

> Hi,
>
[quoted text clipped - 23 lines]
> ID2  YES             3
> ID2  YES  YES      3
FARAZ QURESHI - 24 Mar 2008 08:27 GMT
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?

Signature


Best Regards,
FARAZ A. QURESHI

> Try this:
>
[quoted text clipped - 27 lines]
> > ID2  YES             3
> > ID2  YES  YES      3
David Biddulph - 24 Mar 2008 09:51 GMT
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)),"")
Signature

David Biddulph

> XCLent Biff,
>
[quoted text clipped - 33 lines]
>> > ID2  YES             3
>> > ID2  YES  YES      3
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.