+ Reply to Thread
Results 1 to 4 of 4

Hiding rows based on cell value

  1. #1
    Registered User
    Join Date
    04-05-2019
    Location
    Melbourne, Australia
    MS-Off Ver
    16
    Posts
    11

    Hiding rows based on cell value

    Hi

    I am trying to hide 6 rows based on a cell value of either YES or NO, I do not have any VBA skills.

    On the attached, cell B3 is showing Yes, in this case I would like all rows to be shown, however if No is selected I want rows 10-15 to be hidden, and once Yes is selected they are unhidden.

    Is there a way of achieving this without going via VBA.

    Thanks
    Attached Files Attached Files

  2. #2
    Registered User
    Join Date
    10-23-2019
    Location
    Ontario, California
    MS-Off Ver
    Office365
    Posts
    3

    Re: Hiding rows based on cell value

    Try a combination of the following.

    Make helper columns outside your normal print range. In this helper column(s), you can make IF statements for your values that drive the print/noprint.

    Then filter the helper columns for "print" selected.

    That's a nonVBA solution.

  3. #3
    Registered User
    Join Date
    10-24-2019
    Location
    Lancashire
    MS-Off Ver
    Business Proffesional 2019
    Posts
    27

    Re: Hiding rows based on cell value

    Hi,

    I have used this video LOADS!! before and i think this is what you need

    Because i have not posted much before, i cant post the link, but seacrh youtube or google for

    "Create Dynamic Excel Filter - Extract data as you type - YouTube"

    Hope it helps.

    Lee

  4. #4
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,582

    Re: Hiding rows based on cell value

    Not without extra steps
    Here's the vba solution
    1. Right click on the sheet1 tab and select View Code. This opens up the VBA Editor to your sheet1 module
    2. Paste the following code into the large white text box on the right of your vba editor
    Please Login or Register  to view this content.
    3. Close your VBA editor. No need to save, it will save with your file.
    Attached Files Attached Files
    ChemistB
    My 2?

    substitute commas with semi-colons if your region settings requires
    Don't forget to mark threads as "Solved" (Edit First post>Advanced>Change Prefix)
    If I helped, Don't forget to add to my reputation (click on the little star at bottom of this post)

    Forum Rules: How to use code tags, mark a thread solved, and keep yourself out of trouble

+ 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. Hiding rows in table based on cell value
    By dearsong in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 03-23-2019, 04:53 PM
  2. Hiding Rows Based on a Cell Value
    By smartcard in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 12-16-2015, 07:13 AM
  3. [SOLVED] Hiding rows based on cell value.
    By Metalgijs in forum Excel Programming / VBA / Macros
    Replies: 12
    Last Post: 04-12-2013, 03:08 AM
  4. Hiding rows in one tab based on cell value in another
    By hoffmt28 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 01-04-2013, 09:27 AM
  5. Hiding rows based on value in another cell
    By sahar in forum Excel General
    Replies: 0
    Last Post: 10-12-2011, 10:27 AM
  6. Hiding Rows Based based upon cell value being blank
    By leelee23 in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 05-11-2007, 04:48 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