+ Reply to Thread
Results 1 to 8 of 8

Count number of occurrences in month (google sheet)

  1. #1
    Registered User
    Join Date
    07-09-2015
    Location
    Cardiff
    MS-Off Ver
    office 2007
    Posts
    23

    Count number of occurrences in month (google sheet)

    Hi

    I can't work out how to count number of occurrences in a month, I have worked out how to sum the total £ for a month. (See column T to V)

    Also is there away in which you can not have sum calculate unless its the current month. For example August is showing £0 but that is only because no data exists for august yet. only way I can do it presently is to delete formula.

    https://docs.google.com/spreadsheets...it?usp=sharing


    Thanks
    Julian

  2. #2
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,938

    Re: Count number of occurrences in month (google sheet)

    I cannot load google docs (from work), but it sounds like you need to use =countifS()
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  3. #3
    Registered User
    Join Date
    07-09-2015
    Location
    Cardiff
    MS-Off Ver
    office 2007
    Posts
    23

    Re: Count number of occurrences in month (google sheet)

    Hi,

    nope can't work out how to get countifs to work

    I've attached an excel version if that helps


    CURRENT DRAFT WORKING VERSION Operations Asphalt Material Complaint Dashboard.xlsxCURRENT DRAFT WORKING VERSION Operations Asphalt Material Complaint Dashboard.xlsx

  4. #4
    Forum Expert
    Join Date
    03-23-2004
    Location
    London, England
    MS-Off Ver
    Excel 2019
    Posts
    7,064

    Re: Count number of occurrences in month (google sheet)

    It would have been best to have removed/amended any sensitive data before posting the spreadsheet.

    Regarding zeroes showing in August

    =IF(your formula=0,"",your formula)

    Column O is defined as TEXT. SUMPRODUCT will not work, the column must consist of numbers ONLY.
    Last edited by Special-K; 07-13-2015 at 08:15 AM.
    Regards
    Special-K

    Ensure you describe your problem clearly, I have little time available to solve these problems and do not appreciate numerous changes to them.

  5. #5
    Registered User
    Join Date
    07-09-2015
    Location
    Cardiff
    MS-Off Ver
    office 2007
    Posts
    23

    Re: Count number of occurrences in month (google sheet)

    Hi data isn't sensitive but thanks for reminder for future

    The zeros are not a big deal, I've altered Column O to be currency only.

    It was more how would i be able to count number of occurrences in month, I've tried COUNTUNIQUE also but to no avail.

  6. #6
    Forum Guru Jonmo1's Avatar
    Join Date
    03-08-2013
    Location
    Bryan, TX
    MS-Off Ver
    Excel 2010
    Posts
    9,763

    Re: Count number of occurrences in month (google sheet)

    Try

    =COUNTIFS($B$18:$B$100,">="&$S6,$B$18:$B$100,"<"&EOMONTH($S6,0)+1)
    and
    =SUMIFS($O$18:$O$100,$B$18:$B$100,">="&$S6,$B$18:$B$100,"<"&EOMONTH($S6,0)+1)


    And to do just the current month

    =COUNTIFS($B$18:$B$100,">="&EOMONTH(TODAY(),-1)+1,$B$18:$B$100,"<"&EOMONTH(TODAY(),0)+1)
    and
    =SUMIFS($O$18:$O$100,$B$18:$B$100,">="&EOMONTH(TODAY(),-1)+1,$B$18:$B$100,"<"&EOMONTH(TODAY(),0)+1)

  7. #7
    Registered User
    Join Date
    07-09-2015
    Location
    Cardiff
    MS-Off Ver
    office 2007
    Posts
    23

    Re: Count number of occurrences in month (google sheet)

    Spot on Thank you very much

    Quote Originally Posted by Jonmo1 View Post
    Try

    =COUNTIFS($B$18:$B$100,">="&$S6,$B$18:$B$100,"<"&EOMONTH($S6,0)+1)
    and
    =SUMIFS($O$18:$O$100,$B$18:$B$100,">="&$S6,$B$18:$B$100,"<"&EOMONTH($S6,0)+1)


    And to do just the current month

    =COUNTIFS($B$18:$B$100,">="&EOMONTH(TODAY(),-1)+1,$B$18:$B$100,"<"&EOMONTH(TODAY(),0)+1)
    and
    =SUMIFS($O$18:$O$100,$B$18:$B$100,">="&EOMONTH(TODAY(),-1)+1,$B$18:$B$100,"<"&EOMONTH(TODAY(),0)+1)

  8. #8
    Forum Guru Jonmo1's Avatar
    Join Date
    03-08-2013
    Location
    Bryan, TX
    MS-Off Ver
    Excel 2010
    Posts
    9,763

    Re: Count number of occurrences in month (google sheet)

    You're welcome.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. [SOLVED] Counting number of occurrences in a given month
    By tief10 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 05-16-2014, 02:20 AM
  2. [SOLVED] Count Occurrences Date Range Falls Within Month
    By Rbooth in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 02-25-2014, 06:47 PM
  3. [SOLVED] Count number of occurrences but if there are consecutive matches count them as one
    By michaljireht in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 11-26-2013, 08:26 PM
  4. Count the occurrences of dates in a month against a condition
    By cicilyantony in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 04-23-2013, 01:26 AM
  5. VBA Code help to count no. of occurrences per month
    By soph33 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 09-01-2009, 02:17 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1