+ Reply to Thread
Results 1 to 4 of 4

COUNTIF visible cells matching specific criteria

  1. #1
    Registered User
    Join Date
    02-17-2015
    Location
    England
    MS-Off Ver
    2010
    Posts
    32

    COUNTIF visible cells matching specific criteria

    Hello,

    Can someone please help me!!!!

    I had created a formula for COUNTIF, however once I applied a filter in my data this did not change my results and graphs. Reading some other posts I have been able to use the SUMPRODUCT formula, which works fine for just looking for the letter A on its own. However I can't get it to work when the letter A is within a word.

    This is the formula I am currently using:

    =SUMPRODUCT(SUBTOTAL(3,OFFSET('Error Sheet'!I2:I60000,ROW('Error Sheet'!I2:I60000)
    -MIN(ROW('Error Sheet'!I2:I60000)),,1)), --('Error Sheet'!I2:I60000="A"))

    I Have tried *A* but this also doesn't work.

    Any Help would be greatly appreciated as this is the only problem I am having to complete my project.

    Many Thanks

    MP

  2. #2
    Forum Expert daddylonglegs's Avatar
    Join Date
    01-14-2006
    Location
    England
    MS-Off Ver
    2016
    Posts
    14,675

    Re: COUNTIF visible cells matching specific criteria

    Try using SEARCH or FIND like this

    =SUMPRODUCT(SUBTOTAL(3,OFFSET('Error Sheet'!I2:I60000,ROW('Error Sheet'!I2:I60000)
    -MIN(ROW('Error Sheet'!I2:I60000)),,1)), --ISNUMBER(SEARCH("A",'Error Sheet'!I2:I60000)))

    SEARCH function is not case-sensitive so it will count visible cells containing "A" or "a" - if you just want "A" then change the SEARCH function to FIND which is case-sensitive
    Audere est facere

  3. #3
    Forum Guru Jonmo1's Avatar
    Join Date
    03-08-2013
    Location
    Bryan, TX
    MS-Off Ver
    Excel 2010
    Posts
    9,763

    Re: COUNTIF visible cells matching specific criteria

    I don't know why, but I always prefer to put the subtotal in a column by itself, then add a criteria to a countifs formula for 1 on that column..

    Say your original countif is
    =COUNTIF('Error Sheet'!I2:I60000,"*A*")

    Then in an available column, Say M on the Error Sheet..
    M2: =SUBTOTAL(103,I2)
    And Fill down.

    Then you can use column M in countifs, testing it for 1.
    =COUNTIF('Error Sheet'!I2:I60000,"*A*",'Error Sheet'!M2:M60000,1)

  4. #4
    Registered User
    Join Date
    02-17-2015
    Location
    England
    MS-Off Ver
    2010
    Posts
    32

    Re: COUNTIF visible cells matching specific criteria

    Thank you daddylonglegs!!!!!!

    It works brilliant and thank you for the quick reply!!!!

+ 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. Countif to visible cells only
    By kokapelly in forum Excel General
    Replies: 9
    Last Post: 11-05-2014, 11:37 AM
  2. CountIF Visible Cells only
    By mlucas.ftw in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 02-25-2014, 02:17 AM
  3. Countif only visible cells
    By Jonathan78 in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 10-30-2010, 04:34 AM
  4. countif only visible cells
    By nicko54 in forum Excel General
    Replies: 4
    Last Post: 02-15-2010, 01:14 PM
  5. Visible PivotItems matching criteria
    By westg in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 08-31-2005, 01:05 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