#1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Paul W Smith
 
Posts: n/a
Default DCOUNT? DSUM?

I want a formula that will tell me how many 'Trues' I have, when Team = A
and league = 1 etc.

Team League ResultA
A 1 TRUE
B 1 TRUE
C 1 TRUE
A 2 TRUE
B 2 TRUE
C 2 FALSE
A 3 TRUE
B 3 TRUE
C 3 TRUE
A 1 TRUE
B 1 TRUE
C 1 FALSE
A 2 FALSE
B 2 FALSE
C 2 TRUE
A 3 FALSE
B 3 FALSE
C 3 FALSE


  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Peo Sjoblom
 
Posts: n/a
Default DCOUNT? DSUM?

=SUMPRODUCT(--(A2:A10=1),--(B2:B10=TRUE))


--

Regards,

Peo Sjoblom


"Paul W Smith" wrote in message
...
I want a formula that will tell me how many 'Trues' I have, when Team = A
and league = 1 etc.

Team League ResultA
A 1 TRUE
B 1 TRUE
C 1 TRUE
A 2 TRUE
B 2 TRUE
C 2 FALSE
A 3 TRUE
B 3 TRUE
C 3 TRUE
A 1 TRUE
B 1 TRUE
C 1 FALSE
A 2 FALSE
B 2 FALSE
C 2 TRUE
A 3 FALSE
B 3 FALSE
C 3 FALSE




  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Paul W Smith
 
Posts: n/a
Default DCOUNT? DSUM?

what does the -- mean?



"Peo Sjoblom" wrote in message
...
=SUMPRODUCT(--(A2:A10=1),--(B2:B10=TRUE))


--

Regards,

Peo Sjoblom


"Paul W Smith" wrote in message
...
I want a formula that will tell me how many 'Trues' I have, when Team = A
and league = 1 etc.

Team League ResultA
A 1 TRUE
B 1 TRUE
C 1 TRUE
A 2 TRUE
B 2 TRUE
C 2 FALSE
A 3 TRUE
B 3 TRUE
C 3 TRUE
A 1 TRUE
B 1 TRUE
C 1 FALSE
A 2 FALSE
B 2 FALSE
C 2 TRUE
A 3 FALSE
B 3 FALSE
C 3 FALSE






  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Paul W Smith
 
Posts: n/a
Default DCOUNT? DSUM?

I am now guessing that -- signifies an array function.

However you have misunderstood my issue. Have three columns of data

Team League Result
A 1 True
B 1 True

Etc.


"Peo Sjoblom" wrote in message
...
=SUMPRODUCT(--(A2:A10=1),--(B2:B10=TRUE))


--

Regards,

Peo Sjoblom


"Paul W Smith" wrote in message
...
I want a formula that will tell me how many 'Trues' I have, when Team = A
and league = 1 etc.

Team League ResultA
A 1 TRUE
B 1 TRUE
C 1 TRUE
A 2 TRUE
B 2 TRUE
C 2 FALSE
A 3 TRUE
B 3 TRUE
C 3 TRUE
A 1 TRUE
B 1 TRUE
C 1 FALSE
A 2 FALSE
B 2 FALSE
C 2 TRUE
A 3 FALSE
B 3 FALSE
C 3 FALSE






  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Peo Sjoblom
 
Posts: n/a
Default DCOUNT? DSUM?


assume you have 2 TRUE in B where A is 1 then it would look like

=SUMPRODUCT(--({TRUE;FALSE;TRUE;FALSE;TRUE;FALSE;TRUE;FALSE;FALS E}),--({TRUE
;TRUE;FALSE;TRUE;TRUE;FALSE;FALSE;FALSE;FALSE}))

Then the unary minuses would turn it into

=SUMPRODUCT({1;0;1;0;1;0;1;0;0},{1;1;0;1;1;0;0;0;0 })

and when the arrays are multiplied it will return 2


the unary minuses will convert TRUE FALSE to 1 or 0 thus you can use the
built in format of SUMPRODUCT, you can use

=SUMPRODUCT((A2:A10=1)*(B2:B10=TRUE))

as well but if you also want to sum a range the latter formula

=SUMPRODUCT((A2:A10=1)*(B2:B10=TRUE)*(C2:C10))

will sum C where A is 1 and B is TRUE however if C has a text value like a
blank from another formula ="" it will return a #VALUE! error while

=SUMPRODUCT(--(A2:A10=1),--(B2:B10=TRUE),C2:C10)

will ignore the text



--

Regards,

Peo Sjoblom



"Paul W Smith" wrote in message
...
what does the -- mean?



"Peo Sjoblom" wrote in message
...
=SUMPRODUCT(--(A2:A10=1),--(B2:B10=TRUE))


--

Regards,

Peo Sjoblom


"Paul W Smith" wrote in message
...
I want a formula that will tell me how many 'Trues' I have, when Team =

A
and league = 1 etc.

Team League ResultA
A 1 TRUE
B 1 TRUE
C 1 TRUE
A 2 TRUE
B 2 TRUE
C 2 FALSE
A 3 TRUE
B 3 TRUE
C 3 TRUE
A 1 TRUE
B 1 TRUE
C 1 FALSE
A 2 FALSE
B 2 FALSE
C 2 TRUE
A 3 FALSE
B 3 FALSE
C 3 FALSE










  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Peo Sjoblom
 
Posts: n/a
Default DCOUNT? DSUM?

Just add another range

=SUMPRODUCT(--(TeamRange="A"),--(LeagueRange=1),--(ResultRange=TRUE))

--

Regards,

Peo Sjoblom

"Paul W Smith" wrote in message
...
I am now guessing that -- signifies an array function.

However you have misunderstood my issue. Have three columns of data

Team League Result
A 1 True
B 1 True

Etc.


"Peo Sjoblom" wrote in message
...
=SUMPRODUCT(--(A2:A10=1),--(B2:B10=TRUE))


--

Regards,

Peo Sjoblom


"Paul W Smith" wrote in message
...
I want a formula that will tell me how many 'Trues' I have, when Team =

A
and league = 1 etc.

Team League ResultA
A 1 TRUE
B 1 TRUE
C 1 TRUE
A 2 TRUE
B 2 TRUE
C 2 FALSE
A 3 TRUE
B 3 TRUE
C 3 TRUE
A 1 TRUE
B 1 TRUE
C 1 FALSE
A 2 FALSE
B 2 FALSE
C 2 TRUE
A 3 FALSE
B 3 FALSE
C 3 FALSE








  #7   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Bob Phillips
 
Posts: n/a
Default DCOUNT? DSUM?

No, it doesn't at all . See
http://www.xldynamic.com/source/xld.SUMPRODUCT.html

--

HTH

RP
(remove nothere from the email address if mailing direct)


"Paul W Smith" wrote in message
...
I am now guessing that -- signifies an array function.

However you have misunderstood my issue. Have three columns of data

Team League Result
A 1 True
B 1 True

Etc.


"Peo Sjoblom" wrote in message
...
=SUMPRODUCT(--(A2:A10=1),--(B2:B10=TRUE))


--

Regards,

Peo Sjoblom


"Paul W Smith" wrote in message
...
I want a formula that will tell me how many 'Trues' I have, when Team =

A
and league = 1 etc.

Team League ResultA
A 1 TRUE
B 1 TRUE
C 1 TRUE
A 2 TRUE
B 2 TRUE
C 2 FALSE
A 3 TRUE
B 3 TRUE
C 3 TRUE
A 1 TRUE
B 1 TRUE
C 1 FALSE
A 2 FALSE
B 2 FALSE
C 2 TRUE
A 3 FALSE
B 3 FALSE
C 3 FALSE








  #8   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Paul W Smith
 
Posts: n/a
Default DCOUNT? DSUM?

Great and very informative article - thanks.


"Bob Phillips" wrote in message
...
No, it doesn't at all . See
http://www.xldynamic.com/source/xld.SUMPRODUCT.html

--

HTH

RP
(remove nothere from the email address if mailing direct)


"Paul W Smith" wrote in message
...
I am now guessing that -- signifies an array function.

However you have misunderstood my issue. Have three columns of data

Team League Result
A 1 True
B 1 True

Etc.


"Peo Sjoblom" wrote in message
...
=SUMPRODUCT(--(A2:A10=1),--(B2:B10=TRUE))


--

Regards,

Peo Sjoblom


"Paul W Smith" wrote in message
...
I want a formula that will tell me how many 'Trues' I have, when Team
=

A
and league = 1 etc.

Team League ResultA
A 1 TRUE
B 1 TRUE
C 1 TRUE
A 2 TRUE
B 2 TRUE
C 2 FALSE
A 3 TRUE
B 3 TRUE
C 3 TRUE
A 1 TRUE
B 1 TRUE
C 1 FALSE
A 2 FALSE
B 2 FALSE
C 2 TRUE
A 3 FALSE
B 3 FALSE
C 3 FALSE










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
dsum with date criteria Jed Martin Excel Worksheet Functions 0 March 24th 05 05:29 PM
DSUM and DCount when criteria values are similar BAC Excel Worksheet Functions 1 February 14th 05 06:38 PM
Use of the DSUM formula to find exact matches in datatables Rob Henson Excel Worksheet Functions 1 January 27th 05 02:14 AM
DSUM frustrations Paul Adams Excel Worksheet Functions 3 November 12th 04 10:59 AM
DSUM frustrations Paul Adams Excel Worksheet Functions 0 November 12th 04 10:56 AM


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