+ Reply to Thread
Results 1 to 11 of 11

CountIFS Function

  1. #1
    Forum Contributor
    Join Date
    10-06-2015
    Location
    london
    MS-Off Ver
    2013
    Posts
    149

    CountIFS Function

    Need help on a countif function will count the number of inspections in a particular area.

    For example if taking the first line, it counts the number of inspections for 1st Jan for planting but want it where it also counts for if the site type falls in Wells aswell.

  2. #2
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    48,013

    Re: CountIFS Function

    For Grass Maintenance row:
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    Please do not upload Macro Enabled Workbooks where the VBA Project is protected and locked for viewing. no-one should enable macros if they can't see the code.

    And, if you are going to set Calculation to Manual on your workbook, it's worth making people aware of that too.

    Regards, TMS
    Trevor Shuttleworth - Retired Excel/VBA Consultant

    I dream of a better world where chickens can cross the road without having their motives questioned

    'Being unapologetic means never having to say you're sorry' John Cooper Clarke


  3. #3
    Forum Contributor
    Join Date
    10-06-2015
    Location
    london
    MS-Off Ver
    2013
    Posts
    149

    Re: CountIFS Function

    Does this only count for those that fall in the site type wells?

  4. #4
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    48,013

    Re: CountIFS Function

    It counts whatever is in cell I1. You could put a drop down Data Validation selection in there, or anywhere else for that matter. For testing, I just put "Wells" into cell I1 (no quotes).

  5. #5
    Forum Contributor
    Join Date
    10-06-2015
    Location
    london
    MS-Off Ver
    2013
    Posts
    149

    Re: CountIFS Function

    Are you able to send me a copy of the worksheet with that formula in it?

  6. #6
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    48,013

    Re: CountIFS Function

    Apologies, that should have been:
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    Although I made the field that I added absolute, I forgot to do the same with the other fields.

    Regards, TMS

  7. #7
    Forum Contributor
    Join Date
    10-06-2015
    Location
    london
    MS-Off Ver
    2013
    Posts
    149

    Re: CountIFS Function

    can you send me a copy of the spreadsheet working as it will not work?

  8. #8
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    48,013

    Re: CountIFS Function

    See attached
    Attached Files Attached Files

  9. #9
    Forum Contributor
    Join Date
    10-06-2015
    Location
    london
    MS-Off Ver
    2013
    Posts
    149

    Re: CountIFS Function

    If I wanted to put in the criteria the name 'Wells' to pick up from the inspection sheet, how would I do that?

    =COUNTIFS(Inspections[[Grass Maintenance]:[Grass Maintenance]],">3",Inspections[[Sample Date]:[Sample Date]],">=" & B6,Inspections[[Sample Date]:[Sample Date]],"<" & C6,Inspections[[Site Type]:[Site Type]],$C$2:$C$1347 “Wells”)

    Tried this but does not work

  10. #10
    Forum Contributor
    Join Date
    10-06-2015
    Location
    london
    MS-Off Ver
    2013
    Posts
    149

    Re: CountIFS Function

    working now thank you

  11. #11
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    48,013

    Re: CountIFS Function

    You're welcome.

    And for anyone else watching:
    Formula: copy to clipboard
    Please Login or Register  to view this content.



    Regards, TMS



    If you are satisfied with the solution(s) provided, please mark your thread as Solved.


    New quick method:
    Select Thread Tools-> Mark thread as Solved. To undo, select Thread Tools-> Mark thread as Unsolved.

    Or you can use this way:

    How to mark a thread Solved
    Go to the first post
    Click edit
    Click Go Advanced
    Just below the word Title you will see a dropdown with the word No prefix.
    Change to Solved
    Click Save


    You may also want to consider thanking those people who helped you by clicking on the little star at the bottom left of their reply to your question.

+ 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. COUNTIF/COUNTIFS function + nested user-defined function
    By shamjamali in forum Excel General
    Replies: 1
    Last Post: 05-12-2015, 09:12 PM
  2. Use COUNTIFS function on results of DATEVALUE function?
    By Si902 in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 04-16-2015, 08:13 PM
  3. [SOLVED] Help with Countifs function
    By HDeuce in forum Excel General
    Replies: 3
    Last Post: 11-26-2014, 09:37 AM
  4. [SOLVED] COUNTIFS function...
    By ericarodgers in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 03-10-2013, 01:34 AM
  5. [SOLVED] Help with the =COUNTIFS function
    By jbunk in forum Excel General
    Replies: 3
    Last Post: 05-18-2012, 04:14 PM
  6. Replies: 0
    Last Post: 12-16-2011, 09:01 AM
  7. Countifs function
    By jerrywoods in forum Excel General
    Replies: 1
    Last Post: 11-07-2008, 05:14 AM

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