How to include OR in Array formula where ONLY SOME criteria need to be TRUE - Excel
I am trying to count the number of rows that: 1) have entries for all columns, and ii) have at least one value that meets a column-specific criterion.
Here's an example:
A B C D
4 4 3 5
2 2 2 2
3 1 2 5
1 3 2
- Column A Threshold: >2
- Column B Threshold: >2
- Column C Threshold: <2
- Column D Threshold: >4
The answer for this example is 2 because 2/4 rows include at least 1 value that meets a column threshold. Specifically, row 1 has 3 values that meet the column thresholds and Row 3 has 2 values. Row 2 has no values that meet the column-threshold, while row 4 should not be counted because it does not contain entries for all columns, e.g.:
A B C D
T T F T
F F F F
T F F T
F F F F
So I don't want to count how many times a specific column threshold has been met in each row, but whether at least 1 has been met in each row.
I have a hunch that SUMPRODUCT could be useful for this issue, but I do not know how to add an OR criterion for only some criteria (for instance, the example described here of using a "+" in SUMPRODUCTS as an OR function counts both the criteria).
Your thoughts would be most welcome.
arrays excel if-statement count
add a comment |
I am trying to count the number of rows that: 1) have entries for all columns, and ii) have at least one value that meets a column-specific criterion.
Here's an example:
A B C D
4 4 3 5
2 2 2 2
3 1 2 5
1 3 2
- Column A Threshold: >2
- Column B Threshold: >2
- Column C Threshold: <2
- Column D Threshold: >4
The answer for this example is 2 because 2/4 rows include at least 1 value that meets a column threshold. Specifically, row 1 has 3 values that meet the column thresholds and Row 3 has 2 values. Row 2 has no values that meet the column-threshold, while row 4 should not be counted because it does not contain entries for all columns, e.g.:
A B C D
T T F T
F F F F
T F F T
F F F F
So I don't want to count how many times a specific column threshold has been met in each row, but whether at least 1 has been met in each row.
I have a hunch that SUMPRODUCT could be useful for this issue, but I do not know how to add an OR criterion for only some criteria (for instance, the example described here of using a "+" in SUMPRODUCTS as an OR function counts both the criteria).
Your thoughts would be most welcome.
arrays excel if-statement count
add a comment |
I am trying to count the number of rows that: 1) have entries for all columns, and ii) have at least one value that meets a column-specific criterion.
Here's an example:
A B C D
4 4 3 5
2 2 2 2
3 1 2 5
1 3 2
- Column A Threshold: >2
- Column B Threshold: >2
- Column C Threshold: <2
- Column D Threshold: >4
The answer for this example is 2 because 2/4 rows include at least 1 value that meets a column threshold. Specifically, row 1 has 3 values that meet the column thresholds and Row 3 has 2 values. Row 2 has no values that meet the column-threshold, while row 4 should not be counted because it does not contain entries for all columns, e.g.:
A B C D
T T F T
F F F F
T F F T
F F F F
So I don't want to count how many times a specific column threshold has been met in each row, but whether at least 1 has been met in each row.
I have a hunch that SUMPRODUCT could be useful for this issue, but I do not know how to add an OR criterion for only some criteria (for instance, the example described here of using a "+" in SUMPRODUCTS as an OR function counts both the criteria).
Your thoughts would be most welcome.
arrays excel if-statement count
I am trying to count the number of rows that: 1) have entries for all columns, and ii) have at least one value that meets a column-specific criterion.
Here's an example:
A B C D
4 4 3 5
2 2 2 2
3 1 2 5
1 3 2
- Column A Threshold: >2
- Column B Threshold: >2
- Column C Threshold: <2
- Column D Threshold: >4
The answer for this example is 2 because 2/4 rows include at least 1 value that meets a column threshold. Specifically, row 1 has 3 values that meet the column thresholds and Row 3 has 2 values. Row 2 has no values that meet the column-threshold, while row 4 should not be counted because it does not contain entries for all columns, e.g.:
A B C D
T T F T
F F F F
T F F T
F F F F
So I don't want to count how many times a specific column threshold has been met in each row, but whether at least 1 has been met in each row.
I have a hunch that SUMPRODUCT could be useful for this issue, but I do not know how to add an OR criterion for only some criteria (for instance, the example described here of using a "+" in SUMPRODUCTS as an OR function counts both the criteria).
Your thoughts would be most welcome.
arrays excel if-statement count
arrays excel if-statement count
asked Nov 25 '18 at 20:03
PyjamaNinjaPyjamaNinja
1066
1066
add a comment |
add a comment |
2 Answers
2
active
oldest
votes
Very interesting question.
Array formula**:
=SUM(N(MMULT(IF(MMULT(N(A1:D4=""),TRANSPOSE(COLUMN(A1:D4)^0))=0,COUNTIF(OFFSET(A1,ROW(A1:D4)-MIN(ROW(A1:D4)),COLUMN(A1:D4)-MIN(COLUMN(A1:D4))),{">2",">2","<2",">4"}),0),TRANSPOSE(COLUMN(A1:D4)^0))>0))
Edit: Without the presence of blanks within the range, this could be simplified greatly to:
=ROWS(A1:D4)-COUNTIFS(A1:A4,"<=2",B1:B4,"<=2",C1:C4,">=2",D1:D4,"<=4")
since, logically, to obtain the number of rows for at which at least one condition is true, we can calculate the number of rows for which none of those conditions are true and subtract that value from the total number of rows.
In fact, it may well be possible to adapt this set-up to account for blanks as well. Will look into it.
Update: Indeed, I believe this will work:
=ROWS(A1:D4)-COUNTIFS(A1:A4,"<=2",B1:B4,"<=2",C1:C4,">=2",D1:D4,"<=4")-COUNT(1/N(MMULT(N(A1:D4=""),TRANSPOSE(COLUMN(A1:D4)^0))>0))
Regards
**Array formulas are not entered in the same way as 'standard' formulas. Instead of pressing just ENTER, you first hold down CTRL and SHIFT, and only then press ENTER. If you've done it correctly, you'll notice Excel puts curly brackets {} around the formula (though do not attempt to manually insert these yourself).
Lovely solution.
– Michal Rosa
Nov 25 '18 at 22:00
@MichalRosa Thanks! Though not sure I'm not missing something simpler. Quite unusual to have to compare a 2D range against criteria with different comparison operators. If the operator were the same for each column, e.g. all ">", then the solution would be straightforward.
– XOR LX
Nov 25 '18 at 22:10
I started working on it and eventually find a different solution but it was really convoluted. Fortunately you've answered the question before I could post it! I’ll add your formula to my library. Thanks :)
– Michal Rosa
Nov 25 '18 at 22:18
1
@PyjamaNinja Just noticed that the original formula I posted wasn't sound in that it didn't always cope with blanks within the range. Have updated.
– XOR LX
Nov 26 '18 at 9:01
1
@PyjamaNinja Simpler version now updated to account for blanks.
– XOR LX
Nov 26 '18 at 9:06
|
show 4 more comments
Can I offer as a kind of lemma to @XOR LX's brilliant answer that you might be able to do this:
=COUNTIFS(A1:A4,"<>",B1:B4,"<>",C1:C4,"<>",D1:D4,"<>")-COUNTIFS(A1:A4,"<=2",B1:B4,"<=2",C1:C4,">=2",D1:D4,"<=4")
i.e. The number of rows not containing a blank minus the number of these which don't fulfil any of the conditions.
This answer certainly deserves credit - why don't you add it to the question posted here: stackoverflow.com/questions/53484858/… It seems to fit the bill
– PyjamaNinja
Nov 26 '18 at 18:32
1
My answer pales into overcomplication in light of this!
– XOR LX
Nov 26 '18 at 21:22
1
I would never have thought of it without seeing yours first though
– Tom Sharpe
Nov 26 '18 at 22:24
add a comment |
Your Answer
StackExchange.ifUsing("editor", function () {
StackExchange.using("externalEditor", function () {
StackExchange.using("snippets", function () {
StackExchange.snippets.init();
});
});
}, "code-snippets");
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "1"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53471396%2fhow-to-include-or-in-array-formula-where-only-some-criteria-need-to-be-true-ex%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
2 Answers
2
active
oldest
votes
2 Answers
2
active
oldest
votes
active
oldest
votes
active
oldest
votes
Very interesting question.
Array formula**:
=SUM(N(MMULT(IF(MMULT(N(A1:D4=""),TRANSPOSE(COLUMN(A1:D4)^0))=0,COUNTIF(OFFSET(A1,ROW(A1:D4)-MIN(ROW(A1:D4)),COLUMN(A1:D4)-MIN(COLUMN(A1:D4))),{">2",">2","<2",">4"}),0),TRANSPOSE(COLUMN(A1:D4)^0))>0))
Edit: Without the presence of blanks within the range, this could be simplified greatly to:
=ROWS(A1:D4)-COUNTIFS(A1:A4,"<=2",B1:B4,"<=2",C1:C4,">=2",D1:D4,"<=4")
since, logically, to obtain the number of rows for at which at least one condition is true, we can calculate the number of rows for which none of those conditions are true and subtract that value from the total number of rows.
In fact, it may well be possible to adapt this set-up to account for blanks as well. Will look into it.
Update: Indeed, I believe this will work:
=ROWS(A1:D4)-COUNTIFS(A1:A4,"<=2",B1:B4,"<=2",C1:C4,">=2",D1:D4,"<=4")-COUNT(1/N(MMULT(N(A1:D4=""),TRANSPOSE(COLUMN(A1:D4)^0))>0))
Regards
**Array formulas are not entered in the same way as 'standard' formulas. Instead of pressing just ENTER, you first hold down CTRL and SHIFT, and only then press ENTER. If you've done it correctly, you'll notice Excel puts curly brackets {} around the formula (though do not attempt to manually insert these yourself).
Lovely solution.
– Michal Rosa
Nov 25 '18 at 22:00
@MichalRosa Thanks! Though not sure I'm not missing something simpler. Quite unusual to have to compare a 2D range against criteria with different comparison operators. If the operator were the same for each column, e.g. all ">", then the solution would be straightforward.
– XOR LX
Nov 25 '18 at 22:10
I started working on it and eventually find a different solution but it was really convoluted. Fortunately you've answered the question before I could post it! I’ll add your formula to my library. Thanks :)
– Michal Rosa
Nov 25 '18 at 22:18
1
@PyjamaNinja Just noticed that the original formula I posted wasn't sound in that it didn't always cope with blanks within the range. Have updated.
– XOR LX
Nov 26 '18 at 9:01
1
@PyjamaNinja Simpler version now updated to account for blanks.
– XOR LX
Nov 26 '18 at 9:06
|
show 4 more comments
Very interesting question.
Array formula**:
=SUM(N(MMULT(IF(MMULT(N(A1:D4=""),TRANSPOSE(COLUMN(A1:D4)^0))=0,COUNTIF(OFFSET(A1,ROW(A1:D4)-MIN(ROW(A1:D4)),COLUMN(A1:D4)-MIN(COLUMN(A1:D4))),{">2",">2","<2",">4"}),0),TRANSPOSE(COLUMN(A1:D4)^0))>0))
Edit: Without the presence of blanks within the range, this could be simplified greatly to:
=ROWS(A1:D4)-COUNTIFS(A1:A4,"<=2",B1:B4,"<=2",C1:C4,">=2",D1:D4,"<=4")
since, logically, to obtain the number of rows for at which at least one condition is true, we can calculate the number of rows for which none of those conditions are true and subtract that value from the total number of rows.
In fact, it may well be possible to adapt this set-up to account for blanks as well. Will look into it.
Update: Indeed, I believe this will work:
=ROWS(A1:D4)-COUNTIFS(A1:A4,"<=2",B1:B4,"<=2",C1:C4,">=2",D1:D4,"<=4")-COUNT(1/N(MMULT(N(A1:D4=""),TRANSPOSE(COLUMN(A1:D4)^0))>0))
Regards
**Array formulas are not entered in the same way as 'standard' formulas. Instead of pressing just ENTER, you first hold down CTRL and SHIFT, and only then press ENTER. If you've done it correctly, you'll notice Excel puts curly brackets {} around the formula (though do not attempt to manually insert these yourself).
Lovely solution.
– Michal Rosa
Nov 25 '18 at 22:00
@MichalRosa Thanks! Though not sure I'm not missing something simpler. Quite unusual to have to compare a 2D range against criteria with different comparison operators. If the operator were the same for each column, e.g. all ">", then the solution would be straightforward.
– XOR LX
Nov 25 '18 at 22:10
I started working on it and eventually find a different solution but it was really convoluted. Fortunately you've answered the question before I could post it! I’ll add your formula to my library. Thanks :)
– Michal Rosa
Nov 25 '18 at 22:18
1
@PyjamaNinja Just noticed that the original formula I posted wasn't sound in that it didn't always cope with blanks within the range. Have updated.
– XOR LX
Nov 26 '18 at 9:01
1
@PyjamaNinja Simpler version now updated to account for blanks.
– XOR LX
Nov 26 '18 at 9:06
|
show 4 more comments
Very interesting question.
Array formula**:
=SUM(N(MMULT(IF(MMULT(N(A1:D4=""),TRANSPOSE(COLUMN(A1:D4)^0))=0,COUNTIF(OFFSET(A1,ROW(A1:D4)-MIN(ROW(A1:D4)),COLUMN(A1:D4)-MIN(COLUMN(A1:D4))),{">2",">2","<2",">4"}),0),TRANSPOSE(COLUMN(A1:D4)^0))>0))
Edit: Without the presence of blanks within the range, this could be simplified greatly to:
=ROWS(A1:D4)-COUNTIFS(A1:A4,"<=2",B1:B4,"<=2",C1:C4,">=2",D1:D4,"<=4")
since, logically, to obtain the number of rows for at which at least one condition is true, we can calculate the number of rows for which none of those conditions are true and subtract that value from the total number of rows.
In fact, it may well be possible to adapt this set-up to account for blanks as well. Will look into it.
Update: Indeed, I believe this will work:
=ROWS(A1:D4)-COUNTIFS(A1:A4,"<=2",B1:B4,"<=2",C1:C4,">=2",D1:D4,"<=4")-COUNT(1/N(MMULT(N(A1:D4=""),TRANSPOSE(COLUMN(A1:D4)^0))>0))
Regards
**Array formulas are not entered in the same way as 'standard' formulas. Instead of pressing just ENTER, you first hold down CTRL and SHIFT, and only then press ENTER. If you've done it correctly, you'll notice Excel puts curly brackets {} around the formula (though do not attempt to manually insert these yourself).
Very interesting question.
Array formula**:
=SUM(N(MMULT(IF(MMULT(N(A1:D4=""),TRANSPOSE(COLUMN(A1:D4)^0))=0,COUNTIF(OFFSET(A1,ROW(A1:D4)-MIN(ROW(A1:D4)),COLUMN(A1:D4)-MIN(COLUMN(A1:D4))),{">2",">2","<2",">4"}),0),TRANSPOSE(COLUMN(A1:D4)^0))>0))
Edit: Without the presence of blanks within the range, this could be simplified greatly to:
=ROWS(A1:D4)-COUNTIFS(A1:A4,"<=2",B1:B4,"<=2",C1:C4,">=2",D1:D4,"<=4")
since, logically, to obtain the number of rows for at which at least one condition is true, we can calculate the number of rows for which none of those conditions are true and subtract that value from the total number of rows.
In fact, it may well be possible to adapt this set-up to account for blanks as well. Will look into it.
Update: Indeed, I believe this will work:
=ROWS(A1:D4)-COUNTIFS(A1:A4,"<=2",B1:B4,"<=2",C1:C4,">=2",D1:D4,"<=4")-COUNT(1/N(MMULT(N(A1:D4=""),TRANSPOSE(COLUMN(A1:D4)^0))>0))
Regards
**Array formulas are not entered in the same way as 'standard' formulas. Instead of pressing just ENTER, you first hold down CTRL and SHIFT, and only then press ENTER. If you've done it correctly, you'll notice Excel puts curly brackets {} around the formula (though do not attempt to manually insert these yourself).
edited Nov 26 '18 at 9:07
answered Nov 25 '18 at 21:37
XOR LXXOR LX
7,16211013
7,16211013
Lovely solution.
– Michal Rosa
Nov 25 '18 at 22:00
@MichalRosa Thanks! Though not sure I'm not missing something simpler. Quite unusual to have to compare a 2D range against criteria with different comparison operators. If the operator were the same for each column, e.g. all ">", then the solution would be straightforward.
– XOR LX
Nov 25 '18 at 22:10
I started working on it and eventually find a different solution but it was really convoluted. Fortunately you've answered the question before I could post it! I’ll add your formula to my library. Thanks :)
– Michal Rosa
Nov 25 '18 at 22:18
1
@PyjamaNinja Just noticed that the original formula I posted wasn't sound in that it didn't always cope with blanks within the range. Have updated.
– XOR LX
Nov 26 '18 at 9:01
1
@PyjamaNinja Simpler version now updated to account for blanks.
– XOR LX
Nov 26 '18 at 9:06
|
show 4 more comments
Lovely solution.
– Michal Rosa
Nov 25 '18 at 22:00
@MichalRosa Thanks! Though not sure I'm not missing something simpler. Quite unusual to have to compare a 2D range against criteria with different comparison operators. If the operator were the same for each column, e.g. all ">", then the solution would be straightforward.
– XOR LX
Nov 25 '18 at 22:10
I started working on it and eventually find a different solution but it was really convoluted. Fortunately you've answered the question before I could post it! I’ll add your formula to my library. Thanks :)
– Michal Rosa
Nov 25 '18 at 22:18
1
@PyjamaNinja Just noticed that the original formula I posted wasn't sound in that it didn't always cope with blanks within the range. Have updated.
– XOR LX
Nov 26 '18 at 9:01
1
@PyjamaNinja Simpler version now updated to account for blanks.
– XOR LX
Nov 26 '18 at 9:06
Lovely solution.
– Michal Rosa
Nov 25 '18 at 22:00
Lovely solution.
– Michal Rosa
Nov 25 '18 at 22:00
@MichalRosa Thanks! Though not sure I'm not missing something simpler. Quite unusual to have to compare a 2D range against criteria with different comparison operators. If the operator were the same for each column, e.g. all ">", then the solution would be straightforward.
– XOR LX
Nov 25 '18 at 22:10
@MichalRosa Thanks! Though not sure I'm not missing something simpler. Quite unusual to have to compare a 2D range against criteria with different comparison operators. If the operator were the same for each column, e.g. all ">", then the solution would be straightforward.
– XOR LX
Nov 25 '18 at 22:10
I started working on it and eventually find a different solution but it was really convoluted. Fortunately you've answered the question before I could post it! I’ll add your formula to my library. Thanks :)
– Michal Rosa
Nov 25 '18 at 22:18
I started working on it and eventually find a different solution but it was really convoluted. Fortunately you've answered the question before I could post it! I’ll add your formula to my library. Thanks :)
– Michal Rosa
Nov 25 '18 at 22:18
1
1
@PyjamaNinja Just noticed that the original formula I posted wasn't sound in that it didn't always cope with blanks within the range. Have updated.
– XOR LX
Nov 26 '18 at 9:01
@PyjamaNinja Just noticed that the original formula I posted wasn't sound in that it didn't always cope with blanks within the range. Have updated.
– XOR LX
Nov 26 '18 at 9:01
1
1
@PyjamaNinja Simpler version now updated to account for blanks.
– XOR LX
Nov 26 '18 at 9:06
@PyjamaNinja Simpler version now updated to account for blanks.
– XOR LX
Nov 26 '18 at 9:06
|
show 4 more comments
Can I offer as a kind of lemma to @XOR LX's brilliant answer that you might be able to do this:
=COUNTIFS(A1:A4,"<>",B1:B4,"<>",C1:C4,"<>",D1:D4,"<>")-COUNTIFS(A1:A4,"<=2",B1:B4,"<=2",C1:C4,">=2",D1:D4,"<=4")
i.e. The number of rows not containing a blank minus the number of these which don't fulfil any of the conditions.
This answer certainly deserves credit - why don't you add it to the question posted here: stackoverflow.com/questions/53484858/… It seems to fit the bill
– PyjamaNinja
Nov 26 '18 at 18:32
1
My answer pales into overcomplication in light of this!
– XOR LX
Nov 26 '18 at 21:22
1
I would never have thought of it without seeing yours first though
– Tom Sharpe
Nov 26 '18 at 22:24
add a comment |
Can I offer as a kind of lemma to @XOR LX's brilliant answer that you might be able to do this:
=COUNTIFS(A1:A4,"<>",B1:B4,"<>",C1:C4,"<>",D1:D4,"<>")-COUNTIFS(A1:A4,"<=2",B1:B4,"<=2",C1:C4,">=2",D1:D4,"<=4")
i.e. The number of rows not containing a blank minus the number of these which don't fulfil any of the conditions.
This answer certainly deserves credit - why don't you add it to the question posted here: stackoverflow.com/questions/53484858/… It seems to fit the bill
– PyjamaNinja
Nov 26 '18 at 18:32
1
My answer pales into overcomplication in light of this!
– XOR LX
Nov 26 '18 at 21:22
1
I would never have thought of it without seeing yours first though
– Tom Sharpe
Nov 26 '18 at 22:24
add a comment |
Can I offer as a kind of lemma to @XOR LX's brilliant answer that you might be able to do this:
=COUNTIFS(A1:A4,"<>",B1:B4,"<>",C1:C4,"<>",D1:D4,"<>")-COUNTIFS(A1:A4,"<=2",B1:B4,"<=2",C1:C4,">=2",D1:D4,"<=4")
i.e. The number of rows not containing a blank minus the number of these which don't fulfil any of the conditions.
Can I offer as a kind of lemma to @XOR LX's brilliant answer that you might be able to do this:
=COUNTIFS(A1:A4,"<>",B1:B4,"<>",C1:C4,"<>",D1:D4,"<>")-COUNTIFS(A1:A4,"<=2",B1:B4,"<=2",C1:C4,">=2",D1:D4,"<=4")
i.e. The number of rows not containing a blank minus the number of these which don't fulfil any of the conditions.
answered Nov 26 '18 at 17:13
Tom SharpeTom Sharpe
13k31225
13k31225
This answer certainly deserves credit - why don't you add it to the question posted here: stackoverflow.com/questions/53484858/… It seems to fit the bill
– PyjamaNinja
Nov 26 '18 at 18:32
1
My answer pales into overcomplication in light of this!
– XOR LX
Nov 26 '18 at 21:22
1
I would never have thought of it without seeing yours first though
– Tom Sharpe
Nov 26 '18 at 22:24
add a comment |
This answer certainly deserves credit - why don't you add it to the question posted here: stackoverflow.com/questions/53484858/… It seems to fit the bill
– PyjamaNinja
Nov 26 '18 at 18:32
1
My answer pales into overcomplication in light of this!
– XOR LX
Nov 26 '18 at 21:22
1
I would never have thought of it without seeing yours first though
– Tom Sharpe
Nov 26 '18 at 22:24
This answer certainly deserves credit - why don't you add it to the question posted here: stackoverflow.com/questions/53484858/… It seems to fit the bill
– PyjamaNinja
Nov 26 '18 at 18:32
This answer certainly deserves credit - why don't you add it to the question posted here: stackoverflow.com/questions/53484858/… It seems to fit the bill
– PyjamaNinja
Nov 26 '18 at 18:32
1
1
My answer pales into overcomplication in light of this!
– XOR LX
Nov 26 '18 at 21:22
My answer pales into overcomplication in light of this!
– XOR LX
Nov 26 '18 at 21:22
1
1
I would never have thought of it without seeing yours first though
– Tom Sharpe
Nov 26 '18 at 22:24
I would never have thought of it without seeing yours first though
– Tom Sharpe
Nov 26 '18 at 22:24
add a comment |
Thanks for contributing an answer to Stack Overflow!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53471396%2fhow-to-include-or-in-array-formula-where-only-some-criteria-need-to-be-true-ex%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown