+ Reply to Thread
Results 1 to 3 of 3

problem in my countif

  1. #1
    Forum Contributor
    Join Date
    05-14-2007
    Location
    London
    MS-Off Ver
    office 365
    Posts
    118

    problem in my countif

    does anyone know why this
    =COUNTIF($A$10:$A$12,"*AF3*")

    will only pick out one occurance of af3 in a cell even if that cell has 2 or more af3 in it eg

    A
    af3
    af3
    af3,af3,af3
    af3

    will give value of 4 not 6 ie it counts the 3 af3 in row 3 as only 1?

    thank you

  2. #2
    Forum Expert
    Join Date
    09-09-2005
    Location
    England
    MS-Off Ver
    2007
    Posts
    1,500
    Yes countif only counts the number of cells that meet a criteria. the wildcards allow the text to be anywhere in the cell, but it will only be counted once per cell if it is true

    if the following is entered as an array holding down shift and ctrl then hitting enter after you have typed it, and af3 is in cell b10

    =SUM(LEN(A10:A12)-LEN(SUBSTITUTE(A10:A12,B10,"")))/len(b10)

    that should work, let me know

    Regards

    Dav

  3. #3
    Forum Contributor
    Join Date
    05-14-2007
    Location
    London
    MS-Off Ver
    office 365
    Posts
    118

    count if

    works a treat thank you

+ 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