+ Reply to Thread
Results 1 to 6 of 6

countif formula is counting off by 2

  1. #1
    Registered User
    Join Date
    08-08-2013
    Location
    Miami
    MS-Off Ver
    Excel 2010
    Posts
    9

    countif formula is counting off by 2

    I'm using the countif formula to count all the blank cells

    =COUNTIF(AH$2:AH$1333,"<>")

    it's working everywhere except in 1 column, it's giving a total of 1215 when it should 1213, any suggestion on solving this?

  2. #2
    Registered User
    Join Date
    08-05-2013
    Location
    USA
    MS-Off Ver
    2010
    Posts
    76

    Re: countif formula is counting off by 2

    Have you tried =COUNTBLANK(AH$2:AH$1333)

  3. #3
    Forum Expert Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens(The homeland of the Democracy!). Greece
    MS-Off Ver
    Excel 1997!&2003 & 2007&2010
    Posts
    13,744

    Re: countif formula is counting off by 2

    Why don't you use COUNTBLANK function?

    =COUNTIF(AH$2:AH$1333)
    Regards

    Fotis.

    -This is my Greek whisper to Europe.

    --Remember, saying thanks only takes a second or two. Click the little star * below, to give some Rep if you think an answer deserves it.

    Advanced Excel Techniques: http://excelxor.com/

    --KISS(Keep it simple Stupid)

    --Bring them back.

    ---See about Acropolis of Athens.

    --Visit Greece.

  4. #4
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: countif formula is counting off by 2

    That particular function syntax will include in the count cells that contain formula blanks.

    Try this...

    =SUMPRODUCT(--(AH$2:AH$1333<>""))
    Biff
    Microsoft MVP Excel
    Keep It Simple Stupid

    Let's Go Pens. We Want The Cup.

  5. #5
    Registered User
    Join Date
    08-08-2013
    Location
    Miami
    MS-Off Ver
    Excel 2010
    Posts
    9

    Re: countif formula is counting off by 2

    countblank gives me 119

    sumproduct worked... thanks!!!

  6. #6
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: countif formula is counting off by 2

    You're welcome. Thanks for the feedback!

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. [SOLVED] COUNTIF not counting
    By alb43 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 01-16-2013, 08:11 AM
  2. Counting with criteria (more than countif?)
    By C'mern in forum Excel General
    Replies: 5
    Last Post: 11-17-2011, 12:22 PM
  3. CountIf formula - Counting entries by the day of the week
    By IcemanFTW in forum Excel General
    Replies: 6
    Last Post: 03-03-2011, 01:04 PM
  4. My Countif formula is not accurately counting- Need to cound blank cells
    By mrgillus in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 08-10-2009, 02:59 PM
  5. Counting even/odd rows with countif
    By Orlic in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 12-10-2007, 01:07 AM

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