+ Reply to Thread
Results 1 to 4 of 4

Why would a COUNTIF formula work for one criteria and not another, how do I fix this?

  1. #1
    Registered User
    Join Date
    09-21-2011
    Location
    London
    MS-Off Ver
    365
    Posts
    71

    Why would a COUNTIF formula work for one criteria and not another, how do I fix this?

    Morning all,

    I am a bit confused. I have a COUNTIF formula in the attached spreadsheet, that works perfectly for one word, and not at all for another word. I have included a forumla in the spreadsheet using both words so you can see what I mean.

    I am really baffled, anyone know why it might do this, and what I can do to fix it?

    Thanks for your thoughts on this one.

    Kate :-)
    Attached Files Attached Files
    Last edited by necht_angel; 03-08-2012 at 06:41 AM.

  2. #2
    Forum Expert
    Join Date
    07-16-2010
    Location
    Northumberland, UK
    MS-Off Ver
    Excel 2007 (home), Excel 2010 (work)
    Posts
    3,054

    Re: Why would a COUNTIF formula work for one criteria and not another, how do I fix this?

    DRYLINE has a space at the end of it in your drop-down list.

    If you change your formula to:

    =COUNTIF(B2:B15,"DRYLINE ")

    It will work fine.

  3. #3
    Registered User
    Join Date
    09-21-2011
    Location
    London
    MS-Off Ver
    365
    Posts
    71

    Re: Why would a COUNTIF formula work for one criteria and not another, how do I fix this?

    lol omg I have been staring at this for hours trying to figure it out, what a plonker lol. Thank you so much I dread to think how much longer I would have baffled myself over it!

    Kate

  4. #4
    Forum Expert
    Join Date
    07-16-2010
    Location
    Northumberland, UK
    MS-Off Ver
    Excel 2007 (home), Excel 2010 (work)
    Posts
    3,054

    Re: Why would a COUNTIF formula work for one criteria and not another, how do I fix this?

    No problems - we all miss the obvious some times. I once spent about an hour trying to work out why a COUNTIF of text answers wasn't working before I realised I was using SUMIF instead of COUNTIF

+ 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