+ Reply to Thread
Results 1 to 6 of 6

Multiple COUNTIF and SUMIF criteria

  1. #1
    Registered User
    Join Date
    06-13-2018
    Location
    Newcastle, England
    MS-Off Ver
    2016
    Posts
    25

    Multiple COUNTIF and SUMIF criteria

    Hello, I have been trying to solve this for a few hours but to no luck. Any assistance would be greatly appreciated.

    I've attached a simplified example worksheet of what I am trying to achieve so I can apply this to my larger main spreadsheet. I have just manually inserted the data in the 'Stats' table where the formulas should be.

    Thing that need to be considered:

    The names in the 'Options' table, that links to the data validation of the 'Projects Data' for the main spreadsheet will be susceptible to change, so in the seach criteria for COUNTIF/SUMIF can't be "PM3", needs to be the cell reference.

    Completed projects are not to be counted in the 'Stats' table. (This is where it started going wrong for me)

    Optionially is it possible to not count PM/QS's if they are either left blank or have NA typed in the cell.

    I hope the example and info below is sufficient, please do ask if you need further information.
    Attached Files Attached Files
    Last edited by Deaco; 05-08-2019 at 10:00 AM. Reason: SOLVED

  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
    44,339

    Re: Multiple COUNTIF and SUMIF criteria

    Let's just go for the easy ones:

    Formula: copy to clipboard
    Please Login or Register  to view this content.
    and
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    You might need to sum the values for the left hand side.
    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 Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    43,984

    Re: Multiple COUNTIF and SUMIF criteria

    Mmm. TMS's looks simpler than mine:

    =SUMPRODUCT((LEFT($F$4:$F$11,2)="PM")*(LEFT($G$4:$G$11,2)="QS")*($E$4:$E$11=J5))

    to count and

    =SUMPRODUCT((LEFT($F$4:$F$11,2)="PM")*(LEFT($G$4:$G$11,2)="QS")*($E$4:$E$11=J5)*$H$4:$H$11)

    to sum, with a cut down version for the QS's only. see sheet.
    Attached Files Attached Files
    Glenn




    None of us get paid for helping you... we do this for fun. So DON'T FORGET to say "Thank You" to all who have freely given some of their time to help YOU.

    Temporary addition of accented to illustrate ongoing problem to the TT: L? fh?ile P?draig sona dhaoibh

  4. #4
    Registered User
    Join Date
    06-13-2018
    Location
    Newcastle, England
    MS-Off Ver
    2016
    Posts
    25

    Re: Multiple COUNTIF and SUMIF criteria

    Thankyou both have helped, I was a little off with the way I have wrote the formula

  5. #5
    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
    44,339

    Re: Multiple COUNTIF and SUMIF criteria

    Thanks for the rep.

  6. #6
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    43,984

    Re: Multiple COUNTIF and SUMIF criteria

    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. Criteria With Countif or Sumif and Frequency Requirement
    By lsantana in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 07-13-2017, 12:03 PM
  2. Countif and sumif with multiple criteria
    By csnyder10 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 01-19-2016, 02:30 PM
  3. SUMIF, COUNTIF with multiple criteria
    By montreal1775 in forum Excel General
    Replies: 5
    Last Post: 03-05-2010, 12:14 PM
  4. Sumif/Countif using Multiple Criteria
    By blueyz829 in forum Excel General
    Replies: 5
    Last Post: 11-02-2009, 03:25 PM
  5. Countif or Sumif with multiple criteria
    By Eladamri in forum Excel Formulas & Functions
    Replies: 16
    Last Post: 12-22-2006, 07:45 AM
  6. multiple criteria with countif or sumif
    By Renee in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 07-28-2006, 09:05 AM
  7. [SOLVED] Multiple Criteria for COUNTIF and SUMIF
    By nils_odendaal in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 11-16-2005, 04:45 AM

Tags for this Thread

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