+ Reply to Thread
Results 1 to 4 of 4

Countifs multiple criteria- criteria if cell is greater than another i adjacent column

  1. #1
    Registered User
    Join Date
    06-08-2015
    Location
    West Coast, New Zealand
    MS-Off Ver
    2007
    Posts
    15

    Countifs multiple criteria- criteria if cell is greater than another i adjacent column

    Hi, I am trying to use the COUNTIFS function to ask in the second criteria if the value of a cell is greater than that of the adjacent cell.

    ie: Count the number of times the Value in A:A = "ON" and the Value in the correspond row of B:B is Greater than the adjacent cell in C:C

    Thanks in advance

    For some reason I can't attach WB?

    A:A B:B C:C
    ON 26 32
    ON 58 17
    OFF 87 68
    ON 14 44
    OFF 65 52
    OFF 7 13
    OFF 48 31
    ON 67 74
    ON 13 8
    Last edited by Sircool1; 05-26-2018 at 03:06 AM. Reason: Further Info reqquested

  2. #2
    Registered User
    Join Date
    05-26-2018
    Location
    Raipur
    MS-Off Ver
    office 2016
    Posts
    1

    Re: Countifs multiple criteria- criteria if cell is greater than another i adjacent column

    Please post expected result

  3. #3
    Forum Guru samba_ravi's Avatar
    Join Date
    07-26-2011
    Location
    Hyderabad, India
    MS-Off Ver
    Excel 2021
    Posts
    8,914

    Re: Countifs multiple criteria- criteria if cell is greater than another i adjacent column

    I think Countif(s) will not work in this case try below formula
    =SUMPRODUCT(($A$1:$A$100="ON")*($B$1:$B$100>$C$1:$C$100))
    Samba

    Say thanks to those who have helped you by clicking Add Reputation star.

  4. #4
    Registered User
    Join Date
    04-14-2018
    Location
    Vermont, USA
    MS-Off Ver
    Office 365
    Posts
    72

    Re: Countifs multiple criteria- criteria if cell is greater than another i adjacent column

    Quote Originally Posted by nflsales View Post
    =SUMPRODUCT(($A$1:$A$100="ON")*($B$1:$B$100>$C$1:$C$100))
    Samba, would you mind telling me how that works? I'd like to understand the use of SUMPRODUCT better. It looks like it should return 5 instances of "ON" multiplied by 2 instances of B>C. Instead it actually filters for "ON" then returns the 2 instances of B>C.

    What's the SUM and what's the PRODUCT?

    - Jeff

+ 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] Countifs with multiple criteria and ranges within single column?
    By Skiptomylou in forum Excel Formulas & Functions
    Replies: 12
    Last Post: 03-13-2018, 12:56 PM
  2. Replies: 16
    Last Post: 01-05-2018, 11:04 PM
  3. [SOLVED] Countifs multiple criteria, and 1 criteria Less than & Greater than
    By david gonzalez in forum Excel General
    Replies: 4
    Last Post: 06-30-2014, 10:33 PM
  4. [SOLVED] Using greater than or less than today as a criteria in a countifs
    By santanicopandimonium in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 01-05-2014, 02:48 AM
  5. Help With COUNTIFS Using Greater Than Criteria
    By amerain in forum Excel Formulas & Functions
    Replies: 14
    Last Post: 06-04-2013, 11:31 AM
  6. [SOLVED] Countifs function with multiple criteria in same column
    By sam99 in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 08-28-2012, 09:10 AM
  7. [SOLVED] Sum column if multiple criteria are met in adjacent cells
    By GateKeeper in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 06:05 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