+ Reply to Thread
Results 1 to 5 of 5

Countifs, If SUM of range is between two values.

  1. #1
    Forum Contributor
    Join Date
    12-24-2010
    Location
    South Africa
    MS-Off Ver
    Office 2003; Office 2007; Office 2010 (Prefered)
    Posts
    102

    Countifs, If SUM of range is between two values.

    Hi All,

    I have the following formula:
    =IF((COUNTIFS(data_sheet!U:U,Monthly_Report!H10))>166,0,COUNTIFS(data_sheet!U:U,Monthly_Report!H10,data_sheet!BN:BN,"Premier"))

    This formula counts values on my data sheet based on the specified criteria. I have this broken ito 3 section, each section that needs to be summed.

    Section 1 can not be greater than 165, if it is all the values in the range needs to be reset to 0
    Section 2 can not be greater than 190, but at the same time can not be less than 166, else is need to be reset to 0. How would I adjust the above mentioned formula to check these criteria?

    Thanks

  2. #2
    Forum Expert judgeh59's Avatar
    Join Date
    02-07-2013
    Location
    Boise, Idaho
    MS-Off Ver
    Excel 2016
    Posts
    2,310

    Re: Countifs, If SUM of range is between two values.

    this untested so I maybe missing some parenthesis here and there....

    Please Login or Register  to view this content.
    Ernest

    Please consider adding a * if I helped

    Nothing drives me crazy - I'm always close enough to walk....

  3. #3
    Forum Contributor
    Join Date
    12-24-2010
    Location
    South Africa
    MS-Off Ver
    Office 2003; Office 2007; Office 2010 (Prefered)
    Posts
    102

    Re: Countifs, If SUM of range is between two values.

    Hi there,

    This is almost what I am looking for, however, I need the check to be applied to the first part of the countifs, so it will count them regardless of the value, I.e premier, etc. and then if this total count is between the range due a count based on value.

  4. #4
    Forum Contributor
    Join Date
    12-24-2010
    Location
    South Africa
    MS-Off Ver
    Office 2003; Office 2007; Office 2010 (Prefered)
    Posts
    102

    Re: Countifs, If SUM of range is between two values.

    I found my own solution using what you had previously suggested. The solution:
    =IF(AND(COUNTIFS(data_sheet!U:U,Monthly_Report!H10)>=166,

    COUNTIFS(data_sheet!U:U,Monthly_Report!H10)<=190),

    COUNTIFS(data_sheet!U:U,Monthly_Report!H10,data_sheet!BN:BN,"Premier"),0)

  5. #5
    Forum Expert judgeh59's Avatar
    Join Date
    02-07-2013
    Location
    Boise, Idaho
    MS-Off Ver
    Excel 2016
    Posts
    2,310

    Re: Countifs, If SUM of range is between two values.

    I'm glad you figured it out...thanks for the rep points....have a great day

+ 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. using countifs to track unique values over a date range
    By msnyderxc in forum Excel General
    Replies: 1
    Last Post: 03-21-2014, 11:48 AM
  2. Using countifs with date range, and summing values in that range
    By bmcoonan in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 08-30-2013, 11:28 AM
  3. Countifs formulas - use a range of values as the criteria
    By Smashels in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 08-06-2013, 02:48 PM
  4. COUNTIFS - Count all values in a range that equal any value in another range.
    By HeebieGeebie in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 06-12-2013, 09:05 AM
  5. COUNTIFS with a range of values for criteria
    By sslack88 in forum Excel General
    Replies: 3
    Last Post: 11-03-2008, 03:14 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