+ Reply to Thread
Results 1 to 7 of 7

hide rows if cell value is zero or blank in one or multiple columns.

  1. #1
    Registered User
    Join Date
    08-05-2013
    Location
    India
    MS-Off Ver
    Excel 2007
    Posts
    25

    Question hide rows if cell value is zero or blank in one or multiple columns.

    I have a code which hides entire row if a cell in particular column contains zero value, I want it to be applicable for selected range (not entire column) and also applies to blank cells (including cells containing zero)
    Please Login or Register  to view this content.

  2. #2
    Forum Contributor
    Join Date
    06-18-2007
    Location
    Kiama, Australia
    MS-Off Ver
    365
    Posts
    119

    Re: hide rows if cell value is zero or blank in one or multiple columns.

    Is this what you want?

    Please Login or Register  to view this content.

  3. #3
    Registered User
    Join Date
    08-05-2013
    Location
    India
    MS-Off Ver
    Excel 2007
    Posts
    25

    Re: hide rows if cell value is zero or blank in one or multiple columns.

    Dear Oz,

    two issues-
    1) Its hiding the rows of selected cells which i don,t want if any cell has value except 0 of blank
    2) I want to put range in code itself instead of selecting the cells to hide rows in the range of selected cells which contains 0 or blank.

  4. #4
    Forum Contributor
    Join Date
    06-18-2007
    Location
    Kiama, Australia
    MS-Off Ver
    365
    Posts
    119

    Re: hide rows if cell value is zero or blank in one or multiple columns.

    How about this?
    You can manually define the range in the code.

    Please Login or Register  to view this content.
    Last edited by OzTrekker; 09-07-2016 at 08:05 AM.

  5. #5
    Registered User
    Join Date
    08-05-2013
    Location
    India
    MS-Off Ver
    Excel 2007
    Posts
    25

    Re: hide rows if cell value is zero or blank in one or multiple columns.

    its working perfectly.
    thanks a lot.

  6. #6
    Forum Contributor
    Join Date
    06-18-2007
    Location
    Kiama, Australia
    MS-Off Ver
    365
    Posts
    119

    Re: hide rows if cell value is zero or blank in one or multiple columns.

    Happy to help.
    If you liked my solution click on "Add Reputation" at the bottom left of the post.

  7. #7
    Registered User
    Join Date
    06-07-2016
    Location
    Hong Kong
    MS-Off Ver
    2010
    Posts
    25

    Re: hide rows if cell value is zero or blank in one or multiple columns.

    thank you for your sharing

+ 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. Hide Rows/Hide Columns Based on Value in Cell
    By brickwall823 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 07-24-2015, 02:42 PM
  2. [SOLVED] Macro Checkbox to hide multiple blank rows
    By qiyusi in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 10-22-2014, 11:45 PM
  3. [SOLVED] Macro needed to hide rows within multiple ranges if the cell value in each row is blank
    By TomP1988 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 10-21-2014, 11:04 AM
  4. [SOLVED] Help, trouble with amacro to hide columns and blank rows
    By DRFJR in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 04-25-2014, 01:29 PM
  5. Hide non adjacent columns if all cell value is blank
    By RT_516 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 04-09-2014, 06:17 PM
  6. Hide Blank Rows based on 2 columns
    By yzer19 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 01-06-2008, 11:23 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