+ Reply to Thread
Results 1 to 12 of 12

Hide rows based on status and dropdown list

  1. #1
    Forum Contributor
    Join Date
    02-29-2012
    Location
    UK, Newcastle
    MS-Off Ver
    Office 365
    Posts
    122

    Hide rows based on status and dropdown list

    Hi, I have column M representing the current of tasks. Example NS. WIP, COMPLETE, HOLD.
    The rows already change to green when complete but they take a lot of space up on screen.
    I would like a drop down list at top of sheet to choose what is shown and the rest will be hidden.
    So The Drop list called Show Tasks would have choice of NS, WIP, COMPLETE, ALL, OPEN, HOLD.

    NS shows only status of NS and hides all other.
    WIP same for status WIP.
    COMPLETE, same for COMPLETE.
    ALL would show (unhide all rows).
    OPEN would shown NS, WIP and HOLD.

    The sheet will be shared so, if possible I would like this to apply to only the sheet I am viewing and not others may be viewing at same time.
    Even though any actual change to data would update instantly on all.
    This would be nice but if it has to effect all sheets thats ok.
    The icing on the cake would be that everytime a user opened the sheet it would default to a choice they had set as default.
    So user A may choose to view all ROWs when opening and user B may choose to have only OPEN rows.
    Again nice to have but the original request of dropdown list for hiding rows is the main requirement.
    Last edited by maax555; 02-07-2025 at 06:46 AM.

  2. #2
    Forum Expert
    Join Date
    02-11-2014
    Location
    New York
    MS-Off Ver
    Excel 365 (Windows)
    Posts
    6,257

    Re: Hide rows based on status and dropdown list

    The drop-down list of options is a standard feature of Excel's filtering - select that one column, choose Data / Filter and the header at the top of the column will have a dropdown selector where you can choose. Simple to apply, and probably the easiest solution for everything if you just teach your other users how to select what values they want to see in that column.
    Bernie Deitrick
    Excel MVP 2000-2010

  3. #3
    Forum Contributor
    Join Date
    02-29-2012
    Location
    UK, Newcastle
    MS-Off Ver
    Office 365
    Posts
    122

    Re: Hide rows based on status and dropdown list

    Hi Bernie, thanks. However its the rows I want hidden not he columns. It doesn't have to be a drop down list a macro button for each would also work.

    EDIT- I have now found a post with my exact requirements and is along the lines you mentioned. Unsure why this did not come up in my original search.
    Last edited by maax555; 02-07-2025 at 05:58 AM.

  4. #4
    Forum Contributor
    Join Date
    02-29-2012
    Location
    UK, Newcastle
    MS-Off Ver
    Office 365
    Posts
    122

    Re: Hide rows based on status and dropdown list

    I hope this is ok to include in this original thread or perhaps I should start a new one and linkback?

    So I have kind of got this working but two things are not right.

    1) when I choose all I dont see all of the rows. I used the same technique as another post which works for all.
    2) When I choose various views using the dropdown list I want the results to be returned so they are viewable on screen without having to use scroll.

    Attached is what I have so far. Hoping this is a simple fix but as yet I have not found a fix for either.

    many thanks
    Attached Files Attached Files

  5. #5
    Forum Contributor
    Join Date
    02-29-2012
    Location
    UK, Newcastle
    MS-Off Ver
    Office 365
    Posts
    122

    Re: Hide rows based on status and dropdown list

    No thoughts on this one?

  6. #6
    Forum Expert
    Join Date
    02-11-2014
    Location
    New York
    MS-Off Ver
    Excel 365 (Windows)
    Posts
    6,257

    Re: Hide rows based on status and dropdown list

    Filtering hides rows, which is what you described as your requirement. Follow my suggestion and it should work fine.

  7. #7
    Forum Contributor
    Join Date
    02-29-2012
    Location
    UK, Newcastle
    MS-Off Ver
    Office 365
    Posts
    122

    Re: Hide rows based on status and dropdown list

    Quote Originally Posted by Bernie Deitrick View Post
    Filtering hides rows, which is what you described as your requirement. Follow my suggestion and it should work fine.
    Hi Bernie, filtering is working as per attached, just the two minor issues now.

  8. #8
    Forum Expert
    Join Date
    02-11-2014
    Location
    New York
    MS-Off Ver
    Excel 365 (Windows)
    Posts
    6,257

    Re: Hide rows based on status and dropdown list

    I assume your minor issues are
    1) when I choose all I dont see all of the rows. I used the same technique as another post which works for all.
    2) When I choose various views using the dropdown list I want the results to be returned so they are viewable on screen without having to use scroll.
    1) o see all, use "Clear filter from...." which appears when you click the filter dropdown.

    2) IF you have a lot of data, then you have to scroll to see it (or change the zoom)

  9. #9
    Forum Contributor
    Join Date
    02-29-2012
    Location
    UK, Newcastle
    MS-Off Ver
    Office 365
    Posts
    122

    Re: Hide rows based on status and dropdown list

    Yes those are the minor issues.

    1) I really would like to use the drop down list for filtering as it makes it very clear a filter is on.
    As I've said this method is taken from another contributor on this site and when downloaded works perfectly.
    For some reason the ALL just wont work for my sheet.
    2) Even if there are only a couple of results they can be out of site and I need to scroll to see the results.
    This could be that my conditional formatting is causing a problem?
    Once the filter is applied I would like to see the lowest numbered row (first entry) at the top of the screen then scroll for more entries.

    I would really appreciate if a contributor would take a look at my uploaded sheet.

  10. #10
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 365 version 2501
    Posts
    18,817

    Re: Hide rows based on status and dropdown list

    It appears that the drop down in cell R1 should activate some code (VBA).
    I don't know enough about VBA to be of any help there however I will offer two suggestions:
    1. It would probably be useful to show a link to the thread alluded to in post #3
    2. It would be useful to ask an administrator/moderator to have this thread moved to the VBA forum
    I hope that you have a blessed day.
    Consider taking the time to add to the reputation of everybody that has taken the time to respond to your query.

  11. #11
    Forum Contributor
    Join Date
    02-29-2012
    Location
    UK, Newcastle
    MS-Off Ver
    Office 365
    Posts
    122

    Re: Hide rows based on status and dropdown list

    1. It would probably be useful to show a link to the thread alluded to in post #3

    Unable to locate original post but this is the download and the ALL selection works fine on this.
    I cant see the difference that stops my macro returning ALL.

    Unsure how to request moderator to move, sorry.

    Thanks
    Attached Files Attached Files

  12. #12
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS 365 Family 64-bit 2411
    Posts
    26,673

    Re: Hide rows based on status and dropdown list

    Quote Originally Posted by maax555 View Post
    Unsure how to request moderator to move, sorry.
    To send a request to moderators, please click the Report Post button under the relevant post. You will then get a screen to describe what you want to report/request. Someone has seen your post and has already done this. I have moved the thread.
    Jeff
    | | |會 |會 |會 |會 | |:| | |會 |會
    Read the rules
    Use code tags to [code]enclose your code![/code]

+ 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. Display/hide rows based on dropdown list
    By Najz420 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 12-09-2021, 02:20 PM
  2. Replies: 3
    Last Post: 06-23-2020, 11:30 AM
  3. Hide Rows based on the value in a dropdown cell
    By cajunlibra in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 10-08-2016, 11:00 AM
  4. Hide/Unhide rows based on Yes or No answers to questions by dropdown list.
    By Johny1 in forum Excel Programming / VBA / Macros
    Replies: 11
    Last Post: 02-12-2015, 06:57 PM
  5. [SOLVED] VBA to hide cells based on dropdown list using If/Else/Then
    By JOHNROK in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 07-30-2012, 06:13 PM
  6. Hide Rows based on dropdown list in another sheet
    By Jeeperman4x4 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 05-04-2011, 08:01 PM
  7. Hide Rows based on dropdown selection...
    By hutch@edge.net in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 06-27-2008, 04:09 PM

Tags for this Thread

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