+ Reply to Thread
Results 1 to 4 of 4

Finding disabled parents in a menu hierarchy

Hybrid View

  1. #1
    Registered User
    Join Date
    12-01-2019
    Location
    USA
    MS-Off Ver
    365
    Posts
    21

    Finding disabled parents in a menu hierarchy

    I have a permissions sheet that describes a set of hierarchical menus. The 'group' columns correspond to whether that group can access that menu.

    parentfind.png

    It's possible to enter a "Y" for a child even if the parent is disabled with an "N". That's a problem; the child won't be accessible if the parent is disabled.

    I'm trying to create a column that reports, for an enabled child, for which groups the child's parent is disabled.

    I have a formula that would work, but it's entirely hard-coded with approximately 150 tests (4 layers x ~40 groups). It's essentially a VLOOKUP on a query table (not shown) that reports all item / "N" combinations. Excel won't let me use it because it's too long.

    Power Query and VBA are both acceptable solutions for this.

    Any thoughts? Much thanks.
    Attached Files Attached Files
    Last edited by alexdi; 03-09-2020 at 02:55 PM.

  2. #2
    Forum Contributor
    Join Date
    11-20-2007
    Location
    Felixstowe, England
    MS-Off Ver
    Excel 2013, 2019
    Posts
    217

    Re: Finding disabled parents in a menu hierarchy

    Have a look at this ... it uses columns to the right to do the calculations:
    Attached Images Attached Images
    Attached Files Attached Files

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

    Re: Finding disabled parents in a menu hierarchy

    Thanks Glenn! I ended up with a similar solution, essentially splitting my hard-coded formula in a set of helper columns. I couldn't figure out how to get it all into one column. I like your syntax though, I'll be adapting some of it. Thanks again!

  4. #4
    Forum Contributor
    Join Date
    11-20-2007
    Location
    Felixstowe, England
    MS-Off Ver
    Excel 2013, 2019
    Posts
    217

    Re: Finding disabled parents in a menu hierarchy

    My pleasure. The added advantage of my extra columns is that you can link Conditional Formatting to them, and then highlight the problem cells in red ... as in the example there.

+ 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. Finding parent in a hierarchy
    By Mackay2m in forum Excel General
    Replies: 12
    Last Post: 11-20-2019, 01:54 AM
  2. Find parents of subordinates in a range where parents contain text string
    By Rocks20 in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 04-03-2015, 04:33 AM
  3. Menu bar disabled
    By treybe in forum Excel General
    Replies: 0
    Last Post: 11-07-2014, 05:06 PM
  4. [SOLVED] Finding a folder within mulitple parents in Outlook using excel VBA
    By Journeyman3000 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 08-24-2014, 06:54 PM
  5. Hiding a menu when Add-in is disabled
    By ggayathri in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 02-26-2013, 04:12 AM
  6. Tools menu disabled
    By rajanyprasad in forum Excel General
    Replies: 1
    Last Post: 01-10-2007, 08:47 AM
  7. [SOLVED] Menu item disabled
    By Steven in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 07-27-2006, 08:05 PM

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