+ Reply to Thread
Results 1 to 6 of 6

Count if unique values in range in visible cellls only (after autofilter)

  1. #1
    Forum Contributor
    Join Date
    09-04-2013
    Location
    USA
    MS-Off Ver
    Excel 2010
    Posts
    298

    Count if unique values in range in visible cellls only (after autofilter)

    I have a VBA macro that will autofilter the sheet based on criteria,

    I then need to get a count of all the unique values in range (BS2:BS1000) in the cells visible after the autofilter.

    How would I do this?

  2. #2
    Forum Expert
    Join Date
    02-22-2013
    Location
    London, UK
    MS-Off Ver
    Office 365
    Posts
    1,218

    Re: Count if unique values in range in visible cellls only (after autofilter)

    One way would be using Dictionary,
    Please Login or Register  to view this content.

  3. #3
    Forum Expert
    Join Date
    04-23-2009
    Location
    Matrouh, Egypt
    MS-Off Ver
    Excel 2013
    Posts
    6,882

    Re: Count if unique values in range in visible cellls only (after autofilter)

    Try this array formula
    Please Login or Register  to view this content.
    Press Ctrl + Shift + Enter
    < ----- Please click the little star * next to add reputation if my post helps you
    Visit Forum : From Here

  4. #4
    Forum Expert
    Join Date
    04-23-2009
    Location
    Matrouh, Egypt
    MS-Off Ver
    Excel 2013
    Posts
    6,882

    Re: Count if unique values in range in visible cellls only (after autofilter)

    Try this UDF function
    Please Login or Register  to view this content.
    To use it
    Please Login or Register  to view this content.

  5. #5
    Forum Expert
    Join Date
    02-22-2013
    Location
    London, UK
    MS-Off Ver
    Office 365
    Posts
    1,218

    Re: Count if unique values in range in visible cellls only (after autofilter)

    Nice Yasser!!

    Another option, looping only through visible cells,
    Please Login or Register  to view this content.

  6. #6
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,524

    Re: Count if unique values in range in visible cellls only (after autofilter)

    No loop
    Please Login or Register  to view this content.
    Referenced formula.

+ 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. Count unique, visible values in a filtered column
    By kajakk in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 06-07-2013, 08:42 AM
  2. [SOLVED] Count unique values in a range
    By vij8y in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 02-11-2013, 04:00 PM
  3. autofilter, visible rows count error
    By florin_excel in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 01-24-2013, 11:22 AM
  4. [SOLVED] changing a current mod (count unique visible cells ->count unique visible cells criteria
    By liranbo in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 04-30-2012, 03:58 AM
  5. Replies: 6
    Last Post: 03-31-2009, 11:17 AM
  6. [SOLVED] Sum Unique Values Across SpecialCellType Visible Range.
    By Mark in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 09-15-2005, 11:05 AM
  7. Autofilter - display column showing visible row count
    By rgarber50 in forum Excel General
    Replies: 5
    Last Post: 07-26-2005, 10:05 AM

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