+ Reply to Thread
Results 1 to 5 of 5

counting number of visible cells

  1. #1
    Registered User
    Join Date
    07-11-2016
    Location
    Delhi, India
    MS-Off Ver
    7
    Posts
    47

    counting number of visible cells

    Hi All,

    Needed help in counting number of visible cells in filtered data.
    I have a sheet1 where i need to manually count visible cells in filtered data and note that count in sheet2.
    In attachment you can see 2 sheet so filter will be as mentioned below.
    Conditions:

    1) sheet 1: range D, Filter will be "0" - Sheet 2: CEll B6 should have that count.
    2) sheet 1: range E, Filter will be "only string value except 0 and 1" - Sheet 2: CEll B7 should have that count.
    3)sheet 1: range F, Filter will be to "cells does not contain 0 and 1" - Sheet 2: CEll B8 should have that count.
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    12-24-2007
    Location
    Alsace - France
    MS-Off Ver
    MS 365 Office Suite
    Posts
    5,066

    Re: counting number of visible cells

    How can you make the difference between each result (B6,B7,B8) .... as the number of visible cells change.
    Why not to use a formula to count the number of cells what ever they are visible or not ???
    e.g
    B6 =COUNTIF(Sheet1!D:D,"=0")
    B7=SUMPRODUCT((E2:E1000 <>0)*(E2:E1000 <>1)*(E2:E1000 <>""))
    Last edited by PCI; 11-24-2019 at 01:14 PM.
    - Battle without fear gives no glory - Just try

  3. #3
    Forum Expert
    Join Date
    11-24-2013
    Location
    Paris, France
    MS-Off Ver
    Excel 2003 / 2010
    Posts
    9,831

    Arrow

    Hi !

    Easy way to count number of visible cells : use the SUBTOTAL worksheet function !

  4. #4
    Registered User
    Join Date
    07-11-2016
    Location
    Delhi, India
    MS-Off Ver
    7
    Posts
    47

    Re: counting number of visible cells

    Hello PCI,
    Thank you for your reply.
    I wanted macro only to put these condition filter nad then calculate the number of visible cell.

  5. #5
    Forum Expert
    Join Date
    12-24-2007
    Location
    Alsace - France
    MS-Off Ver
    MS 365 Office Suite
    Posts
    5,066

    Re: counting number of visible cells

    I wanted macro only to put these condition filter
    Do you agree that mean 3 macros for each selection ...?
    Is the formulas results correct ?

+ 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. [SOLVED] Help with counting the only visible cells after filtering
    By sspreyer in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 10-27-2017, 03:41 PM
  2. [SOLVED] Counting the visible cells with everthing excpect blank cell
    By jakehartson in forum Excel Formulas & Functions
    Replies: 15
    Last Post: 08-19-2014, 09:50 AM
  3. Number visible cells only
    By britt@wjg in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 04-08-2013, 09:22 AM
  4. [SOLVED] Counting visible cells using Macro
    By Varun13 in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 03-10-2013, 08:00 PM
  5. [SOLVED] Counting visible cells only
    By ghostly1 in forum Excel General
    Replies: 5
    Last Post: 09-05-2012, 05:54 PM
  6. Limit the number of visible cells on w/sheet
    By Banner in forum Excel General
    Replies: 2
    Last Post: 07-21-2010, 03:48 AM
  7. Sequentialy number/label visible cells containing hyperlinks
    By Zimbo in forum Excel Programming / VBA / Macros
    Replies: 13
    Last Post: 05-26-2009, 07:43 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