+ Reply to Thread
Results 1 to 4 of 4

COUNTIF formula not working

  1. #1
    Forum Contributor
    Join Date
    01-11-2007
    Posts
    127

    COUNTIF formula not working

    =COUNTIF(G10:G1009,">C9")

    This formula is not returning the correct result. It returns 0. I want it to count the number of rows that contain a value, which is less than that in C9. Thanks.

    Dan

  2. #2
    Forum Expert Cutter's Avatar
    Join Date
    05-24-2004
    Location
    Ontario,Canada
    MS-Off Ver
    Excel 2010
    Posts
    6,451

    Re: COUNTIF formula not working

    You need to type it like this:

    =COUNTIF(G10:G1009,">"&C9)

    That will count values "greater than" C9 - contrary to what you say you want.
    Flip the > to < if you want less than C9.
    Last edited by Cutter; 06-17-2012 at 05:29 PM.

  3. #3
    Forum Contributor
    Join Date
    01-11-2007
    Posts
    127

    Re: COUNTIF formula not working

    Thanks Cutter. Yes my mistake with > and instead of <. Thanks

    Dan

  4. #4
    Forum Expert Cutter's Avatar
    Join Date
    05-24-2004
    Location
    Ontario,Canada
    MS-Off Ver
    Excel 2010
    Posts
    6,451

    Re: COUNTIF formula not working

    You're welcome. Don't forget to mark your thread as SOLVED (click on Forum Rules @ top of page and see rule #9 for instructions - if needed).

+ 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