Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
Can anyone help me to understand why this formula gives the correct
result: =(SUMPRODUCT((Region="Asia")*(DECONS="Ontime")*(SP LIT={"E","W"})) +SUMPRODUCT((Region="Asia")*(DECONS="Ontime from ETA")*(SPLIT={"E","W"}))) But if I try to condense it further to: =SUMPRODUCT((Region="Asia")*(DECONS={"Ontime from ETA","Ontime"})*(SPLIT={"E","W"})) It stops working? Seems to me that, if it can manage to look for either "E" or "W" in a single SUMPRODUCT, why can't it also look for "Ontime" or "Ontime from ETA" in the same SUMPRODUCT? Can SUMPRODUCT only handle one of these per array? Thanks much, Jamison |
#3
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
That makes very good sense, cheers! I strongly believe you are
correct. |
#4
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
wrote in message
ps.com... That makes very good sense, cheers! I strongly believe you are correct If not there will soemone along in a minute to put us both right <g -- Regards, Sandy In Perth, the ancient capital of Scotland and the crowning place of kings Replace @mailinator.com with @tiscali.co.uk |
#5
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
You could try this
=SUMPRODUCT((Region="Asia")*(SIGN((DECONS="Ontime from ETA")+(DECONS="Ontime")))*(SIGN((SPLIT="E")+(SPLIT ="W")))) -- --- HTH Bob (there's no email, no snail mail, but somewhere should be gmail in my addy) wrote in message ps.com... That makes very good sense, cheers! I strongly believe you are correct. |
#6
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
Bob,
Does it need the SIGN() function calls? It seems to work for me without them. -- Regards, Sandy In Perth, the ancient capital of Scotland and the crowning place of kings Replace @mailinator.com with @tiscali.co.uk "Bob Phillips" wrote in message ... You could try this =SUMPRODUCT((Region="Asia")*(SIGN((DECONS="Ontime from ETA")+(DECONS="Ontime")))*(SIGN((SPLIT="E")+(SPLIT ="W")))) -- --- HTH Bob (there's no email, no snail mail, but somewhere should be gmail in my addy) wrote in message ps.com... That makes very good sense, cheers! I strongly believe you are correct. |
#7
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
Since Decons is a single column, it will contain one or the other (or neither).
So the sum will be 1+0 or 0+1 or 0+0. So the =SIGN() function isn't required. I bet Bob <bg was thinking that by including the =SIGN() function in the formula, it would be easier for the OP to change the formula to look at two columns (decons1, decons2, and split1, split2: =SUMPRODUCT((Region="Asia")* (SIGN((DECONS1="Ontime from ETA")+(DECONS2="Ontime"))) *(SIGN((SPLIT1="E")+(SPLIT2="W")))) Then you wouldn't have to worry about both values occuring at the same time: 0+0 1+0 0+1 or 1+1 The =SIGN() function will make sure that the non-zero sum will be treated as 1. (or Bob could have just screwed up when he tried to make Harlan happy <gdr.) Sandy Mann wrote: Bob, Does it need the SIGN() function calls? It seems to work for me without them. -- Regards, Sandy In Perth, the ancient capital of Scotland and the crowning place of kings Replace @mailinator.com with @tiscali.co.uk "Bob Phillips" wrote in message ... You could try this =SUMPRODUCT((Region="Asia")*(SIGN((DECONS="Ontime from ETA")+(DECONS="Ontime")))*(SIGN((SPLIT="E")+(SPLIT ="W")))) -- --- HTH Bob (there's no email, no snail mail, but somewhere should be gmail in my addy) wrote in message ps.com... That makes very good sense, cheers! I strongly believe you are correct. -- Dave Peterson |
#8
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
On Aug 29, 5:25 pm, "Sandy Mann" wrote:
Bob, Does it need the SIGN() function calls? It seems to work for me without them. Bob, Yes, it works! I guess you need both SIGN() for both variables to make it all come together. I don't fully understand why, but it worked, and that's the crux really. :) Cheers both, Jamison |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
sumif multiple criteria | Excel Worksheet Functions | |||
SUMIF with multiple criteria | Excel Discussion (Misc queries) | |||
sumif for multiple criteria | Excel Discussion (Misc queries) | |||
SUMIF with multiple criteria | Excel Discussion (Misc queries) | |||
sumif with multiple criteria | Excel Worksheet Functions |