+ Reply to Thread
Results 1 to 9 of 9

Counting occurence of multiple cells containing data

Hybrid View

  1. #1
    Registered User
    Join Date
    03-02-2007
    Posts
    10
    =(COUNTA(A1:T1)-SUM(COUNTIF(A1:T1,"v"),COUNTIF(A1:T1,"U")))/6
    Counts the total number of cells with the mentioned letters, but then just divides it by 6. This will not return the value I need.

    Example: in a row there are three groups of 6 cells containing "d", "a" or "n", and one group of 7. Your formula would return 4.166667 ((6+6+6+7)/6). However, I need it to return either 3 or 1 (depending wether I'm looking for groups of 6 or 7).

  2. #2
    Forum Contributor corinereyes's Avatar
    Join Date
    12-02-2003
    Location
    Philippines
    MS-Off Ver
    MS Excel 2016
    Posts
    520
    =(COUNTA(A1:T1)-SUM(COUNTIF(A1:T1,"v"),COUNTIF(A1:T1,"U")))/6
    fyi, the above formula, counts the number of non-blank cells minus (-) cells that contains "v" & cells that contains "U".

    In your example, if there are 20 cells (i.e. A1:T1), 6 cells are blank, 10 cells contain "d", 2 cells contain "v" and 2 cells contain "U",

    so:

    = (14 cells that contains text - (2 "v" + 2 "U"))/ 6 = 1.7

    can you post an example file and the expected results?
    Last edited by corinereyes; 11-07-2007 at 04:44 PM.
    Corine

+ 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