+ Reply to Thread
Results 1 to 10 of 10

Countif to visible cells only

  1. #1
    Forum Contributor
    Join Date
    10-27-2012
    Location
    United States
    MS-Off Ver
    Excel 2010
    Posts
    136

    Countif to visible cells only

    Hi All,

    So today i found out that i can't use
    Please Login or Register  to view this content.
    to show me how many times an acc# showes up if the excel sheet is auto filtered. I then tried
    Please Login or Register  to view this content.
    But it seams i can not refference a cell. any help?

  2. #2
    Forum Contributor
    Join Date
    10-27-2012
    Location
    United States
    MS-Off Ver
    Excel 2010
    Posts
    136

    Re: Countif to visible cells only

    aww man comeone now... someone knows

  3. #3
    Registered User
    Join Date
    10-29-2014
    Location
    Toronto, Canada
    MS-Off Ver
    2007
    Posts
    4

    Re: Countif to visible cells only

    Hey, not really sure how that second formula works to get you the result.

    But, is this a complicated autofilter? Could you go about this indirectly by creating a second column that shows the value in Column F only if it meets the conditions of the autofilter? Then you can go ahead and count that column instead

  4. #4
    Forum Expert newdoverman's Avatar
    Join Date
    02-07-2013
    Location
    Port Dover, Ontario, Canada
    MS-Off Ver
    2010
    Posts
    10,330

    Re: Countif to visible cells only

    What do you mean by "But it seams i can not refference a cell. any help?"

    A workbook would help to understand what you are wanting to do.

    Attach a sample workbook. Make sure there is just enough data to demonstrate your need. Include a BEFORE sheet and an AFTER sheet in the workbook if needed to show the process you're trying to complete or automate. Make sure your desired results are shown, mock them up manually if necessary.

    Remember to desensitize the data.

    Click on GO ADVANCED and use the paperclip icon to open the upload window.

    View Pic
    <---------If you like someone's answer, click the star to the left of one of their posts to give them a reputation point for that answer.
    Ron W

  5. #5
    Forum Contributor
    Join Date
    10-27-2012
    Location
    United States
    MS-Off Ver
    Excel 2010
    Posts
    136

    Re: Countif to visible cells only

    Ok so attached a file Coulm I has the Countif formula that shows me how many time a policy shows up., but if you filter out on column D company name "Something" policy 333333333 will still show the count as 6 not 3 once the filter is in place.
    Attached Files Attached Files

  6. #6
    Forum Expert XOR LX's Avatar
    Join Date
    04-18-2013
    Location
    Turin, Italy
    MS-Off Ver
    Office 365
    Posts
    7,742

    Re: Countif to visible cells only

    Hi.

    I certainly wouldn't use an upper range reference as high as 10,000 unless absolutely necessary, but this should work in I2 and copied down:

    =SUMPRODUCT(SUBTOTAL(3,OFFSET($F$2,ROW($F$2:$F$10100)-MIN(ROW($F$2:$F$10100)),,,)),0+($F$2:$F$10100=F2))

    Regards
    Click * below if this answer helped

    Advanced Excel Techniques: http://excelxor.com/

  7. #7
    Forum Contributor
    Join Date
    08-04-2014
    Location
    Riga
    MS-Off Ver
    2010
    Posts
    579

    Re: Countif to visible cells only

    COUNTIF is working properly, check the formula. The rest of the cells in column I and all other columns for that matter are just hidden, so at this point your 1st COUNTIF (now in row 2, column I) is actually the one from row 7 in the original list. The auto-filter does not change the formula it just hides any other cells that do not match the filter.

  8. #8
    Forum Contributor
    Join Date
    10-27-2012
    Location
    United States
    MS-Off Ver
    Excel 2010
    Posts
    136

    Re: Countif to visible cells only

    Thanks XOR and no the range ref is nessary as the data we have is that large....
    Bmouse not sure what your saying sorry...

  9. #9
    Forum Contributor
    Join Date
    08-04-2014
    Location
    Riga
    MS-Off Ver
    2010
    Posts
    579

    Re: Countif to visible cells only

    I was just pointing out that COUNTIF is working as intended and auto-filters do not change formulas, nevermind.

  10. #10
    Forum Expert newdoverman's Avatar
    Join Date
    02-07-2013
    Location
    Port Dover, Ontario, Canada
    MS-Off Ver
    2010
    Posts
    10,330

    Re: Countif to visible cells only

    Does this slight variation work for you?
    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)

Similar Threads

  1. CountIF Visible Cells only
    By mlucas.ftw in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 02-25-2014, 02:17 AM
  2. Apply COUNTIF to visible cells in a range
    By Belthasar in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 06-21-2013, 05:15 AM
  3. Excel 2007 : COUNTIF and COUNTIFS on Visible Cells Only
    By aaron1976 in forum Excel General
    Replies: 8
    Last Post: 03-09-2012, 06:27 PM
  4. Countif only visible cells
    By Jonathan78 in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 10-30-2010, 04:34 AM
  5. countif only visible cells
    By nicko54 in forum Excel General
    Replies: 4
    Last Post: 02-15-2010, 01:14 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