+ Reply to Thread
Results 1 to 4 of 4

Count texts, not cells with only spaces

  1. #1
    Registered User
    Join Date
    09-16-2019
    Location
    Philippines
    MS-Off Ver
    365
    Posts
    29

    Count texts, not cells with only spaces

    How do I count cells with texts but wouldn't include in the count those cells containing spaces, can't remove those spaces as I need them in my conditional formatting.
    Attached file with the supposed count I need if I ain't being clear. Thanks
    Attached Files Attached Files

  2. #2
    Forum Guru AlKey's Avatar
    Join Date
    07-20-2009
    Location
    Lakeland, FL USA
    MS-Off Ver
    Microsoft Office 2010/ Office 365
    Posts
    8,903

    Re: Count texts, not cells with only spaces

    Enter formula in C22 and drag formula across

    Formula: copy to clipboard
    Please Login or Register  to view this content.
    If you like my answer please click on * Add Reputation
    Don't forget to mark threads as "Solved" if your problem has been resolved

    "Nothing is so firmly believed as what we least know."
    --Michel de Montaigne

  3. #3
    Registered User
    Join Date
    09-16-2019
    Location
    Philippines
    MS-Off Ver
    365
    Posts
    29

    Re: Count texts, not cells with only spaces

    thanks, how about if the word "project" isn't a constant in the other cells? i mean if the other cells has also texts that I want counted but doesn't include the word project
    Last edited by mia12; 10-10-2019 at 09:31 AM.

  4. #4
    Forum Contributor
    Join Date
    10-30-2003
    Location
    Singapore
    MS-Off Ver
    Excel 2019
    Posts
    197

    Re: Count texts, not cells with only spaces

    Then, switch to use SUMPRODUCT+SEARCH:

    =IFERROR(1/(1/SUMPRODUCT(0+ISNUMBER(SEARCH("project",Schedule[2])))),"")

    Regards
    Bosco

+ 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. Replies: 11
    Last Post: 04-09-2019, 09:50 AM
  2. [SOLVED] highlighted cells which has spaces and characters more than said count
    By adeel1 in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 02-22-2017, 07:20 AM
  3. [SOLVED] To average cells included texts - how to ignore texts in those cells - help please
    By PrayoonD in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 11-23-2014, 12:32 PM
  4. How do I count the number of cells that have texts that are 6 letters long?
    By qwertybirdy in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 10-15-2014, 09:04 PM
  5. [SOLVED] Array formula to count cells matching various texts
    By pdanes in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 01-17-2014, 12:46 PM
  6. Count certain texts in cells and provide percentage overall
    By JaynRW in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 01-16-2014, 10:01 AM
  7. how to separate texts that contain irregular spaces?
    By evsean in forum Excel Formulas & Functions
    Replies: 11
    Last Post: 07-29-2012, 10:39 PM

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.6.0 RC 1