+ Reply to Thread
Results 1 to 15 of 15

would like to list several cells from a lookup incl. other data (vstack? hstack?)

Hybrid View

  1. #1
    Registered User
    Join Date
    06-07-2023
    Location
    Sydney, Australia
    MS-Off Ver
    Office 365
    Posts
    30

    would like to list several cells from a lookup incl. other data (vstack? hstack?)

    I have a large (1000's of rows, 100's of columns) data set that is like a validation of permissions. The different columns are the different roles in the organisation, but they start at column 15 as the first 14 columns contain the access descriptions listed vertically in the rows (1000's of them).
    Thus the Yes/No/NA data will start in cell O2.

    The first 14 columns describing the access is because of different modules, areas, focus areas etc.

    What I have is a drop down list of the roles (O1:GE1) on a new sheet) which, when each role is selected in turn from the drop down list, it will display the 14 column set of access descriptions for when that role has a Yes, and then underneath all of those, the 14 column set of access descriptions for when the role has No.

    I posted the question of how to achieve this some time ago and was helped out wonderfully by people here.

    New question:
    I have to now add in a text field (instead of just Yes or No or NA) that needs to be listed above the yes and no data.
    After each Module I'm putting in a summary (so the people using the spreadsheet don't have to scroll through 1000's of rows to get the info they need).

    I can do an index/match with the Role at the top and the 'Summary' cell to display the summary text field, but I also want the leading cells before it says Summary (see attached sample spreadsheet) as well as how to list several Summaries (as some roles will have approx 80+ summaries by the end of it!)

    I then need the original Yes/No listing (the red and green cells in the sample sheet attached) to list underneath the summaries. As some roles will have 2 or 3 summaries and others have 80+, it needs to be dynamic so I don't get a spill error

    Does this make sense? Hopefully!

    Any help would be much appreciated.
    I've attached a dummy spreadsheet with hopefully clear comments about what I need.

    Thanks in advance!
    Attached Files Attached Files

  2. #2
    Forum Guru HansDouwe's Avatar
    Join Date
    06-21-2022
    Location
    Nederland
    MS-Off Ver
    365 V2403 (Build 17330.20000)
    Posts
    6,466

    Re: would like to list several cells from a lookup incl. other data (vstack? hstack?)

    Please try
    =LET(d,A2:D13&"",r,XLOOKUP(N4,F1:J1,F2:J13),
    IFNA(VSTACK(FILTER(HSTACK(DROP(d,,-1),r),INDEX(d,,3)="Summary"),"",FILTER(EXPAND(d,ROWS(d),1+COLUMNS(d),"y"),r="Yes"),"",FILTER(EXPAND(d,ROWS(d),1+COLUMNS(d),"n"),r="No")),""))
    Attached Files Attached Files

  3. #3
    Registered User
    Join Date
    06-07-2023
    Location
    Sydney, Australia
    MS-Off Ver
    Office 365
    Posts
    30

    Re: would like to list several cells from a lookup incl. other data (vstack? hstack?)

    Thanks so much, that looks like it works perfectly! Now I'll try to adapt it for my big spreadsheet

  4. #4
    Forum Guru HansDouwe's Avatar
    Join Date
    06-21-2022
    Location
    Nederland
    MS-Off Ver
    365 V2403 (Build 17330.20000)
    Posts
    6,466

    Re: would like to list several cells from a lookup incl. other data (vstack? hstack?)

    You are Welcome!

    Thanks for the feedback and rep. . Glad to have helped.

    Succes with adapting your big spreadsheet.

  5. #5
    Registered User
    Join Date
    06-07-2023
    Location
    Sydney, Australia
    MS-Off Ver
    Office 365
    Posts
    30

    Re: would like to list several cells from a lookup incl. other data (vstack? hstack?)

    ok, so the big sheet works, which is great, but I'd like another modification if that's ok.
    If the summary is blank (eg the Role has no access to that module, and therefore no summary is written) it will still show, with a value of 0.
    I'd like it to not show at all.
    Is this possible? I've attached a screenshot that hopefully explains it
    Thanks
    Attached Images Attached Images

  6. #6
    Forum Guru HansDouwe's Avatar
    Join Date
    06-21-2022
    Location
    Nederland
    MS-Off Ver
    365 V2403 (Build 17330.20000)
    Posts
    6,466

    Re: would like to list several cells from a lookup incl. other data (vstack? hstack?)

    Please try
    Formula: copy to clipboard
    =LET(d,A2:D13&"",r,XLOOKUP(N4,F1:J1,F2:J13),
    IFNA(VSTACK(FILTER(HSTACK(DROP(d,,-1),r),(INDEX(d,,3)="Summary")*(r<>"")),"",FILTER(EXPAND(d,ROWS(d),1+COLUMNS(d),"y"),r="Yes"),"",FILTER(EXPAND(d,ROWS(d),1+COLUMNS(d),"n"),r="No")),""))
    Attached Files Attached Files

  7. #7
    Registered User
    Join Date
    06-07-2023
    Location
    Sydney, Australia
    MS-Off Ver
    Office 365
    Posts
    30

    Re: would like to list several cells from a lookup incl. other data (vstack? hstack?)

    That's fantastic, does the job perfectly.
    thanks heaps!

  8. #8
    Forum Guru HansDouwe's Avatar
    Join Date
    06-21-2022
    Location
    Nederland
    MS-Off Ver
    365 V2403 (Build 17330.20000)
    Posts
    6,466

    Re: would like to list several cells from a lookup incl. other data (vstack? hstack?)

    Thanks for your feedback, glad to have helped .

  9. #9
    Registered User
    Join Date
    06-07-2023
    Location
    Sydney, Australia
    MS-Off Ver
    Office 365
    Posts
    30

    Re: would like to list several cells from a lookup incl. other data (vstack? hstack?)

    sorry to reopen this question, but I'd appreciate your help again
    In the attached sample spreadsheet, my yes/no data is about 10 rows. Displaying these as per my requested formulae isn't an issue. My large real spreadsheet is up to 9000 rows, and so displaying all of the yes/no's is unrealistic, so my supervisor just wants the summaries.
    I can do just the summaries, based on your earlier help, for a specific Role.
    What I am not sure how to do is when we have the managerial role (covering several Roles), and just wanting the summaries relevant to them. Your previous formula used Lambda and had a #REF! in it and so I didn't understand how to adapt it to my spreadsheet.
    I have been able to attach x's to each relevant role included in each Manager role, but not sure how the formula works for just the summaries of multiple Roles.
    I have included 2 sample spreadsheets - Mosom 6 - which shows what I would like to happen, and Mosom 7 - which shows the groupings under a managerial role but includes the yes/no's and lambda and #REF! that I didn't understand.
    Can you please have a look at the Mosom 6 sample sheet and see if you are able to help me?
    Thank you so much in advance!
    Attached Files Attached Files

  10. #10
    Forum Guru HansDouwe's Avatar
    Join Date
    06-21-2022
    Location
    Nederland
    MS-Off Ver
    365 V2403 (Build 17330.20000)
    Posts
    6,466

    Re: would like to list several cells from a lookup incl. other data (vstack? hstack?)

    Please try
    Formula: copy to clipboard
    =DROP(REDUCE("",U6#,LAMBDA(i,c,LET(d,A2:C13&"",r,XLOOKUP(c,F1:J1,F2:J13),
    VSTACK(i,IFNA(FILTER(HSTACK(d,r),(INDEX(d,,3)="Summary")*(r<>"")),""))))),1)
    Attached Files Attached Files

  11. #11
    Registered User
    Join Date
    06-07-2023
    Location
    Sydney, Australia
    MS-Off Ver
    Office 365
    Posts
    30

    Re: would like to list several cells from a lookup incl. other data (vstack? hstack?)

    Thanks HansDouwe, appreciate your help. I created extra sheets in the Mosom 6 file to match what I have (although with dummy data) and the formula works perfectly, thanks.
    However, when I put it into my main spreadsheet, it comes up with the #CALC! error. I created the extra sheets in the Mosom 6 file so that it match and make sure I had adapted the formula properly.
    Is there an issue with this formula working in a normal Excel file, and a One Drive excel file? This is the only thing I can think of as to why it wouldn't be working in my one.
    I've attached the new Mosom 6 file so you can see the extra sheets I've created. The formula is supposed to work on the "Role Groups & Access Dashboard" sheet. I'm also attaching a screenshot of the formula in my main sheet so you can see that it is the same, but not working...

    Also, as you can see from the extra sheets in the new Mosom 6 file, there is the Summary of Access row (in the Master Permission Access List sheet) as well as new one Associated Risks. I'd like the all the summaries listed (which is what you've already done) but I'd also like underneath the summaries, to have the Associated Risks listed (like in previous requests the 'yes' followed by the 'no') Is that possible?

    Any help you can provide would be very much appreciated.
    Attached Images Attached Images
    Attached Files Attached Files
    Last edited by Mosom; 09-13-2023 at 07:04 PM.

  12. #12
    Forum Guru HansDouwe's Avatar
    Join Date
    06-21-2022
    Location
    Nederland
    MS-Off Ver
    365 V2403 (Build 17330.20000)
    Posts
    6,466

    Re: would like to list several cells from a lookup incl. other data (vstack? hstack?)

    I don't see #CALC in new Mosom 6.xlsx.

    Dit you attach the correct sheet???

  13. #13
    Registered User
    Join Date
    06-07-2023
    Location
    Sydney, Australia
    MS-Off Ver
    Office 365
    Posts
    30

    Re: would like to list several cells from a lookup incl. other data (vstack? hstack?)

    Hi, no, it works in new Mosom 6
    the screenshot, which has the #CALC! error, is from my actual spreadsheet, but I don't know why, as the formula is the same as the one in new Mosom 6

  14. #14
    Forum Guru HansDouwe's Avatar
    Join Date
    06-21-2022
    Location
    Nederland
    MS-Off Ver
    365 V2403 (Build 17330.20000)
    Posts
    6,466

    Re: would like to list several cells from a lookup incl. other data (vstack? hstack?)

    I can't tell from a screenshot what is causing #CALC. Please attach (the part of) the sheet that causes #CALC. If necessary, delete or modify confidential data.

  15. #15
    Registered User
    Join Date
    06-07-2023
    Location
    Sydney, Australia
    MS-Off Ver
    Office 365
    Posts
    30

    Re: would like to list several cells from a lookup incl. other data (vstack? hstack?)

    Hi, sorry about taking so long to get back to you. I've worked out why the formula wasn't working in my version, thank you for all of your help!
    Last edited by Mosom; 09-25-2023 at 09:47 PM.

+ 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. create outlook folders incl subfolders from list in excel
    By mariec_06 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 04-29-2023, 12:27 PM
  2. Replies: 4
    Last Post: 01-06-2023, 09:04 AM
  3. [SOLVED] Find every cell in a sheet that isn't zero and make a list incl. other cells in row
    By Happytab in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 12-11-2017, 08:11 PM
  4. [SOLVED] retrieve value from list based on 2 criteria incl date
    By kammend in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 04-05-2016, 09:12 AM
  5. [SOLVED] List All Changed Excel Files Today On Drive And Hyperlink (Incl. Subfolders)
    By alienware in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 08-10-2014, 03:18 AM
  6. Replies: 5
    Last Post: 07-17-2012, 01:34 AM
  7. [SOLVED] Lookup with two variable data list cells
    By Monkey in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 02-10-2005, 08:06 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