Error Checking in Excel
Thanks Thanks:  0
Likes Likes:  0
Results 1 to 3 of 3

Thread: Tricky COUNTIF Question

  1. #1
    New Member
    Join Date
    Mar 2002
    Posts
    2
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Default

    Hi, I am having a problem using COUNTIF to count using a range of numbers in 2 different cells. For example, in c7 I have 24 and in c8 have 26 and I want to count the number of clients that we have that produced revenue >=c7 AND <=C8. It is difficult because COUNTIF will not let you use <> to reference a given cell. any clue on how TO DO THIS? Below is the formula I am currently using to reference one cell and it works fine. I just want to add a >c7 and <=c8 in place of the C7.

    =COUNTIF(Sheet1!$B$4:$B$1846,C7)

  2. #2
    MrExcel MVP Aladin Akyurek's Avatar
    Join Date
    Feb 2002
    Location
    The Hague, NL
    Posts
    83,658
    Post Thanks / Like
    Mentioned
    33 Post(s)
    Tagged
    6 Thread(s)

    Default

    On 2002-03-27 16:33, gyerkes wrote:
    Hi, I am having a problem using COUNTIF to count using a range of numbers in 2 different cells. For example, in c7 I have 24 and in c8 have 26 and I want to count the number of clients that we have that produced revenue >=c7 AND <=C8. It is difficult because COUNTIF will not let you use <> to reference a given cell. any clue on how TO DO THIS? Below is the formula I am currently using to reference one cell and it works fine. I just want to add a >c7 and <=c8 in place of the C7.

    =COUNTIF(Sheet1!$B$4:$B$1846,C7)
    Try:

    =COUNTIF(Sheet1!$B$4:$B$1846,">"&C7)-COUNTIF(Sheet1!$B$4:$B$1846,">"&C8)

  3. #3
    New Member
    Join Date
    Mar 2002
    Posts
    2
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Default

    Aladin, you are the man!! Thanks a lot!

Some videos you may like

User Tag List

Like this thread? Share it with others

Like this thread? Share it with others

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •