The Grim Discovery
Board Regular
- Joined
- Jan 23, 2015
- Messages
- 246
- Office Version
- 365
- Platform
- Windows
Peoples,
Could someone do a good deed an help me manage this disgrace of a formula into something more succinct?
As you'll see it's calculating the frequency of 'yes' against the frequency of 'yes' and 'no' depending on the condition in B5 is met. It's actually part of a much larger formula containing many similar countifs and it's slowing my worksheet down horribly.
IFERROR(SUM(COUNTIFS(Data!F:F,B5,Data!$K:$K,"yes")+COUNTIFS(Data!F:F,B5,Data!$J:$J,"yes")+COUNTIFS(Data!F:F,B5,Data!$N:$N,"yes/SUM(COUNTIFS(Data!F:F,B5,Data!$K:$K,"no")+COUNTIFS(Data!F:F,B5,Data!$J:$J,"no")+COUNTIFS(Data!F:F,B5,Data!$N:$N,"no")+(Data!F:F,B5,Data!$K:$K,"yes")+COUNTIFS(Data!F:F,B5,Data!$J:$J,"yes")+COUNTIFS(Data!F:F,B5,Data!$N:$N,"yes"))," ")
I've spent several hours trying to make use SUMIF and SUMPRODUCT and frankly have got nowhere.
Thanks in advance
Could someone do a good deed an help me manage this disgrace of a formula into something more succinct?
As you'll see it's calculating the frequency of 'yes' against the frequency of 'yes' and 'no' depending on the condition in B5 is met. It's actually part of a much larger formula containing many similar countifs and it's slowing my worksheet down horribly.
IFERROR(SUM(COUNTIFS(Data!F:F,B5,Data!$K:$K,"yes")+COUNTIFS(Data!F:F,B5,Data!$J:$J,"yes")+COUNTIFS(Data!F:F,B5,Data!$N:$N,"yes/SUM(COUNTIFS(Data!F:F,B5,Data!$K:$K,"no")+COUNTIFS(Data!F:F,B5,Data!$J:$J,"no")+COUNTIFS(Data!F:F,B5,Data!$N:$N,"no")+(Data!F:F,B5,Data!$K:$K,"yes")+COUNTIFS(Data!F:F,B5,Data!$J:$J,"yes")+COUNTIFS(Data!F:F,B5,Data!$N:$N,"yes"))," ")
I've spent several hours trying to make use SUMIF and SUMPRODUCT and frankly have got nowhere.
Thanks in advance