+ Reply to Thread
Results 1 to 4 of 4

Counting text, but not formulas

  1. #1
    Registered User
    Join Date
    12-03-2008
    Location
    Carlisle, PA
    Posts
    6

    Counting text, but not formulas

    It seems like a simple task, but it's a Monday and I can't seem to figure it out...

    All I want to do is add up the # of cells with text in them and leave out the blank cells. The problem is when I use COUNT or COUNTA it's counting the cells with formulas in it too. Ideas?

    THANKS!!!
    Last edited by erica6670; 12-15-2008 at 04:38 PM.

  2. #2
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898
    Try:

    =COUNTA(E1:E4)-COUNTBLANK(E1:E4)

    or

    =COUNTIF(E1:E4,"?*")

    adjust range to suit.
    Where there is a will there are many ways.

    If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below left corner

    Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.

  3. #3
    Registered User
    Join Date
    12-03-2008
    Location
    Carlisle, PA
    Posts
    6
    Awesome, thanks. I used the second. What does "?*" do in the formula?

  4. #4
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898
    Both the ? and * are wildcard characters...

    The ? means any single character
    The * means any number of characters

    If you use the ? only, it looks for cells with 1 character only.

    If you use the * only, it looks for cells with anything in them (including formula blanks).

    Using both, says at least one "visible" character...

    Hope that helps


    If you are satisfied with the solution provided, please mark your thread as Solved.

    How to mark a thread Solved
    Go to the first post
    Click edit
    Click Go Advanced
    Just below the word Title you will see a dropdown with the word No prefix.
    Change to Solved
    Click Save

+ 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