+ Reply to Thread
Results 1 to 4 of 4

How to skip Hidden Column cell value count

  1. #1
    Registered User
    Join Date
    09-02-2013
    Location
    India
    MS-Off Ver
    Excel 2010
    Posts
    87

    Question How to skip Hidden Column cell value count

    Hello Friends,

    I have few column values to count. I don’t want the hidden column value. In that formula the hidden value also counted. Please help me to ignore that hidden column value count, using macro/formula.

    eg:
    col A - col B - col C - col D - col E - col F
    Task -- ok1 -- ok2 -- no1 --- ok3 -- ok4

    Col D should be hidden. Final count result should be: OK = 4; No=0

    File attached for more clarification. No Count Hidden.xlsx

  2. #2
    Valued Forum Contributor Hawkeye16's Avatar
    Join Date
    02-27-2013
    Location
    Holland
    MS-Off Ver
    ├•┤ Pew Pew
    Posts
    441

    Re: How to skip Hidden Column cell value count

    Subtotal doesn't work, I am not sure of another way aside from making your data vertical or using vba myself.

    edit:
    From help it seems: The SUBTOTAL function is designed for columns of data, or vertical ranges. It is not designed for rows of data, or horizontal ranges. For example, when you subtotal a horizontal range using a function_num of 101 or greater, such as SUBTOTAL(109,B2:G2), hiding a column does not affect the subtotal. But, hiding a row in a subtotal of a vertical range does affect the subtotal.
    Last edited by Hawkeye16; 07-15-2014 at 03:36 AM.
    Despite the high cost of living, it remains very popular.

    Don't forget to mark threads SOLVED when you get an answer and rep all the geniouses that helped you today!

  3. #3
    Forum Guru :) Sixthsense :)'s Avatar
    Join Date
    01-01-2012
    Location
    India>Tamilnadu>Chennai
    MS-Off Ver
    2003 To 2010
    Posts
    12,770

    Re: How to skip Hidden Column cell value count

    In B1 Cell

    =CELL("width",B1)


    Drag it upto F1 Cell


    In G1 Cell

    =COUNTIFS($B3:$F3,G$2,$B$1:$F$1,">0")


    Drag it down and right...


    If your problem is solved, then please mark the thread as SOLVED>>Above your first post>>Thread Tools>>
    Mark your thread as Solved


    If the suggestion helps you, then Click *below to Add Reputation

  4. #4
    Registered User
    Join Date
    09-02-2013
    Location
    India
    MS-Off Ver
    Excel 2010
    Posts
    87

    Re: How to skip Hidden Column cell value count

    thanks Hawkeye16

+ 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. Skip Hidden Columns
    By morangeman in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 05-04-2014, 06:46 PM
  2. Replies: 4
    Last Post: 09-23-2013, 06:19 PM
  3. skip hidden rows in loop
    By secondrate in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 07-11-2010, 08:41 AM
  4. Skip hidden rows with offset
    By ainnocent1983 in forum Excel General
    Replies: 2
    Last Post: 03-08-2010, 11:57 AM
  5. skip hidden sheets
    By savalou in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 10-18-2005, 04: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