+ Reply to Thread
Results 1 to 3 of 3

Can we use countif to count how many are greater than (rather than equal to) a constant?

  1. #1
    Registered User
    Join Date
    02-07-2012
    Location
    NJ, USA
    MS-Off Ver
    Excel 2007
    Posts
    42

    Can we use countif to count how many are greater than (rather than equal to) a constant?

    Dear Excel Gurus,

    Somewhere in my Excel file I named a cell and put a numerifc value in it. Let's say cell A2 is named "threshold" and has a value 5 in it.

    Now I want to write a formula somewhere else where I will count how many cells in a range (let's say B1:B10) are above the threshold.

    If I wanted to know how many cells in the range are equal to the threshold, that would be easy: =countif(b1:b10, threshold)
    But I want something like =countif(b1:b10, > threshold).

    IS there a way to do this with countif or some other function?

    Many thanks.

    Studiosa.

  2. #2
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,697

    Re: Can we use countif to count how many are greater than (rather than equal to) a constan

    Yes, like this:

    =COUNTIF(B1:B10,">"&threshold)

    Hope this helps.

    Pete

  3. #3
    Registered User
    Join Date
    02-07-2012
    Location
    NJ, USA
    MS-Off Ver
    Excel 2007
    Posts
    42

    Re: Can we use countif to count how many are greater than (rather than equal to) a constan

    Pete_UK,
    Thank you. Works like a charm :-)

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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