LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #13   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 560
Default Summing a binary truth list

On Thu, 4 Oct 2007, in microsoft.public.excel.worksheet.functions,
Pete_UK said:

Well, you've certainly taken it a bit further, Del !! (Not sure about
elegance, though <bg)


It's readable, maintainable and scalable, and it's got no helper cells
and no VBA. It'll do for my tastes. Latest improvement is removing the
asterisks in the SUMPRODUCT and replacing them with commas:

=SUMPRODUCT(D$11:D$18,
SIGN((A$11:A$18=A21)+ISBLANK(A21)),
SIGN((B$11:B$18=B21)+ISBLANK(B21)),
SIGN((C$11:C$18=C21)+ISBLANK(C21)))

The only thing I think I could do to improve it at this point is if I
could work out how to turn those three separate factors into one array
expression. Then, adding a fourth, fifth, etc. would be as trivial as
changing a range reference. It's a rotten shame that proper Boolean
functions break when you try to use them in Excel array functions, so
that you have to fake it with silly sums.

I can't help wondering where the intial data comes from and if there
is some relationship between A B and C, along the lines of:

= constant + a*A + b*B + c*C


It's just a Venn diagram of three intersecting circles: you're given the
eight combinations of A only; A and B but not C; A, B and C etc. and the
challenge is how you answer questions like "How many in circle A
total?", "How many in neither A nor B?" and so on. "total in A" is
A+A&BnotC+A&CnotB+AB&C; "neither in A nor B" is CnotBorA+none, etc. The
key was some sort of matrix but I always had trouble with matrices at
school, and I also have trouble with arrays in Excel, so this was a
struggle to work through.

--
Del Cotter
NB Personal replies to this post will send email to ,
which goes to a spam folder-- please send your email to del3 instead.
 
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
Summing a filtered list Neil Excel Discussion (Misc queries) 4 September 21st 07 07:40 PM
AOR to APR - Truth in Lending Toan Excel Worksheet Functions 2 August 17th 06 09:12 PM
Looking for the truth !! Decreenisi Excel Worksheet Functions 2 January 10th 06 12:39 PM
Solver returns non binary answer in binary constrained cells Navy Student Excel Worksheet Functions 6 September 1st 05 03:11 PM


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