+ Reply to Thread
Results 1 to 7 of 7

Sumif / count if?

  1. #1
    Registered User
    Join Date
    11-20-2011
    Location
    ireland
    MS-Off Ver
    Excel 2010
    Posts
    53

    Sumif / count if?

    Hi All

    I've used a countif formula in the attached for total green , amber and red.

    I've highlighted in grey where im stuck, i need it to pull the data based on area number.

    Example

    Total red = 3

    1 in area 2
    1 in area 11
    1 in area 31

    I wanted the boxes in grey to reflect this.

    Thanks
    Attached Files Attached Files

  2. #2
    Forum Contributor
    Join Date
    10-28-2015
    Location
    Lincolnshire, England
    MS-Off Ver
    2016
    Posts
    188

    Re: Sumif / count if?

    This works:

    =COUNTIFS($B$2:$B$19,$D23,$H$2:$H$19,F$20)

    You had "Automatic Calculations" turned OFF.

    Press F9 to re-calculate

    Thanks
    If myself or others have helped, please add to our reputation by pressing the 'Star' icon below this.

  3. #3
    Forum Expert leelnich's Avatar
    Join Date
    03-20-2017
    Location
    Delaware, USA
    MS-Off Ver
    Office 2016
    Posts
    2,807

    Re: Sumif / count if?

    JEEZ, That's 20 minutes I'll never get back trying to figure out why COUNTIFS wouldn't work.

    ...and if you set Column C to all 1's (Region=1), you can check Region AND Area:
    =COUNTIFS($H$2:$H$19,F$20,$A$2:$A$19,$C23,$B$2:$B$19,$D23)

    Please click the Add Reputation star below any helpful posts, and if you have your answer, mark your thread as SOLVED (Thread Tools up top). Thanks!-Lee
    Last edited by leelnich; 05-18-2017 at 07:50 AM.

  4. #4
    Forum Contributor
    Join Date
    10-28-2015
    Location
    Lincolnshire, England
    MS-Off Ver
    2016
    Posts
    188

    Re: Sumif / count if?

    Quote Originally Posted by leelnich View Post
    JEEZ, That's 20 minutes I'll never get back trying to figure out why COUNTIFS wouldn't work.
    I thought the same until i noticed the formula result was always "2" when starting from F27 and dragging across!

    Pressing the little "FX" button next to the forumla bar showed me that the Formula Result on other cells was different to "2"

    F9 recalculated and all worked - hope this helped!

  5. #5
    Registered User
    Join Date
    11-20-2011
    Location
    ireland
    MS-Off Ver
    Excel 2010
    Posts
    53

    Re: Sumif / count if?

    Thanks guys!!

    Last one - if i want to count amount of "how many fails" what would i use?

    Currently set as 3 a a total of three as there have been 3 fails altogether but again to split by area

  6. #6
    Forum Contributor
    Join Date
    10-28-2015
    Location
    Lincolnshire, England
    MS-Off Ver
    2016
    Posts
    188

    Re: Sumif / count if?

    Try this:

    =SUMIFS($G$2:$G$19,$B$2:$B$19,$D23)

    EDIT

    Use Countifs to count number of fails by area.

  7. #7
    Forum Expert leelnich's Avatar
    Join Date
    03-20-2017
    Location
    Delaware, USA
    MS-Off Ver
    Office 2016
    Posts
    2,807

    Re: Sumif / count if?

    "how many fails" relates to 'Total Fails' (Column J (=10)), correct?
    "number with fails" is Column I (=3= RED count)

+ 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] Combine SUMIF and COUNT IF
    By WerdnaStop in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 10-18-2016, 10:04 AM
  2. Sumif and Count
    By krunk in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 11-06-2014, 12:45 PM
  3. Using SUMIF to count certain criteria but exclude others
    By Dan27 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 05-24-2011, 07:39 AM
  4. SUMIF but need to count rather than sum
    By pat brown in forum Excel General
    Replies: 10
    Last Post: 03-15-2010, 10:34 AM
  5. Count, Countif, Sumif??
    By benjam_in in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 07-12-2006, 01:35 PM
  6. [SOLVED] sumif or count between zero and 3
    By tomr in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 03-26-2006, 07:10 PM
  7. [SOLVED] RE: sumif or count between zero and 3
    By Franksta in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 03-26-2006, 06:50 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