,“>”&0),“”) at the end of a countif formula
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty{ height:90px;width:728px;box-sizing:border-box;
}
I have the below formula, but don't understand why the last part of it ,">"&0),""). Can somebody clarify pls?
=IF(COUNTIF($AJ$2:$AJ9,$AJ9)=1,COUNTIFS($AJ$2:$AJ11323,$AJ9,$AQ$2:$AQ11323,">"&0),"")
microsoft-excel worksheet-function
migrated from stackoverflow.com Mar 17 '14 at 1:16
This question came from our site for professional and enthusiast programmers.
add a comment |
I have the below formula, but don't understand why the last part of it ,">"&0),""). Can somebody clarify pls?
=IF(COUNTIF($AJ$2:$AJ9,$AJ9)=1,COUNTIFS($AJ$2:$AJ11323,$AJ9,$AQ$2:$AQ11323,">"&0),"")
microsoft-excel worksheet-function
migrated from stackoverflow.com Mar 17 '14 at 1:16
This question came from our site for professional and enthusiast programmers.
2
read documentation and look at examples: office.microsoft.com/en-us/excel-help/…
– Dmitry Pavliv
Mar 16 '14 at 22:13
4
">"&0can also be written as">0"which may be more transparent
– barry houdini
Mar 17 '14 at 0:35
add a comment |
I have the below formula, but don't understand why the last part of it ,">"&0),""). Can somebody clarify pls?
=IF(COUNTIF($AJ$2:$AJ9,$AJ9)=1,COUNTIFS($AJ$2:$AJ11323,$AJ9,$AQ$2:$AQ11323,">"&0),"")
microsoft-excel worksheet-function
I have the below formula, but don't understand why the last part of it ,">"&0),""). Can somebody clarify pls?
=IF(COUNTIF($AJ$2:$AJ9,$AJ9)=1,COUNTIFS($AJ$2:$AJ11323,$AJ9,$AQ$2:$AQ11323,">"&0),"")
microsoft-excel worksheet-function
microsoft-excel worksheet-function
asked Mar 16 '14 at 22:11
JohnJohn
1112
1112
migrated from stackoverflow.com Mar 17 '14 at 1:16
This question came from our site for professional and enthusiast programmers.
migrated from stackoverflow.com Mar 17 '14 at 1:16
This question came from our site for professional and enthusiast programmers.
2
read documentation and look at examples: office.microsoft.com/en-us/excel-help/…
– Dmitry Pavliv
Mar 16 '14 at 22:13
4
">"&0can also be written as">0"which may be more transparent
– barry houdini
Mar 17 '14 at 0:35
add a comment |
2
read documentation and look at examples: office.microsoft.com/en-us/excel-help/…
– Dmitry Pavliv
Mar 16 '14 at 22:13
4
">"&0can also be written as">0"which may be more transparent
– barry houdini
Mar 17 '14 at 0:35
2
2
read documentation and look at examples: office.microsoft.com/en-us/excel-help/…
– Dmitry Pavliv
Mar 16 '14 at 22:13
read documentation and look at examples: office.microsoft.com/en-us/excel-help/…
– Dmitry Pavliv
Mar 16 '14 at 22:13
4
4
">"&0 can also be written as ">0" which may be more transparent– barry houdini
Mar 17 '14 at 0:35
">"&0 can also be written as ">0" which may be more transparent– barry houdini
Mar 17 '14 at 0:35
add a comment |
3 Answers
3
active
oldest
votes
=IF(COUNTIF($AJ$2:$AJ9,$AJ9)=1,COUNTIFS($AJ$2:$AJ11323,$AJ9,$AQ$2:$AQ11323,">"&0),"")
- We can break this up -
IF(Logical Test, True condition, False condition)- thefalse conditionis your last""
- if function
- Your
Logical testiscountif() = 1and yourtrue conditioniscountifs > 0
- countif function
- Your
true conditioniscountifs(first range, first criteria, second range, second criteria)
countifs function
- This means
AJ2:AJ11323 = AJ9iscriteria 1andAQ2:AQ11323 >0iscriteria 2
The end of your formula is the second criteria of countifs and the false condition of your if.
add a comment |
You have
=IF(Condition, ValueIfTrue, ValueIfFalse)
So the empty string "" at the end is just the value to take if COUNTIF(...) <> 1.
The other part you don't understand is an argument to COUNTIFS, which is much like COUNTIF but with multiple ranges and conditions. Basically, it counts all the rows 2 <= n <= 11323 where AJn = AJ9 and AQn = ">"&0.
add a comment |
From the MS Office help on the COUNTIFS function:
COUNTIFS(criteria_range1, criteria1, [criteria_range2, criteria2]…)
The COUNTIFS function syntax has the following arguments:
criteria_range1Required. The first range in which to evaluate the associated criteria.
criteria1Required. The criteria in the form of a number, expression, cell reference, or text that define which cells will be counted. For example, criteria can be expressed as32,">32",B4,"apples", or"32".
criteria_range2,criteria2, ... Optional. Additional ranges and their associated criteria. Up to 127 range/criteria pairs are allowed.
Let's consider your case (only the last COUNTIFS, of course):
COUNTIFS($AJ$2:$AJ11317,$AJ3,$AQ$2:$AQ11317,">"&0)
The first criteria_range, criteria1 pair is $AJ$2:$AJ11317, $AJ3 while the second criteria_range2, criteria2 pair is $AQ$2:$AQ11317, ">"&0. criteria2 (or ">"&0) evaluates to ">0" (">"&0 is equivalent to ">0") which is true if any of the values in $AQ$2:$AQ11317 is greater than 0.
add a comment |
Your Answer
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "3"
};
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%2fsuperuser.com%2fquestions%2f729877%2f0-at-the-end-of-a-countif-formula%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
3 Answers
3
active
oldest
votes
3 Answers
3
active
oldest
votes
active
oldest
votes
active
oldest
votes
=IF(COUNTIF($AJ$2:$AJ9,$AJ9)=1,COUNTIFS($AJ$2:$AJ11323,$AJ9,$AQ$2:$AQ11323,">"&0),"")
- We can break this up -
IF(Logical Test, True condition, False condition)- thefalse conditionis your last""
- if function
- Your
Logical testiscountif() = 1and yourtrue conditioniscountifs > 0
- countif function
- Your
true conditioniscountifs(first range, first criteria, second range, second criteria)
countifs function
- This means
AJ2:AJ11323 = AJ9iscriteria 1andAQ2:AQ11323 >0iscriteria 2
The end of your formula is the second criteria of countifs and the false condition of your if.
add a comment |
=IF(COUNTIF($AJ$2:$AJ9,$AJ9)=1,COUNTIFS($AJ$2:$AJ11323,$AJ9,$AQ$2:$AQ11323,">"&0),"")
- We can break this up -
IF(Logical Test, True condition, False condition)- thefalse conditionis your last""
- if function
- Your
Logical testiscountif() = 1and yourtrue conditioniscountifs > 0
- countif function
- Your
true conditioniscountifs(first range, first criteria, second range, second criteria)
countifs function
- This means
AJ2:AJ11323 = AJ9iscriteria 1andAQ2:AQ11323 >0iscriteria 2
The end of your formula is the second criteria of countifs and the false condition of your if.
add a comment |
=IF(COUNTIF($AJ$2:$AJ9,$AJ9)=1,COUNTIFS($AJ$2:$AJ11323,$AJ9,$AQ$2:$AQ11323,">"&0),"")
- We can break this up -
IF(Logical Test, True condition, False condition)- thefalse conditionis your last""
- if function
- Your
Logical testiscountif() = 1and yourtrue conditioniscountifs > 0
- countif function
- Your
true conditioniscountifs(first range, first criteria, second range, second criteria)
countifs function
- This means
AJ2:AJ11323 = AJ9iscriteria 1andAQ2:AQ11323 >0iscriteria 2
The end of your formula is the second criteria of countifs and the false condition of your if.
=IF(COUNTIF($AJ$2:$AJ9,$AJ9)=1,COUNTIFS($AJ$2:$AJ11323,$AJ9,$AQ$2:$AQ11323,">"&0),"")
- We can break this up -
IF(Logical Test, True condition, False condition)- thefalse conditionis your last""
- if function
- Your
Logical testiscountif() = 1and yourtrue conditioniscountifs > 0
- countif function
- Your
true conditioniscountifs(first range, first criteria, second range, second criteria)
countifs function
- This means
AJ2:AJ11323 = AJ9iscriteria 1andAQ2:AQ11323 >0iscriteria 2
The end of your formula is the second criteria of countifs and the false condition of your if.
edited Mar 17 '14 at 12:42
answered Mar 17 '14 at 12:36
RaystafarianRaystafarian
19.5k105189
19.5k105189
add a comment |
add a comment |
You have
=IF(Condition, ValueIfTrue, ValueIfFalse)
So the empty string "" at the end is just the value to take if COUNTIF(...) <> 1.
The other part you don't understand is an argument to COUNTIFS, which is much like COUNTIF but with multiple ranges and conditions. Basically, it counts all the rows 2 <= n <= 11323 where AJn = AJ9 and AQn = ">"&0.
add a comment |
You have
=IF(Condition, ValueIfTrue, ValueIfFalse)
So the empty string "" at the end is just the value to take if COUNTIF(...) <> 1.
The other part you don't understand is an argument to COUNTIFS, which is much like COUNTIF but with multiple ranges and conditions. Basically, it counts all the rows 2 <= n <= 11323 where AJn = AJ9 and AQn = ">"&0.
add a comment |
You have
=IF(Condition, ValueIfTrue, ValueIfFalse)
So the empty string "" at the end is just the value to take if COUNTIF(...) <> 1.
The other part you don't understand is an argument to COUNTIFS, which is much like COUNTIF but with multiple ranges and conditions. Basically, it counts all the rows 2 <= n <= 11323 where AJn = AJ9 and AQn = ">"&0.
You have
=IF(Condition, ValueIfTrue, ValueIfFalse)
So the empty string "" at the end is just the value to take if COUNTIF(...) <> 1.
The other part you don't understand is an argument to COUNTIFS, which is much like COUNTIF but with multiple ranges and conditions. Basically, it counts all the rows 2 <= n <= 11323 where AJn = AJ9 and AQn = ">"&0.
answered Mar 16 '14 at 22:19
jonrsharpejonrsharpe
1214
1214
add a comment |
add a comment |
From the MS Office help on the COUNTIFS function:
COUNTIFS(criteria_range1, criteria1, [criteria_range2, criteria2]…)
The COUNTIFS function syntax has the following arguments:
criteria_range1Required. The first range in which to evaluate the associated criteria.
criteria1Required. The criteria in the form of a number, expression, cell reference, or text that define which cells will be counted. For example, criteria can be expressed as32,">32",B4,"apples", or"32".
criteria_range2,criteria2, ... Optional. Additional ranges and their associated criteria. Up to 127 range/criteria pairs are allowed.
Let's consider your case (only the last COUNTIFS, of course):
COUNTIFS($AJ$2:$AJ11317,$AJ3,$AQ$2:$AQ11317,">"&0)
The first criteria_range, criteria1 pair is $AJ$2:$AJ11317, $AJ3 while the second criteria_range2, criteria2 pair is $AQ$2:$AQ11317, ">"&0. criteria2 (or ">"&0) evaluates to ">0" (">"&0 is equivalent to ">0") which is true if any of the values in $AQ$2:$AQ11317 is greater than 0.
add a comment |
From the MS Office help on the COUNTIFS function:
COUNTIFS(criteria_range1, criteria1, [criteria_range2, criteria2]…)
The COUNTIFS function syntax has the following arguments:
criteria_range1Required. The first range in which to evaluate the associated criteria.
criteria1Required. The criteria in the form of a number, expression, cell reference, or text that define which cells will be counted. For example, criteria can be expressed as32,">32",B4,"apples", or"32".
criteria_range2,criteria2, ... Optional. Additional ranges and their associated criteria. Up to 127 range/criteria pairs are allowed.
Let's consider your case (only the last COUNTIFS, of course):
COUNTIFS($AJ$2:$AJ11317,$AJ3,$AQ$2:$AQ11317,">"&0)
The first criteria_range, criteria1 pair is $AJ$2:$AJ11317, $AJ3 while the second criteria_range2, criteria2 pair is $AQ$2:$AQ11317, ">"&0. criteria2 (or ">"&0) evaluates to ">0" (">"&0 is equivalent to ">0") which is true if any of the values in $AQ$2:$AQ11317 is greater than 0.
add a comment |
From the MS Office help on the COUNTIFS function:
COUNTIFS(criteria_range1, criteria1, [criteria_range2, criteria2]…)
The COUNTIFS function syntax has the following arguments:
criteria_range1Required. The first range in which to evaluate the associated criteria.
criteria1Required. The criteria in the form of a number, expression, cell reference, or text that define which cells will be counted. For example, criteria can be expressed as32,">32",B4,"apples", or"32".
criteria_range2,criteria2, ... Optional. Additional ranges and their associated criteria. Up to 127 range/criteria pairs are allowed.
Let's consider your case (only the last COUNTIFS, of course):
COUNTIFS($AJ$2:$AJ11317,$AJ3,$AQ$2:$AQ11317,">"&0)
The first criteria_range, criteria1 pair is $AJ$2:$AJ11317, $AJ3 while the second criteria_range2, criteria2 pair is $AQ$2:$AQ11317, ">"&0. criteria2 (or ">"&0) evaluates to ">0" (">"&0 is equivalent to ">0") which is true if any of the values in $AQ$2:$AQ11317 is greater than 0.
From the MS Office help on the COUNTIFS function:
COUNTIFS(criteria_range1, criteria1, [criteria_range2, criteria2]…)
The COUNTIFS function syntax has the following arguments:
criteria_range1Required. The first range in which to evaluate the associated criteria.
criteria1Required. The criteria in the form of a number, expression, cell reference, or text that define which cells will be counted. For example, criteria can be expressed as32,">32",B4,"apples", or"32".
criteria_range2,criteria2, ... Optional. Additional ranges and their associated criteria. Up to 127 range/criteria pairs are allowed.
Let's consider your case (only the last COUNTIFS, of course):
COUNTIFS($AJ$2:$AJ11317,$AJ3,$AQ$2:$AQ11317,">"&0)
The first criteria_range, criteria1 pair is $AJ$2:$AJ11317, $AJ3 while the second criteria_range2, criteria2 pair is $AQ$2:$AQ11317, ">"&0. criteria2 (or ">"&0) evaluates to ">0" (">"&0 is equivalent to ">0") which is true if any of the values in $AQ$2:$AQ11317 is greater than 0.
answered Mar 17 '14 at 1:48
WernerWerner
344212
344212
add a comment |
add a comment |
Thanks for contributing an answer to Super User!
- 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%2fsuperuser.com%2fquestions%2f729877%2f0-at-the-end-of-a-countif-formula%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
2
read documentation and look at examples: office.microsoft.com/en-us/excel-help/…
– Dmitry Pavliv
Mar 16 '14 at 22:13
4
">"&0can also be written as">0"which may be more transparent– barry houdini
Mar 17 '14 at 0:35