+ Reply to Thread
Results 1 to 4 of 4

Count() and CountIf() results don't make sense.

  1. #1
    Forum Expert
    Join Date
    03-31-2009
    Location
    Barstow, Ca
    MS-Off Ver
    Excel 2002 & 2007
    Posts
    2,164

    Count() and CountIf() results don't make sense.

    I hope someone can explain these results.

    I have a column that contains only numbers below Row 25.
    Please Login or Register  to view this content.
    HdgRow = $A$25
    There is nothing below $A$253
    There are no blank cells or 0s in $A$27:$A$253

    I can see that #3 + #4 + #5 = #1, which is what I expected. But I also expected #3 + #4 = #2.

    What does the results of #2 (300) mean? What are the other 73 values? Why doesn't it return the same as #1?
    Foxguy

    Remember to mark your questions [Solved] and rate the answer(s)
    Forum Rules are Here

  2. #2
    Valued Forum Contributor mohd9876's Avatar
    Join Date
    05-04-2011
    Location
    Amman, Jordan
    MS-Off Ver
    Excel 2010
    Posts
    426

    Re: Count() and CountIf() results don't make sense.

    I am guessing that there are some cells below row 253 that have some "text" values (maybe spaces!!) that don't get counted when using COUNT but get counted using COUNTIF... if that is not the case could you post your workbook to see exactly what is happening?

  3. #3
    Valued Forum Contributor mohd9876's Avatar
    Join Date
    05-04-2011
    Location
    Amman, Jordan
    MS-Off Ver
    Excel 2010
    Posts
    426

    Re: Count() and CountIf() results don't make sense.

    after trying countif it seems to count blank cells as well in 2010
    try countifs instead:
    =COUNTIFS(OFFSET(HdgRow,2,0,ROWS($A:$A)-ROW(HdgRow)-1,1),"<>0",OFFSET(HdgRow,2,0,ROWS($A:$A)-ROW(HdgRow)-1,1),"<>")

  4. #4
    Forum Guru (RIP) Marcol's Avatar
    Join Date
    12-23-2009
    Location
    Fife, Scotland
    MS-Off Ver
    Excel '97 & 2003/7
    Posts
    7,216

    Re: Count() and CountIf() results don't make sense.

    I can't replicate your problem with 2003.
    Can you post your workbook?

    What do you get with this?
    Please Login or Register  to view this content.
    and
    Please Login or Register  to view this content.
    etc ...
    If you need any more information, please feel free to ask.

    However,If this takes care of your needs, please select Thread Tools from menu above and set this topic to SOLVED. It helps everybody! ....

    Also
    اس کی مدد کرتا ہے اگر
    شکریہ کہنے کے لئے سٹار کلک کریں
    If you are satisfied by any members response to your problem please consider using the small Star icon bottom left of their post to show your appreciation.

+ 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