+ Reply to Thread
Results 1 to 3 of 3

count how many cells are text

  1. #1
    Registered User
    Join Date
    10-31-2011
    Location
    Amsterdam, Netherlands
    MS-Off Ver
    Excel 2007
    Posts
    4

    count how many cells are text

    Hi everybody

    I need some help with Excel



    I need a formula that would count how many times “M” , “P” and “G” are triple and four times

    in range C4: XFD4

    Formula M3 (3cells): M,M,M

    Formula P3 (3cells): P,P,P

    Formula G3 (3cells): G,G,G



    Formula M4 (4cells): M,M,M,M

    Formula P4 (4cells): P,P,P,P

    Formula G4 (4cells): G,G,G,G

    I created a previous post but i didn't know how to add an attachment after posting.
    So i created a new post with attachment
    Sorry for my bad english.


    Thanks in advance
    Attached Files Attached Files

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

    Re: count how many cells are text

    See attached.

    Created a table showing the letter of interest vs. the frequency of repeats...

    then added formula to count those grouped frequencies:

    =SUM(IF(FREQUENCY(IF($C$4:$Y$4=$A10,COLUMN($C$4:$Y$4)),IF($C$4:$Y$4<>$A10,COLUMN($C$4:$Y$4)))=B$9,1))

    this is an array formula and must be confirmed with CTRL+SHIFT+ENTER not just ENTER and copied down and over.
    Attached Files Attached Files
    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
    Forum Expert nilem's Avatar
    Join Date
    10-22-2011
    Location
    Ufa, Russia
    MS-Off Ver
    2013
    Posts
    3,377

    Re: count how many cells are text

    UDF (see green cells in attached)
    Please Login or Register  to view this content.
    Attached Files Attached Files

+ 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