Find two values in separate table

Dharris144

Board Regular
Joined
Jul 22, 2009
Messages
97
Hello everyone,
I have a spreadsheet "roles" Column A has user name Columns B:Z have their roles
Example
John Doe Display Edit Modify

I export another spreadsheet from our ERP a list of user and roles but it is only two columns so
John Doe Display
John Doe Edit
John Doe Delete

So how do I know if John Doe has a role that is not in the spreadsheet?
Example John Doe Delete is not in the "roles" spreadsheet.

maybe index match?
 

Excel Facts

How to fill five years of quarters?
Type 1Q-2023 in a cell. Grab the fill handle and drag down or right. After 4Q-2023, Excel will jump to 1Q-2024. Dash can be any character.
Sheet "ERP"

ABC
1NAMEROLSTATUS
2John DoeDisplay
3John DoeEdit
4John DoeDeleteDoes not exist
5Frank smithDisplay
6Frank smithEdit
7Frank smithModifyDoes not exist

<tbody>
</tbody>

Formula
CellFormula
C2=IF(IFERROR(MATCH(B2,INDIRECT("roles!"& MATCH(A2,roles!A:A,0) & ":" & MATCH(A2,roles!A:A,0)),0), 0)=0, "Does not exist", "")

<tbody>
</tbody>

<tbody>
</tbody>

Sheet "roles"

roles

ABCDEFGHI
1NameRol 1Rol 2Rol 3Rol 4Rol 5Rol 6Rol 7Rol 8
2John DoeDisplayEditModify
3Frank smithDisplayEditDelete

<tbody>
</tbody>
 
Upvote 0
I don't care what anyone says. This deserves a hug!!!!!
Sheet "ERP"

ABC
1NAMEROLSTATUS
2John DoeDisplay
3John DoeEdit
4John DoeDeleteDoes not exist
5Frank smithDisplay
6Frank smithEdit
7Frank smithModifyDoes not exist

<tbody>
</tbody>

Formula
CellFormula
C2=IF(IFERROR(MATCH(B2,INDIRECT("roles!"& MATCH(A2,roles!A:A,0) & ":" & MATCH(A2,roles!A:A,0)),0), 0)=0, "Does not exist", "")

<tbody>
</tbody>

<tbody>
</tbody>

Sheet "roles"

roles

ABCDEFGHI
1NameRol 1Rol 2Rol 3Rol 4Rol 5Rol 6Rol 7Rol 8
2John DoeDisplayEditModify
3Frank smithDisplayEditDelete

<tbody>
</tbody>
 
Upvote 0

Forum statistics

Threads
1,214,936
Messages
6,122,340
Members
449,079
Latest member
rocketslinger

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