+ Reply to Thread
Results 1 to 2 of 2

Count certain texts in cells and provide percentage overall

  1. #1
    Registered User
    Join Date
    01-16-2014
    Location
    London
    MS-Off Ver
    Excel 2007
    Posts
    1

    Count certain texts in cells and provide percentage overall

    Hello

    Im using Excel 2007

    I have a long column populated with 'A' and 'B' and blank cells. I need to count the 'B's and blank cells, and then have an overall percentage.

    For example, there's 10 cells with 2xA, 3xB and 5xblanks and I need the formula to tell me 80%

    Can you help please?

    Thanks
    Jay

  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 certain texts in cells and provide percentage overall

    Hi and welcome to the forum,

    Try this formula

    =(COUNTIF(A1:A10,"B")+COUNTBLANK(A1:A10))/10

    Format cell as "%"

    or you can also use this one

    =SUMPRODUCT(--(A1:A10={"B",""}))/10


    A
    B
    1
    A
    80%
    2
    B
    3
    A
    4
    B
    5
    B
    6
    7
    8
    9
    10
    Last edited by AlKey; 01-16-2014 at 10:21 AM.
    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

+ 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. Macro to join text inputs with slight variation provide a count of its repetition
    By eemrun in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 01-07-2014, 11:08 PM
  2. Count number of occurrences (no exact texts)
    By Elainefish in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 05-16-2013, 01:59 PM
  3. Need a formula that will count cells and populate a percentage
    By waldock9 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 04-18-2013, 04:51 AM
  4. [SOLVED] How to count unique texts only with several conditions
    By caitlyn in forum Excel General
    Replies: 2
    Last Post: 01-17-2013, 11:37 PM
  5. Using Texts in Cells
    By Duncan in forum Excel General
    Replies: 4
    Last Post: 10-14-2005, 07:05 AM

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