How do I sum a total number of occurrences of a ID number with a specific month and year in Excel












0















I have a Excel Master sheet where I am looking to query other sheets within the workbook. What I am trying to do is see How many occurrences of an ID for a Project in a column occur within a month, e.g. how many times does the ID 1367 occur in November. My dates are in the format of e.g 13/11/18 and this cannot be changed as I am just creating a report against a workbook I do not own.



The relevant columns I need are formatted like so:



Project:   Project ID:    Date:
a 123 1/01/2018
a 123 2/01/2019
a 123 3/01/2018
a 123


This is my SUMIFS function:



=SUMIF(PPlanner!$D:$D,Dashboard!$B$6,PPlanner!X:X) 


This works by itself. My problem is trying to get the ID total for a specific month.



It returns the number of occurrences the ID occurs against a project all together but not against the month specifically. I have tried adding syntax to specify
the month but I am getting errors such as "too many arguments".










share|improve this question

























  • specific month of all years or specific month in specific year?

    – Scott Craner
    Nov 20 '18 at 17:08











  • A specific month in a specific year e.g. All for November 2018

    – deeyas
    Nov 20 '18 at 17:14











  • In the formula it's SUMIF and not SUMIFS - possible source of "too many arguments"

    – Dávid Laczkó
    Nov 20 '18 at 17:22


















0















I have a Excel Master sheet where I am looking to query other sheets within the workbook. What I am trying to do is see How many occurrences of an ID for a Project in a column occur within a month, e.g. how many times does the ID 1367 occur in November. My dates are in the format of e.g 13/11/18 and this cannot be changed as I am just creating a report against a workbook I do not own.



The relevant columns I need are formatted like so:



Project:   Project ID:    Date:
a 123 1/01/2018
a 123 2/01/2019
a 123 3/01/2018
a 123


This is my SUMIFS function:



=SUMIF(PPlanner!$D:$D,Dashboard!$B$6,PPlanner!X:X) 


This works by itself. My problem is trying to get the ID total for a specific month.



It returns the number of occurrences the ID occurs against a project all together but not against the month specifically. I have tried adding syntax to specify
the month but I am getting errors such as "too many arguments".










share|improve this question

























  • specific month of all years or specific month in specific year?

    – Scott Craner
    Nov 20 '18 at 17:08











  • A specific month in a specific year e.g. All for November 2018

    – deeyas
    Nov 20 '18 at 17:14











  • In the formula it's SUMIF and not SUMIFS - possible source of "too many arguments"

    – Dávid Laczkó
    Nov 20 '18 at 17:22
















0












0








0








I have a Excel Master sheet where I am looking to query other sheets within the workbook. What I am trying to do is see How many occurrences of an ID for a Project in a column occur within a month, e.g. how many times does the ID 1367 occur in November. My dates are in the format of e.g 13/11/18 and this cannot be changed as I am just creating a report against a workbook I do not own.



The relevant columns I need are formatted like so:



Project:   Project ID:    Date:
a 123 1/01/2018
a 123 2/01/2019
a 123 3/01/2018
a 123


This is my SUMIFS function:



=SUMIF(PPlanner!$D:$D,Dashboard!$B$6,PPlanner!X:X) 


This works by itself. My problem is trying to get the ID total for a specific month.



It returns the number of occurrences the ID occurs against a project all together but not against the month specifically. I have tried adding syntax to specify
the month but I am getting errors such as "too many arguments".










share|improve this question
















I have a Excel Master sheet where I am looking to query other sheets within the workbook. What I am trying to do is see How many occurrences of an ID for a Project in a column occur within a month, e.g. how many times does the ID 1367 occur in November. My dates are in the format of e.g 13/11/18 and this cannot be changed as I am just creating a report against a workbook I do not own.



The relevant columns I need are formatted like so:



Project:   Project ID:    Date:
a 123 1/01/2018
a 123 2/01/2019
a 123 3/01/2018
a 123


This is my SUMIFS function:



=SUMIF(PPlanner!$D:$D,Dashboard!$B$6,PPlanner!X:X) 


This works by itself. My problem is trying to get the ID total for a specific month.



It returns the number of occurrences the ID occurs against a project all together but not against the month specifically. I have tried adding syntax to specify
the month but I am getting errors such as "too many arguments".







excel-formula






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Nov 20 '18 at 17:06









Scott Craner

89.3k82550




89.3k82550










asked Nov 20 '18 at 17:03









deeyasdeeyas

31




31













  • specific month of all years or specific month in specific year?

    – Scott Craner
    Nov 20 '18 at 17:08











  • A specific month in a specific year e.g. All for November 2018

    – deeyas
    Nov 20 '18 at 17:14











  • In the formula it's SUMIF and not SUMIFS - possible source of "too many arguments"

    – Dávid Laczkó
    Nov 20 '18 at 17:22





















  • specific month of all years or specific month in specific year?

    – Scott Craner
    Nov 20 '18 at 17:08











  • A specific month in a specific year e.g. All for November 2018

    – deeyas
    Nov 20 '18 at 17:14











  • In the formula it's SUMIF and not SUMIFS - possible source of "too many arguments"

    – Dávid Laczkó
    Nov 20 '18 at 17:22



















specific month of all years or specific month in specific year?

– Scott Craner
Nov 20 '18 at 17:08





specific month of all years or specific month in specific year?

– Scott Craner
Nov 20 '18 at 17:08













A specific month in a specific year e.g. All for November 2018

– deeyas
Nov 20 '18 at 17:14





A specific month in a specific year e.g. All for November 2018

– deeyas
Nov 20 '18 at 17:14













In the formula it's SUMIF and not SUMIFS - possible source of "too many arguments"

– Dávid Laczkó
Nov 20 '18 at 17:22







In the formula it's SUMIF and not SUMIFS - possible source of "too many arguments"

– Dávid Laczkó
Nov 20 '18 at 17:22














2 Answers
2






active

oldest

votes


















0














I recently answered a question that was very similar :
Excel - Take Average of Monthly Data



I think this would answer your question as well, but you have to use COUNTIFS instead of AVERAGEIFS



As for presentation, I would make a separate list of the months you want to include, and put the formula next to it, instead of the formula next to the actual list of data (as in the other question). As for how to write/input the month, you can put it any way you want, as long as it is a valid date in Excel. With the cell formatting you then can show it as month and year only. This is just to say that a text input JANUARY 2018 does not work (in a normal cell, eg. a cell that you did not format as text, when you type that into the cell, Excel recognizes this as a date, and will actually put 1/1/2018).



Oh, and using a Pivot table would work as well, the other answer on the question referenced above also explains how to do that.






share|improve this answer

































    0














    In some cases, how Excel handles dates is very convenient.
    For you, the date format doesn't matter. It is simply a number counting days with 0 being December 31st, 1899.



    13/11/18 the date is the integer 43417 in-cell value. Excel interprets this as a both date and time together. The whole numbers are the days while the decimals are the time of day as a fraction of the day. 43417.5 would be noon.



    So you may use COUNTIFS to help here.



    =COUNTIFS(PPlanner!$X:$X, 1367, PPlanner!$D:$D, ">"&43404, PPlanner!$D:$D, "<"&43435)


    This is going to look at sheet PPlanner column X and count how many instances of 1367 occur after the last day of October and before the first day of December. There are other ways to accomplish this, but it allows you to count within any date range you want.






    share|improve this answer























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


      }
      });














      draft saved

      draft discarded


















      StackExchange.ready(
      function () {
      StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53397990%2fhow-do-i-sum-a-total-number-of-occurrences-of-a-id-number-with-a-specific-month%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









      0














      I recently answered a question that was very similar :
      Excel - Take Average of Monthly Data



      I think this would answer your question as well, but you have to use COUNTIFS instead of AVERAGEIFS



      As for presentation, I would make a separate list of the months you want to include, and put the formula next to it, instead of the formula next to the actual list of data (as in the other question). As for how to write/input the month, you can put it any way you want, as long as it is a valid date in Excel. With the cell formatting you then can show it as month and year only. This is just to say that a text input JANUARY 2018 does not work (in a normal cell, eg. a cell that you did not format as text, when you type that into the cell, Excel recognizes this as a date, and will actually put 1/1/2018).



      Oh, and using a Pivot table would work as well, the other answer on the question referenced above also explains how to do that.






      share|improve this answer






























        0














        I recently answered a question that was very similar :
        Excel - Take Average of Monthly Data



        I think this would answer your question as well, but you have to use COUNTIFS instead of AVERAGEIFS



        As for presentation, I would make a separate list of the months you want to include, and put the formula next to it, instead of the formula next to the actual list of data (as in the other question). As for how to write/input the month, you can put it any way you want, as long as it is a valid date in Excel. With the cell formatting you then can show it as month and year only. This is just to say that a text input JANUARY 2018 does not work (in a normal cell, eg. a cell that you did not format as text, when you type that into the cell, Excel recognizes this as a date, and will actually put 1/1/2018).



        Oh, and using a Pivot table would work as well, the other answer on the question referenced above also explains how to do that.






        share|improve this answer




























          0












          0








          0







          I recently answered a question that was very similar :
          Excel - Take Average of Monthly Data



          I think this would answer your question as well, but you have to use COUNTIFS instead of AVERAGEIFS



          As for presentation, I would make a separate list of the months you want to include, and put the formula next to it, instead of the formula next to the actual list of data (as in the other question). As for how to write/input the month, you can put it any way you want, as long as it is a valid date in Excel. With the cell formatting you then can show it as month and year only. This is just to say that a text input JANUARY 2018 does not work (in a normal cell, eg. a cell that you did not format as text, when you type that into the cell, Excel recognizes this as a date, and will actually put 1/1/2018).



          Oh, and using a Pivot table would work as well, the other answer on the question referenced above also explains how to do that.






          share|improve this answer















          I recently answered a question that was very similar :
          Excel - Take Average of Monthly Data



          I think this would answer your question as well, but you have to use COUNTIFS instead of AVERAGEIFS



          As for presentation, I would make a separate list of the months you want to include, and put the formula next to it, instead of the formula next to the actual list of data (as in the other question). As for how to write/input the month, you can put it any way you want, as long as it is a valid date in Excel. With the cell formatting you then can show it as month and year only. This is just to say that a text input JANUARY 2018 does not work (in a normal cell, eg. a cell that you did not format as text, when you type that into the cell, Excel recognizes this as a date, and will actually put 1/1/2018).



          Oh, and using a Pivot table would work as well, the other answer on the question referenced above also explains how to do that.







          share|improve this answer














          share|improve this answer



          share|improve this answer








          edited Nov 20 '18 at 18:06

























          answered Nov 20 '18 at 17:26









          Peter K.Peter K.

          739112




          739112

























              0














              In some cases, how Excel handles dates is very convenient.
              For you, the date format doesn't matter. It is simply a number counting days with 0 being December 31st, 1899.



              13/11/18 the date is the integer 43417 in-cell value. Excel interprets this as a both date and time together. The whole numbers are the days while the decimals are the time of day as a fraction of the day. 43417.5 would be noon.



              So you may use COUNTIFS to help here.



              =COUNTIFS(PPlanner!$X:$X, 1367, PPlanner!$D:$D, ">"&43404, PPlanner!$D:$D, "<"&43435)


              This is going to look at sheet PPlanner column X and count how many instances of 1367 occur after the last day of October and before the first day of December. There are other ways to accomplish this, but it allows you to count within any date range you want.






              share|improve this answer




























                0














                In some cases, how Excel handles dates is very convenient.
                For you, the date format doesn't matter. It is simply a number counting days with 0 being December 31st, 1899.



                13/11/18 the date is the integer 43417 in-cell value. Excel interprets this as a both date and time together. The whole numbers are the days while the decimals are the time of day as a fraction of the day. 43417.5 would be noon.



                So you may use COUNTIFS to help here.



                =COUNTIFS(PPlanner!$X:$X, 1367, PPlanner!$D:$D, ">"&43404, PPlanner!$D:$D, "<"&43435)


                This is going to look at sheet PPlanner column X and count how many instances of 1367 occur after the last day of October and before the first day of December. There are other ways to accomplish this, but it allows you to count within any date range you want.






                share|improve this answer


























                  0












                  0








                  0







                  In some cases, how Excel handles dates is very convenient.
                  For you, the date format doesn't matter. It is simply a number counting days with 0 being December 31st, 1899.



                  13/11/18 the date is the integer 43417 in-cell value. Excel interprets this as a both date and time together. The whole numbers are the days while the decimals are the time of day as a fraction of the day. 43417.5 would be noon.



                  So you may use COUNTIFS to help here.



                  =COUNTIFS(PPlanner!$X:$X, 1367, PPlanner!$D:$D, ">"&43404, PPlanner!$D:$D, "<"&43435)


                  This is going to look at sheet PPlanner column X and count how many instances of 1367 occur after the last day of October and before the first day of December. There are other ways to accomplish this, but it allows you to count within any date range you want.






                  share|improve this answer













                  In some cases, how Excel handles dates is very convenient.
                  For you, the date format doesn't matter. It is simply a number counting days with 0 being December 31st, 1899.



                  13/11/18 the date is the integer 43417 in-cell value. Excel interprets this as a both date and time together. The whole numbers are the days while the decimals are the time of day as a fraction of the day. 43417.5 would be noon.



                  So you may use COUNTIFS to help here.



                  =COUNTIFS(PPlanner!$X:$X, 1367, PPlanner!$D:$D, ">"&43404, PPlanner!$D:$D, "<"&43435)


                  This is going to look at sheet PPlanner column X and count how many instances of 1367 occur after the last day of October and before the first day of December. There are other ways to accomplish this, but it allows you to count within any date range you want.







                  share|improve this answer












                  share|improve this answer



                  share|improve this answer










                  answered Nov 20 '18 at 18:37









                  David SDavid S

                  1968




                  1968






























                      draft saved

                      draft discarded




















































                      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.




                      draft saved


                      draft discarded














                      StackExchange.ready(
                      function () {
                      StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53397990%2fhow-do-i-sum-a-total-number-of-occurrences-of-a-id-number-with-a-specific-month%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]