+ Reply to Thread
Results 1 to 15 of 15

Add drop down list to show entire rows based on the cell color in Column C.

  1. #1
    Forum Contributor Rick_Stanich's Avatar
    Join Date
    11-21-2005
    Location
    Ladson SC
    MS-Off Ver
    Office365
    Posts
    1,167

    Add drop down list to show entire rows based on the cell color in Column C.

    How do I create a rule for a Drop Down List to show all the rows that have a specific color in a cell from Column C?
    Attached Images Attached Images
    Regards

    Rick
    Win10, Office 365

  2. #2
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2406 (Windows 11 23H2 64-bit)
    Posts
    82,386

    Re: Add drop down list to show entire rows based on the cell color in Column C.

    You can't, at least not without VBA.
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  3. #3
    Forum Contributor Rick_Stanich's Avatar
    Join Date
    11-21-2005
    Location
    Ladson SC
    MS-Off Ver
    Office365
    Posts
    1,167

    Re: Add drop down list to show entire rows based on the cell color in Column C.

    Yea, I should have been more specific.
    By Rule, maybe using Conditional Formatting or Data Validation?

  4. #4
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2406 (Windows 11 23H2 64-bit)
    Posts
    82,386

    Re: Add drop down list to show entire rows based on the cell color in Column C.

    You cannot filter data with either conditional formatting or data validation.

    I think you had better attach a sample workbook with a manual mock-up of what you want to achieve. It only needs to have 10-20 rows of realistic, but desensitised data.

  5. #5
    Forum Contributor Rick_Stanich's Avatar
    Join Date
    11-21-2005
    Location
    Ladson SC
    MS-Off Ver
    Office365
    Posts
    1,167

    Re: Add drop down list to show entire rows based on the cell color in Column C.

    I have added two worksheets to the Excel Workbook attached (There are links to worksheets that have been removed on worksheet "Probe Builds").
    The Sheet "Probe Builds" shows all the builds. In Column C, there will be cells highlighted "Orange", Green" and "Violet".
    Then I added two other worksheets to simulate what would be seen by color selected, named "If user selects green" and or "If user selects Violet".
    At the top of the workbook are two highlighted merged cells, Green and Violet. If the user selects one of the colors the worksheet would show all related rows by that color.


    Image "Untitled1.png" shows a simple filter applied, the side bar showing color selection is similar to what I am thinking except the rows following the colored cell need to be included.
    Example, see worksheet "If user selects Green" or worksheet "If user selects Violet". This is what I would like to see.

    This is starting to seem more complicated than I imagined.
    Attached Images Attached Images
    Attached Files Attached Files

  6. #6
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2406 (Windows 11 23H2 64-bit)
    Posts
    82,386

    Re: Add drop down list to show entire rows based on the cell color in Column C.

    Yes, this is going to be complicated if you want this to be done in situ. It'll have to be VBA - shall I move the thread for you?

  7. #7
    Forum Contributor Rick_Stanich's Avatar
    Join Date
    11-21-2005
    Location
    Ladson SC
    MS-Off Ver
    Office365
    Posts
    1,167

    Re: Add drop down list to show entire rows based on the cell color in Column C.

    Yes please, I apologize I did not realize the scope of this.

  8. #8
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2406 (Windows 11 23H2 64-bit)
    Posts
    82,386

    Re: Add drop down list to show entire rows based on the cell color in Column C.

    No worries - the thread has been moved.

  9. #9
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,479

    Re: Add drop down list to show entire rows based on the cell color in Column C.

    Please Login or Register  to view this content.
    Place above code in sheet module ("Probe Builds"): right click on tab>"View Code".,Copy/paste code

    Please Login or Register  to view this content.
    Place above code in standard module


    in "Probe Builds" click on B1 or H1 (I unmerged the cells) to invoke code: results in "TEST"
    Attached Files Attached Files
    Last edited by JohnTopley; 04-07-2024 at 03:08 AM.
    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED.

  10. #10
    Forum Contributor Rick_Stanich's Avatar
    Join Date
    11-21-2005
    Location
    Ladson SC
    MS-Off Ver
    Office365
    Posts
    1,167

    Re: Add drop down list to show entire rows based on the cell color in Column C.

    Thank you very much.

  11. #11
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2406 (Windows 11 23H2 64-bit)
    Posts
    82,386

    Re: Add drop down list to show entire rows based on the cell color in Column C.

    If that takes care of your original question, please choose Thread Tools from the menu link above and mark this thread as SOLVED. You can also access the SOLVED tag by editing the opening post and choosing SOLVED from the drop-down to the left of the title box.

    Also, if you have not already done so, remember that you can reward anyone who offered you help towards a solution for your issue by clicking the small star icon (* Add Reputation) located in the lower left corner of the post in which the help was given. By doing so you can add to the reputation(s) of each of those who offered help.

  12. #12
    Forum Contributor Rick_Stanich's Avatar
    Join Date
    11-21-2005
    Location
    Ladson SC
    MS-Off Ver
    Office365
    Posts
    1,167

    Re: Add drop down list to show entire rows based on the cell color in Column C.

    I haven't closed this yet, although the solution provided works well. (Thanks to all).
    I am attempting to make the macros work from a "personal.xlsb" file.
    I need to try and keep this workbook a non macro workbook (The IT gods sent a rumble my way.)
    I generally attempt these things until the PC starts to smoke, then I run for help.

  13. #13
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,479

    Re: Add drop down list to show entire rows based on the cell color in Column C.

    If you want a non-macro solution then you need to use an alternative to cell colour to identify your selection(s).

  14. #14
    Forum Contributor Rick_Stanich's Avatar
    Join Date
    11-21-2005
    Location
    Ladson SC
    MS-Off Ver
    Office365
    Posts
    1,167

    Re: Add drop down list to show entire rows based on the cell color in Column C.

    I want a macro solution but I want the macros to be in the personal.xlsb file.
    Our IT has limitations on using "xlsm" files, but allows the personal.xlsb file.

  15. #15
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,479

    Re: Add drop down list to show entire rows based on the cell color in Column C.

    I have no need to use, and therefore experience of, Personal.xlsb: with my VERY limited understanding, the macro "Select_by_color" can just be placed in "Personal.xlsb" BUT the "Worksheet_SelectionChange" code needs some additional code ["Class Module"?] to make it generic - not even sure generic is correct here.

    So hopefully, one the VBA gurus will be able to help with this.

+ 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. Change drop down list color cell based on range of values
    By KARKHI in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 03-05-2022, 01:13 PM
  2. Change Cell Color based on Drop Down List Selection
    By namealreadtytaken in forum Excel General
    Replies: 5
    Last Post: 01-12-2022, 03:51 AM
  3. "VBA code to hide/show rows based on multiple selection of drop down list.
    By NASANASA in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 02-02-2020, 05:07 PM
  4. Replies: 9
    Last Post: 05-02-2017, 01:08 PM
  5. [SOLVED] Hide/Show rows based on drop down list
    By PvtJoker in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 04-13-2017, 04:11 PM
  6. Change color of entire rows if a value is entered in a cell in column I
    By patrickmcdiver in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 10-23-2012, 08:04 AM
  7. [SOLVED] Macro the hides entire rows based on a drop down list
    By MGK086 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 08-14-2012, 11:32 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