Any help is appreciated

Joined
Mar 7, 2024
Messages
3
Office Version
  1. 365
Platform
  1. Windows
In one table (#1), there are two columns with roles, and we want to make sure the combination of the two roles in the same row are assigned to one individual:
Role 1Role 2
DishesLawn

In another table (#2), there are two columns, one with a name and another with all Roles assigned to that person:
NameRoles
John SmithLawn, Windows, Vacuum, Dishes

In the last table (3#), there are two columns, one with the individual's name and another with an assigned Role per row:
NameRole
John SmithLawn
John SmithWindows
John SmithVacuum
John SmithDishes

The goal here is to flag/locate the assignment combination of Dishes and Lawn from Table #1 in both 2 and 3. Is there a formula or other way in both table 2 and 3 to show that John Smith was assigned the combination of Dishes and Lawn, no matter the sequence the roles are in? Any help is appreciated!
 

Excel Facts

Waterfall charts in Excel?
Office 365 customers have access to Waterfall charts since late 2016. They were added to Excel 2019.
Where in table 1 is the name assigned? And are you just looking for cells in tables 2 and 3 to be highlighted? The names, and roles or just the names or just the roles?
 
Upvote 0
Where in table 1 is the name assigned? And are you just looking for cells in tables 2 and 3 to be highlighted? The names, and roles or just the names or just the roles?
Table 1 includes the role combinations that need to be located or identified in Tables 2 and 3. There are no names associated with it. Tables 2 and 3 are two different formats of the same data set, and we are trying to locate everyone in both tables with the role combination(s), in this case Dishes & Lawn, listed in Table 1. Given the formats of 2 and 3, is this possible?
 
Upvote 0
Then maybe something like this:
Book1
ABC
1Table 1
2Role 1Role 2
3DishesLawn
4
5Table 2
6NameRoles
7John SmithLawn, Windows, Vacuum, DishesTRUE
8Jane SmithWindows, Dishes, TrashFALSE
9Alice JonesVacuum, DishesFALSE
10Jason TroyLawn, Trash, SidewalksFALSE
11Melissa NewtonWindows, Dishes, LawnTRUE
12
13
14Table 3
15NameRole
16John SmithLawnTRUE
17John SmithWindowsFALSE
18John SmithVacuumFALSE
19John SmithDishesTRUE
20Jane SmithWindowsFALSE
21Jane SmithDishesFALSE
22Jane SmithTrashFALSE
23Alice JonesVacuumFALSE
24Alice JonesDishesFALSE
25Jason TroyLawnFALSE
26Jason TroyTrashFALSE
27Jason TroySidewalksFALSE
28Melissa NewtonWindowsFALSE
29Melissa NewtonDishesTRUE
30Melissa NewtonLawnTRUE
Sheet3
Cell Formulas
RangeFormula
C7:C11C7=AND(ISNUMBER(SEARCH($A$3,B7)),ISNUMBER(SEARCH($B$3,B7)))
C16:C30C16=AND(COUNTIFS($A$16:$A$30,$A16,$B$16:$B$30,$A$3)+COUNTIFS($A$16:$A$30,$A16,$B$16:$B$30,$B$3)=2,OR($B16=$A$3,$B16=$B$3))
Cells with Conditional Formatting
CellConditionCell FormatStop If True
A16:B30Expression=AND(COUNTIFS($A$16:$A$30,$A16,$B$16:$B$30,$A$3)+COUNTIFS($A$16:$A$30,$A16,$B$16:$B$30,$B$3)=2,OR($B16=$A$3,$B16=$B$3))textNO
A7:B11Expression=AND(ISNUMBER(SEARCH($A$3,$B7)),ISNUMBER(SEARCH($B$3,$B7)))textNO


Col C is just the same CF rules but on the sheet to show example of which rows to highlight. I must note, these formulas are specifically set up for combinations of only 2 roles. If you need something more dynamic, I will have to revisit.
 
Upvote 0
Solution

Forum statistics

Threads
1,223,248
Messages
6,171,021
Members
452,374
Latest member
keccles

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