+ Reply to Thread
Results 1 to 3 of 3

Thread: CountIf on only one cell

  1. #1
    Registered User
    Join Date
    01-31-2011
    Location
    Ann Arbor, MI
    MS-Off Ver
    Excel for Mac
    Posts
    14

    Question CountIf on only one cell

    I am trying to use CountIf on one cell to count all the comma's in the cell, but it keeps coming back with a 0. Is there another command I should be using for this? My formula looks like this: =COUNTIF(Sheet1!C1,",*")

  2. #2
    Cheeky Forum Moderator Ron Coderre's Avatar
    Join Date
    03-22-2005
    Location
    Boston, Massachusetts
    MS-Off Ver
    2003, 2007, 2010
    Posts
    3,712

    Re: CountIf on only one cell

    Try this:
    =LEN(Sheet1!C1)-LEN(SUBSTITUTE(Sheet1!C1,",",""))
    Excel really needs a function that does that.
    Regards,

    Ron
    Microsoft MVP - Excel
    (Oct 2006 - Sep 2012)

    Click here to see the Forum Rules

  3. #3
    Registered User
    Join Date
    01-31-2011
    Location
    Ann Arbor, MI
    MS-Off Ver
    Excel for Mac
    Posts
    14

    Re: CountIf on only one cell

    Worked perfectly! That's a huge help thank you

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Tags for this Thread

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.2.0