Automatically count number of payments in each payment group in Excel











up vote
-1
down vote

favorite












I have a spreadsheet that looks something like this:



DATE      |PYMT AMT
01/01/2000|$1000
02/01/2000|$1000
....
12/01/2000|$1000
01/01/2001|$2000
02/01/2001|$2000


How can I create another table that looks like this:



Payment Count |Payment Amount  
03 |$1000
02 |$2000


COUNTIF() helps me to know the payment amounts in advance, by using this formula, =COUNTIF(B1:B300,"1000").



But what if, I don't know in advance what they will be the amount?










share|improve this question
























  • Not very understanding your problem, could you provide a more clearly table about this problem?
    – Lee
    Nov 30 at 9:24










  • Do you want a Pivot Table? Can you please clarify your question.
    – BruceWayne
    Nov 30 at 15:22












  • There isn't really enough information for people to be able to answer. Are you looking for formulas that calculate payment amount for number of payments? Do you already have that and you just want to format your information into a table? What does your information look like? What formula are you using?
    – fixer1234
    Nov 30 at 23:11










  • I made some changes to clarify my question but they were rejected. So I'm trying again. I think some of the moderators are too picky.
    – user348514
    Dec 2 at 2:42












  • Do you mean that you would like to see the Payment Amount column of your output table to list all unique values from the existing table so that instead of Hard Coding e.g. 1000 in your COUNTIF formula, you shall just refer the cell reference? Also in your formula you are entering "1000" as Text (Because it's enclosed in Double Quotes), it will not match if the $ Values are Numerics.
    – pat2015
    Dec 2 at 6:40















up vote
-1
down vote

favorite












I have a spreadsheet that looks something like this:



DATE      |PYMT AMT
01/01/2000|$1000
02/01/2000|$1000
....
12/01/2000|$1000
01/01/2001|$2000
02/01/2001|$2000


How can I create another table that looks like this:



Payment Count |Payment Amount  
03 |$1000
02 |$2000


COUNTIF() helps me to know the payment amounts in advance, by using this formula, =COUNTIF(B1:B300,"1000").



But what if, I don't know in advance what they will be the amount?










share|improve this question
























  • Not very understanding your problem, could you provide a more clearly table about this problem?
    – Lee
    Nov 30 at 9:24










  • Do you want a Pivot Table? Can you please clarify your question.
    – BruceWayne
    Nov 30 at 15:22












  • There isn't really enough information for people to be able to answer. Are you looking for formulas that calculate payment amount for number of payments? Do you already have that and you just want to format your information into a table? What does your information look like? What formula are you using?
    – fixer1234
    Nov 30 at 23:11










  • I made some changes to clarify my question but they were rejected. So I'm trying again. I think some of the moderators are too picky.
    – user348514
    Dec 2 at 2:42












  • Do you mean that you would like to see the Payment Amount column of your output table to list all unique values from the existing table so that instead of Hard Coding e.g. 1000 in your COUNTIF formula, you shall just refer the cell reference? Also in your formula you are entering "1000" as Text (Because it's enclosed in Double Quotes), it will not match if the $ Values are Numerics.
    – pat2015
    Dec 2 at 6:40













up vote
-1
down vote

favorite









up vote
-1
down vote

favorite











I have a spreadsheet that looks something like this:



DATE      |PYMT AMT
01/01/2000|$1000
02/01/2000|$1000
....
12/01/2000|$1000
01/01/2001|$2000
02/01/2001|$2000


How can I create another table that looks like this:



Payment Count |Payment Amount  
03 |$1000
02 |$2000


COUNTIF() helps me to know the payment amounts in advance, by using this formula, =COUNTIF(B1:B300,"1000").



But what if, I don't know in advance what they will be the amount?










share|improve this question















I have a spreadsheet that looks something like this:



DATE      |PYMT AMT
01/01/2000|$1000
02/01/2000|$1000
....
12/01/2000|$1000
01/01/2001|$2000
02/01/2001|$2000


How can I create another table that looks like this:



Payment Count |Payment Amount  
03 |$1000
02 |$2000


COUNTIF() helps me to know the payment amounts in advance, by using this formula, =COUNTIF(B1:B300,"1000").



But what if, I don't know in advance what they will be the amount?







microsoft-excel






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Dec 2 at 6:33









Rajesh S

3,5401422




3,5401422










asked Nov 30 at 0:41









user348514

54212




54212












  • Not very understanding your problem, could you provide a more clearly table about this problem?
    – Lee
    Nov 30 at 9:24










  • Do you want a Pivot Table? Can you please clarify your question.
    – BruceWayne
    Nov 30 at 15:22












  • There isn't really enough information for people to be able to answer. Are you looking for formulas that calculate payment amount for number of payments? Do you already have that and you just want to format your information into a table? What does your information look like? What formula are you using?
    – fixer1234
    Nov 30 at 23:11










  • I made some changes to clarify my question but they were rejected. So I'm trying again. I think some of the moderators are too picky.
    – user348514
    Dec 2 at 2:42












  • Do you mean that you would like to see the Payment Amount column of your output table to list all unique values from the existing table so that instead of Hard Coding e.g. 1000 in your COUNTIF formula, you shall just refer the cell reference? Also in your formula you are entering "1000" as Text (Because it's enclosed in Double Quotes), it will not match if the $ Values are Numerics.
    – pat2015
    Dec 2 at 6:40


















  • Not very understanding your problem, could you provide a more clearly table about this problem?
    – Lee
    Nov 30 at 9:24










  • Do you want a Pivot Table? Can you please clarify your question.
    – BruceWayne
    Nov 30 at 15:22












  • There isn't really enough information for people to be able to answer. Are you looking for formulas that calculate payment amount for number of payments? Do you already have that and you just want to format your information into a table? What does your information look like? What formula are you using?
    – fixer1234
    Nov 30 at 23:11










  • I made some changes to clarify my question but they were rejected. So I'm trying again. I think some of the moderators are too picky.
    – user348514
    Dec 2 at 2:42












  • Do you mean that you would like to see the Payment Amount column of your output table to list all unique values from the existing table so that instead of Hard Coding e.g. 1000 in your COUNTIF formula, you shall just refer the cell reference? Also in your formula you are entering "1000" as Text (Because it's enclosed in Double Quotes), it will not match if the $ Values are Numerics.
    – pat2015
    Dec 2 at 6:40
















Not very understanding your problem, could you provide a more clearly table about this problem?
– Lee
Nov 30 at 9:24




Not very understanding your problem, could you provide a more clearly table about this problem?
– Lee
Nov 30 at 9:24












Do you want a Pivot Table? Can you please clarify your question.
– BruceWayne
Nov 30 at 15:22






Do you want a Pivot Table? Can you please clarify your question.
– BruceWayne
Nov 30 at 15:22














There isn't really enough information for people to be able to answer. Are you looking for formulas that calculate payment amount for number of payments? Do you already have that and you just want to format your information into a table? What does your information look like? What formula are you using?
– fixer1234
Nov 30 at 23:11




There isn't really enough information for people to be able to answer. Are you looking for formulas that calculate payment amount for number of payments? Do you already have that and you just want to format your information into a table? What does your information look like? What formula are you using?
– fixer1234
Nov 30 at 23:11












I made some changes to clarify my question but they were rejected. So I'm trying again. I think some of the moderators are too picky.
– user348514
Dec 2 at 2:42






I made some changes to clarify my question but they were rejected. So I'm trying again. I think some of the moderators are too picky.
– user348514
Dec 2 at 2:42














Do you mean that you would like to see the Payment Amount column of your output table to list all unique values from the existing table so that instead of Hard Coding e.g. 1000 in your COUNTIF formula, you shall just refer the cell reference? Also in your formula you are entering "1000" as Text (Because it's enclosed in Double Quotes), it will not match if the $ Values are Numerics.
– pat2015
Dec 2 at 6:40




Do you mean that you would like to see the Payment Amount column of your output table to list all unique values from the existing table so that instead of Hard Coding e.g. 1000 in your COUNTIF formula, you shall just refer the cell reference? Also in your formula you are entering "1000" as Text (Because it's enclosed in Double Quotes), it will not match if the $ Values are Numerics.
– pat2015
Dec 2 at 6:40










1 Answer
1






active

oldest

votes

















up vote
0
down vote













I'm sure that you are looking for something like this.



I'm assuming that you have data in Range A2:B6.



enter image description here



How it works:





  1. Write this Array Formula in cell A10, finish with ctrl+Shift+Enter & fill down.



    {=IFERROR(INDEX($B$2:$B$6, MATCH(0,COUNTIF($A$9:A9, $B$2:$B$6), 0)),"")}



  2. Enter this Formula in cell B10 & fill down.



    =IF(A10="","No Val",(COUNTIF($B$2:$B6,A10)))




N.B.




  1. First part of above written formula =IF(A10="","No Val", will help you to generate error if you don't know values or you don't have
    values to count.


  2. Second part (COUNTIF($B$2:$B6,A10))) will count the occurrence of payments made.


Adjust cell references in the formula as you need.






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',
    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%2f1379613%2fautomatically-count-number-of-payments-in-each-payment-group-in-excel%23new-answer', 'question_page');
    }
    );

    Post as a guest















    Required, but never shown

























    1 Answer
    1






    active

    oldest

    votes








    1 Answer
    1






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes








    up vote
    0
    down vote













    I'm sure that you are looking for something like this.



    I'm assuming that you have data in Range A2:B6.



    enter image description here



    How it works:





    1. Write this Array Formula in cell A10, finish with ctrl+Shift+Enter & fill down.



      {=IFERROR(INDEX($B$2:$B$6, MATCH(0,COUNTIF($A$9:A9, $B$2:$B$6), 0)),"")}



    2. Enter this Formula in cell B10 & fill down.



      =IF(A10="","No Val",(COUNTIF($B$2:$B6,A10)))




    N.B.




    1. First part of above written formula =IF(A10="","No Val", will help you to generate error if you don't know values or you don't have
      values to count.


    2. Second part (COUNTIF($B$2:$B6,A10))) will count the occurrence of payments made.


    Adjust cell references in the formula as you need.






    share|improve this answer

























      up vote
      0
      down vote













      I'm sure that you are looking for something like this.



      I'm assuming that you have data in Range A2:B6.



      enter image description here



      How it works:





      1. Write this Array Formula in cell A10, finish with ctrl+Shift+Enter & fill down.



        {=IFERROR(INDEX($B$2:$B$6, MATCH(0,COUNTIF($A$9:A9, $B$2:$B$6), 0)),"")}



      2. Enter this Formula in cell B10 & fill down.



        =IF(A10="","No Val",(COUNTIF($B$2:$B6,A10)))




      N.B.




      1. First part of above written formula =IF(A10="","No Val", will help you to generate error if you don't know values or you don't have
        values to count.


      2. Second part (COUNTIF($B$2:$B6,A10))) will count the occurrence of payments made.


      Adjust cell references in the formula as you need.






      share|improve this answer























        up vote
        0
        down vote










        up vote
        0
        down vote









        I'm sure that you are looking for something like this.



        I'm assuming that you have data in Range A2:B6.



        enter image description here



        How it works:





        1. Write this Array Formula in cell A10, finish with ctrl+Shift+Enter & fill down.



          {=IFERROR(INDEX($B$2:$B$6, MATCH(0,COUNTIF($A$9:A9, $B$2:$B$6), 0)),"")}



        2. Enter this Formula in cell B10 & fill down.



          =IF(A10="","No Val",(COUNTIF($B$2:$B6,A10)))




        N.B.




        1. First part of above written formula =IF(A10="","No Val", will help you to generate error if you don't know values or you don't have
          values to count.


        2. Second part (COUNTIF($B$2:$B6,A10))) will count the occurrence of payments made.


        Adjust cell references in the formula as you need.






        share|improve this answer












        I'm sure that you are looking for something like this.



        I'm assuming that you have data in Range A2:B6.



        enter image description here



        How it works:





        1. Write this Array Formula in cell A10, finish with ctrl+Shift+Enter & fill down.



          {=IFERROR(INDEX($B$2:$B$6, MATCH(0,COUNTIF($A$9:A9, $B$2:$B$6), 0)),"")}



        2. Enter this Formula in cell B10 & fill down.



          =IF(A10="","No Val",(COUNTIF($B$2:$B6,A10)))




        N.B.




        1. First part of above written formula =IF(A10="","No Val", will help you to generate error if you don't know values or you don't have
          values to count.


        2. Second part (COUNTIF($B$2:$B6,A10))) will count the occurrence of payments made.


        Adjust cell references in the formula as you need.







        share|improve this answer












        share|improve this answer



        share|improve this answer










        answered Dec 2 at 7:10









        Rajesh S

        3,5401422




        3,5401422






























            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.





            Some of your past answers have not been well-received, and you're in danger of being blocked from answering.


            Please pay close attention to the following guidance:


            • 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%2f1379613%2fautomatically-count-number-of-payments-in-each-payment-group-in-excel%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

            If I really need a card on my start hand, how many mulligans make sense? [duplicate]

            Alcedinidae

            Can an atomic nucleus contain both particles and antiparticles? [duplicate]