,“>”&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;
}







2















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),"")









share|improve this question













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





    ">"&0 can also be written as ">0" which may be more transparent

    – barry houdini
    Mar 17 '14 at 0:35


















2















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),"")









share|improve this question













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





    ">"&0 can also be written as ">0" which may be more transparent

    – barry houdini
    Mar 17 '14 at 0:35














2












2








2








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),"")









share|improve this question














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






share|improve this question













share|improve this question











share|improve this question




share|improve this question










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





    ">"&0 can also be written as ">0" which may be more transparent

    – barry houdini
    Mar 17 '14 at 0:35














  • 2





    read documentation and look at examples: office.microsoft.com/en-us/excel-help/…

    – Dmitry Pavliv
    Mar 16 '14 at 22:13






  • 4





    ">"&0 can 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










3 Answers
3






active

oldest

votes


















3















=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) - the false condition is your last ""


    • if function







  • Your Logical test is countif() = 1 and your true condition is countifs > 0


    • countif function







  • Your true condition is countifs(first range, first criteria, second range, second criteria)



    • countifs function







  • This means AJ2:AJ11323 = AJ9 is criteria 1 and AQ2:AQ11323 >0 is criteria 2


The end of your formula is the second criteria of countifs and the false condition of your if.






share|improve this answer

































    2














    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.






    share|improve this answer































      2














      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_range1 Required. The first range in which to evaluate the associated criteria.


      • criteria1 Required. 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 as 32, ">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.






      share|improve this answer
























        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
        });


        }
        });














        draft saved

        draft discarded


















        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









        3















        =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) - the false condition is your last ""


          • if function







        • Your Logical test is countif() = 1 and your true condition is countifs > 0


          • countif function







        • Your true condition is countifs(first range, first criteria, second range, second criteria)



          • countifs function







        • This means AJ2:AJ11323 = AJ9 is criteria 1 and AQ2:AQ11323 >0 is criteria 2


        The end of your formula is the second criteria of countifs and the false condition of your if.






        share|improve this answer






























          3















          =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) - the false condition is your last ""


            • if function







          • Your Logical test is countif() = 1 and your true condition is countifs > 0


            • countif function







          • Your true condition is countifs(first range, first criteria, second range, second criteria)



            • countifs function







          • This means AJ2:AJ11323 = AJ9 is criteria 1 and AQ2:AQ11323 >0 is criteria 2


          The end of your formula is the second criteria of countifs and the false condition of your if.






          share|improve this answer




























            3












            3








            3








            =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) - the false condition is your last ""


              • if function







            • Your Logical test is countif() = 1 and your true condition is countifs > 0


              • countif function







            • Your true condition is countifs(first range, first criteria, second range, second criteria)



              • countifs function







            • This means AJ2:AJ11323 = AJ9 is criteria 1 and AQ2:AQ11323 >0 is criteria 2


            The end of your formula is the second criteria of countifs and the false condition of your if.






            share|improve this answer
















            =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) - the false condition is your last ""


              • if function







            • Your Logical test is countif() = 1 and your true condition is countifs > 0


              • countif function







            • Your true condition is countifs(first range, first criteria, second range, second criteria)



              • countifs function







            • This means AJ2:AJ11323 = AJ9 is criteria 1 and AQ2:AQ11323 >0 is criteria 2


            The end of your formula is the second criteria of countifs and the false condition of your if.







            share|improve this answer














            share|improve this answer



            share|improve this answer








            edited Mar 17 '14 at 12:42

























            answered Mar 17 '14 at 12:36









            RaystafarianRaystafarian

            19.5k105189




            19.5k105189

























                2














                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.






                share|improve this answer




























                  2














                  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.






                  share|improve this answer


























                    2












                    2








                    2







                    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.






                    share|improve this answer













                    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.







                    share|improve this answer












                    share|improve this answer



                    share|improve this answer










                    answered Mar 16 '14 at 22:19









                    jonrsharpejonrsharpe

                    1214




                    1214























                        2














                        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_range1 Required. The first range in which to evaluate the associated criteria.


                        • criteria1 Required. 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 as 32, ">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.






                        share|improve this answer




























                          2














                          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_range1 Required. The first range in which to evaluate the associated criteria.


                          • criteria1 Required. 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 as 32, ">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.






                          share|improve this answer


























                            2












                            2








                            2







                            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_range1 Required. The first range in which to evaluate the associated criteria.


                            • criteria1 Required. 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 as 32, ">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.






                            share|improve this answer













                            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_range1 Required. The first range in which to evaluate the associated criteria.


                            • criteria1 Required. 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 as 32, ">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.







                            share|improve this answer












                            share|improve this answer



                            share|improve this answer










                            answered Mar 17 '14 at 1:48









                            WernerWerner

                            344212




                            344212






























                                draft saved

                                draft discarded




















































                                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.




                                draft saved


                                draft discarded














                                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





















































                                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







                                Popular posts from this blog

                                Terni

                                A new problem with tex4ht and tikz

                                Sun Ra