+ Reply to Thread
Results 1 to 10 of 10

counting total cells with text

  1. #1
    Registered User
    Join Date
    09-06-2005
    Location
    east coast
    Posts
    2

    counting total cells with text

    Hi , I have a column with text and blanks and I am trying to count the total number of cells with text. I searched through this site and found something with COUNTA() - COUNT() but this doesn't work because I have no numerical values. Any ideas are sincerely appreciated


    Thank you

  2. #2
    Registered User
    Join Date
    09-16-2003
    Location
    Waiau Pa NZ
    Posts
    81
    One way
    =ROWS(A1:A20)-COUNTBLANK(A1:A20)
    Greetings from New Zealand
    Bill Kuunders

  3. #3
    CLR
    Guest

    Re: counting total cells with text

    Your original formula will work even tho there are no numerical values,
    however, this will do it by itself.
    (Substitute your column designation for A:A)

    =COUNTA(A:A)

    Vaya con Dios,
    Chuck, CABGx3


    "peace" <[email protected]> wrote in
    message news:[email protected]...
    >
    > Hi , I have a column with text and blanks and I am trying to count the
    > total number of cells with text. I searched through this site and
    > found something with COUNTA() - COUNT() but this doesn't work because I
    > have no numerical values. Any ideas are sincerely appreciated
    >
    >
    > Thank you
    >
    >
    > --
    > peace
    > ------------------------------------------------------------------------
    > peace's Profile:

    http://www.excelforum.com/member.php...o&userid=27035
    > View this thread: http://www.excelforum.com/showthread...hreadid=444459
    >




  4. #4
    Forum Expert Cutter's Avatar
    Join Date
    05-24-2004
    Location
    Ontario,Canada
    MS-Off Ver
    Excel 2010
    Posts
    6,451
    Bear in mind that COUNTA(A:A) will return not only the number of cells that contain text but also the number of cells that contain formulas. If you have formulas returning the "" result to make your cells look like they're blank then you won't be getting an accurate count of cells containing text only.

  5. #5
    Registered User
    Join Date
    09-06-2005
    Location
    east coast
    Posts
    2

    counting cells with text

    Thanks to all those who responded. Cutter is right, counting cells with formulas that return blank values gives the wrong total number of cells with text. Is there some sort of trick I can use for this?

    Thanks again

  6. #6
    Forum Expert Cutter's Avatar
    Join Date
    05-24-2004
    Location
    Ontario,Canada
    MS-Off Ver
    Excel 2010
    Posts
    6,451
    One solution is to have a helper column somewhere with the formula:
    =IF(LEN(A1)>0,1,0)
    Copy the formula down as far as is needed.
    Then do a SUM() on that helper column

  7. #7
    Domenic
    Guest

    Re: counting total cells with text

    Try...

    =COUNTIF(A1:A100,"?*")

    or

    =COUNTIF(A:A,"?*")

    Hope this helps!

    In article <[email protected]>,
    peace <[email protected]> wrote:

    > Thanks to all those who responded. Cutter is right, counting cells with
    > formulas that return blank values gives the wrong total number of cells
    > with text. Is there some sort of trick I can use for this?
    >
    > Thanks again


  8. #8
    Registered User
    Join Date
    09-06-2005
    Posts
    26
    sorry to butt in, but I have the same issue, well almost, how do you count only the cell that has specific text?
    Like count only cells with "7p" and "7a" but not "off", or "sick" or "vacation"?

    Thanks.

  9. #9
    CLR
    Guest

    Re: counting total cells with text

    =COUNTIF(A:A,"7p")+COUNTIF(A:A,"7a")

    Vaya con Dios,
    Chuck, CABGx3


    "cardingtr" <[email protected]> wrote
    in message news:[email protected]...
    >
    > sorry to butt in, but I have the same issue, well almost, how do you
    > count only the cell that has specific text?
    > Like count only cells with "7p" and "7a" but not "off", or "sick" or
    > "vacation"?
    >
    > Thanks.
    >
    >
    > --
    > cardingtr
    > ------------------------------------------------------------------------
    > cardingtr's Profile:

    http://www.excelforum.com/member.php...o&userid=27027
    > View this thread: http://www.excelforum.com/showthread...hreadid=444459
    >




  10. #10
    Registered User
    Join Date
    09-06-2005
    Posts
    26
    Thanks you!

    Quote Originally Posted by CLR
    =COUNTIF(A:A,"7p")+COUNTIF(A:A,"7a")

    Vaya con Dios,
    Chuck, CABGx3


    "cardingtr" <[email protected]> wrote
    in message news:[email protected]...
    >
    > sorry to butt in, but I have the same issue, well almost, how do you
    > count only the cell that has specific text?
    > Like count only cells with "7p" and "7a" but not "off", or "sick" or
    > "vacation"?
    >
    > Thanks.
    >
    >
    > --
    > cardingtr
    > ------------------------------------------------------------------------
    > cardingtr's Profile:

    http://www.excelforum.com/member.php...o&userid=27027
    > View this thread: http://www.excelforum.com/showthread...hreadid=444459
    >

+ 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