+ Reply to Thread
Results 1 to 4 of 4

Count # Times Value of Cell in Range 2 is > Than Value of a Cell in Range 1

  1. #1
    Registered User
    Join Date
    01-11-2012
    Location
    Elgin, IL
    MS-Off Ver
    Excel 2006
    Posts
    29

    Count # Times Value of Cell in Range 2 is > Than Value of a Cell in Range 1

    I am using Excel 2010.

    I need to count the number of times the cell values in range 2 are greater than the cell values in range 1. I've tried different variations with no luck. I also tried using the one suggested by the software via the Formula/Function option and did not get the expected results. I didn't try COUNTIFS because it I don't have multiple criterias (at least I don't think that I do).
    Some of the variations that I've tried:
    1. =countif(z2:z23,">",s2:s23)
    2. =countif((z2:z23)'>'(s2:s23))
    3. =countif(z2:z23,'">s2:s23") Note: This was the formula created by the software based on the words I entered

    I'd appreciate any suggestions.

    MLCall

  2. #2
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: Count # Times Value of Cell in Range 2 is > Than Value of a Cell in Range 1

    With an helpcolumn (see the attached file).

    Please Login or Register  to view this content.
    Attached Files Attached Files
    Notice my main language is not English.

    I appreciate it, if you reply on my solution.

    If you are satisfied with the solution, please mark the question solved.

    You can add reputation by clicking on the star * add reputation.

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

    Re: Count # Times Value of Cell in Range 2 is > Than Value of a Cell in Range 1

    Use the this one:

    =countif(z2:z23,">"&s2:s23)

    but instead of using <enter> to commit the formula, use the key combination of Ctrl-Shift-Enter (CSE) together to turn it into an array formula. If you do this correctly then the formula will be wrapped in curly braces when viewed in the formula bar, but you should not type these yourself. If you need to amend the formula then you will have to use CSE again to commit the formula.

    Another way would be to do this:

    =SUM(IF(Z2:Z23>S2:S23,1,0))

    again committed using CSE.

    Hope this helps.

    Pete

  4. #4
    Registered User
    Join Date
    01-11-2012
    Location
    Elgin, IL
    MS-Off Ver
    Excel 2006
    Posts
    29

    Re: Count # Times Value of Cell in Range 2 is > Than Value of a Cell in Range 1

    Pete,

    I used the SUM option which worked great for me. I have to be honest and say that I don't understand the "1,0" portion of the formula although my predecesor used it in a worksheet that I am maintaining. Bottom line though, I got my expected results.

    Kudos!

    MLCall

+ 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