Mapping job roles to access permissions

eeb

New Member
Joined
Sep 17, 2021
Messages
14
Office Version
  1. 2016
Platform
  1. MacOS
Hello,

I have two tables - one which maps employees to specific job roles, and another which maps the job roles to folder access permissions.

I am trying to make a third table, which will list all folders each employee should have access to, based on their job roles.

Example:

Sheet 1: Roles
FirstLastProduct DevelopmentDesignR & DDeploymentIT
Employee1XXXXX
Employee2X
Employee3X
Employee4XX
Employee5XXX

Sheet 2: Permissions
PermissionsProduct DevelopmentDesignR & DDeploymentITQuality Assurance
Section 1
Folder 1
Folder 2AA
Folder 3AAAAA
Folder 4
Section 2
Folder 5AAA
Folder 6AAAAAA
Folder 7A
Folder 8A
Section 3
Folder 9
Folder 10A
Folder 11A

Sheet 3:
RolesFolder permissions
Employee1Product Development
Design
R & D
Deployment
IT
Employee2Product Development
Employee3R & D
Employee4Product Development
R & D
Employee5Product Development
Deployment
IT

I have the formula to create a list of roles, but not of folders:
Cell C2: =TEXTJOIN(CHAR(10), TRUE, if(Roles!C3 ="X", Roles!$C$2, ""), if(Roles!D3="X", Roles!$D$2,""), if(Roles!E3="X", Roles!$E$2,""), if(Roles!F3="X", Roles!$F$2,""), if(Roles!G3="X", Roles!$G$2,""), if(Roles!H3="X", Roles!$H$2,""), if(Roles!I3="X", Roles!$I$2,""), if(Roles!J3="X", Roles!$J$2,""),if(Roles!K3="X", Roles!$K$2,""), if(Roles!L3="X", Roles!$L$2,""), if(Roles!M3="X", Roles!$M$2,""), if(Roles!N3="X", Roles!$N$2,""), if(Roles!O3="X", Roles!$O$2,""), if(Roles!P3="X", Roles!$P$2,""), if(Roles!Q3="X", Roles!$Q$2,""), if(Roles!R3="X", Roles!$R$2,""), if(Roles!S3="X", Roles!$S$2,""), if(Roles!T3="X", Roles!$T$2,""), if(Roles!U3="X", Roles!$U$2,""), if(Roles!V3="X", Roles!$V$2,""), if(Roles!W3="X", Roles!$W$2,""), if(Roles!X3="X", Roles!$X$2,""), if(Roles!Y3="X", Roles!$Y$2,""), if(Roles!Z3="X", Roles!$Z$2,""))
 

Excel Facts

Bring active cell back into view
Start at A1 and select to A9999 while writing a formula, you can't see A1 anymore. Press Ctrl+Backspace to bring active cell into view.
What version of Excel are you using, your profile shows 2016, but TextJoin is not available in that version?
 
Upvote 0
What version of Excel are you using, your profile shows 2016, but TextJoin is not available in that version?
I have been using Google Sheets to collaborate - but I do use Excel 2016 on MacOS as well if there is an alternative
 
Upvote 0
Ok, I've put both tables on ths same sheet for convenience
+Fluff 1.xlsm
ABCDEFG
1
2FirstLastProduct DevelopmentDesignR & DDeploymentIT
3Employee1XXXXX
4Employee2X
5Employee3X
6Employee4XX
7Employee5XXX
8
9
10
11PermissionsProduct DevelopmentDesignR & DDeploymentITQuality Assurance
12Section 1
13Folder 1
14Folder 2AA
15Folder 3AAAAA
16Folder 4
17Section 2
18Folder 5AAA
19Folder 6AAAAAA
20Folder 7A
21Folder 8A
22Section 3
23Folder 9
24Folder 10A
25Folder 11A
Sheet1


You could then use
Excel Formula:
=TEXTJOIN(CHAR(10),1,IF(Sheet1!C3="X",IF(Sheet1!$B$12:$B$25="A",Sheet1!$A$12:$A$25,""),""),IF(Sheet1!D3="X",IF(Sheet1!$C$12:$C$25="A",Sheet1!$A$12:$A$25,""),""))
Although some of the folders will be listed multiple times.
 
Upvote 0
Solution
I am not getting any result using the nested IF functions
 
Upvote 0
You may need to wrap-it in arrayformula.
 
Upvote 0
Thanks, but does not work. I get either a blank value, or a list of every folder once.
 
Upvote 0
Have you changed the ranges & sheet names to refer to your data?
 
Upvote 0

Forum statistics

Threads
1,224,820
Messages
6,181,160
Members
453,021
Latest member
Justyna P

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top