+ Reply to Thread
Results 1 to 6 of 6

How to hide all rows that don't contain a cell with a specific value

  1. #1
    Registered User
    Join Date
    12-12-2019
    Location
    USA
    MS-Off Ver
    10
    Posts
    3

    How to hide all rows that don't contain a cell with a specific value

    Hi all, been struggling to find/write a macro that will hide all rows (there are 1184 of them) that do not contain any cells with a -9 value somewhere in it. The column range is A through IE. Does anyone have any insight on how to accomplish this?

    See attached example, I would only want to keep rows 4, 6, and 8 as they are the only rows containing a -9 value.
    Attached Files Attached Files
    Last edited by jgc123; 12-12-2019 at 11:51 AM.

  2. #2
    Forum Expert Mumps1's Avatar
    Join Date
    10-10-2012
    Location
    Toronto, Canada
    MS-Off Ver
    Excel 2010, 365
    Posts
    8,056

    Re: How to hide all rows that don't contain a cell with a specific value

    To attach a file, click the "Go Advanced" button. Then scroll down a bit and click "Manage Attachments".
    You can say "THANK YOU" for help received by clicking the Star symbol at the bottom left of the helper's post.
    Practice makes perfect. I'm very far from perfect so I'm still practising.

  3. #3
    Registered User
    Join Date
    12-12-2019
    Location
    USA
    MS-Off Ver
    10
    Posts
    3

    Re: How to hide all rows that don't contain a cell with a specific value

    attached, thanks

  4. #4
    Forum Expert Mumps1's Avatar
    Join Date
    10-10-2012
    Location
    Toronto, Canada
    MS-Off Ver
    Excel 2010, 365
    Posts
    8,056

    Re: How to hide all rows that don't contain a cell with a specific value

    Try:
    Please Login or Register  to view this content.

  5. #5
    Registered User
    Join Date
    12-12-2019
    Location
    USA
    MS-Off Ver
    10
    Posts
    3

    Re: How to hide all rows that don't contain a cell with a specific value

    Thank you so much!

  6. #6
    Forum Expert Mumps1's Avatar
    Join Date
    10-10-2012
    Location
    Toronto, Canada
    MS-Off Ver
    Excel 2010, 365
    Posts
    8,056

    Re: How to hide all rows that don't contain a cell with a specific value

    You are very welcome.

+ 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] Hide all rows with a value of 0 every time a specific cell value is changed
    By Shawn1888 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 05-11-2018, 11:32 AM
  2. [SOLVED] Need code to hide specific rows based on different cell value
    By majzeln in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 11-04-2016, 02:02 PM
  3. To hide/unhide rows based on specific value in a cell.
    By @jerry in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 01-28-2014, 11:56 AM
  4. Hide rows not matching specific cell value
    By Abbadon486 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 01-10-2014, 08:37 AM
  5. [SOLVED] First unhide all rows - then hide rows based on specific cell value for a range of cells
    By robbiekh in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 10-22-2013, 05:46 PM
  6. hide rows if cell contains specific information
    By ossa in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 09-04-2012, 11:06 AM
  7. Hide all rows where one specific cell in that row = 0?
    By jaydevil in forum Excel General
    Replies: 2
    Last Post: 08-26-2005, 09: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