+ Reply to Thread
Results 1 to 8 of 8

Formula To Count Cells With Visible Text

  1. #1
    Registered User
    Join Date
    11-09-2011
    Location
    Sydney
    MS-Off Ver
    Excel 2007
    Posts
    80

    Formula To Count Cells With Visible Text

    Hi all,

    I have a column of cells (say N7:N149) for which I would like to count the number of times text is visible, as some are blank. Normally I would go =COUNTA(N7:N149), but in this instance the cells are only blank because I have related them to adjacent cells and nominated "" if those adjacent cells are blank, therefore when I use my =COUNTA(N7:N149) formula it gives me a total of 143 (149-7).

    Is there a way to get around this?

    Thanks in advance,
    avendi

  2. #2
    Registered User
    Join Date
    11-09-2011
    Location
    Sydney
    MS-Off Ver
    Excel 2007
    Posts
    80

    Re: Formula To Count Cells With Visible Text

    Oh, and apologies for the poor maths

  3. #3
    Forum Expert
    Join Date
    03-28-2014
    Location
    Hyderabad,India
    MS-Off Ver
    Excel 2013
    Posts
    1,887

    Re: Formula To Count Cells With Visible Text

    hi,

    Find the attached file.


    Punnam
    Attached Files Attached Files

  4. #4
    Registered User
    Join Date
    11-09-2011
    Location
    Sydney
    MS-Off Ver
    Excel 2007
    Posts
    80

    Re: Formula To Count Cells With Visible Text

    Hi Punnam,

    Thank you for this. I understand your spreadsheet, but am having a problem substituting what you chose as "d" into my document, in which there is no specific letter to choose from, simply text. I tried the following, but it did not work:
    =SUMPRODUCT((N7:N1048576="*")*(N7:N1048576<>""))
    Cheers

  5. #5
    Forum Expert
    Join Date
    03-28-2014
    Location
    Hyderabad,India
    MS-Off Ver
    Excel 2013
    Posts
    1,887

    Re: Formula To Count Cells With Visible Text

    Until unless u provide us a sample workbook with out any confidential data , it will be difficult to imagine which type of data is available in the said column
    =SUMPRODUCT((N9:N35<>"0")*(N9:N35<>""))

    Try this once

  6. #6
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,939

    Re: Formula To Count Cells With Visible Text

    Using Punnam's sample, try this instead...
    =SUMPRODUCT(--(N9:N35<>""))
    Replace the range with yours
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  7. #7
    Registered User
    Join Date
    11-09-2011
    Location
    Sydney
    MS-Off Ver
    Excel 2007
    Posts
    80

    Re: Formula To Count Cells With Visible Text

    That did it, thanks very much to you both.

  8. #8
    Forum Expert
    Join Date
    03-28-2014
    Location
    Hyderabad,India
    MS-Off Ver
    Excel 2013
    Posts
    1,887

    Re: Formula To Count Cells With Visible Text

    U r welcome avendi

    I thick u are satisfied with the solution, so mark the thread as solved, using the thread tools.

    U can thanks any who had helped u by adding reputation points using the star button .

    Punnam

+ 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. [SOLVED] Count only visible cells containing text
    By shameus in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 05-27-2014, 05:56 PM
  2. [SOLVED] Formula needed to only count total cells entered and not count adjacent text entered cells
    By excelteam777 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 07-07-2013, 06:22 PM
  3. [SOLVED] changing a current mod (count unique visible cells ->count unique visible cells criteria
    By liranbo in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 04-30-2012, 03:58 AM
  4. Count Visible Cells Within A Selection
    By bdb1974 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 03-25-2010, 10:20 AM
  5. count only visible cells
    By bnkone in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 03-30-2006, 08:45 PM

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