Highlighting match based on looking up 2 values in list

SarahLouM

New Member
Joined
Nov 9, 2021
Messages
5
Office Version
  1. 365
Platform
  1. Windows
Struggling to get my head around this one and think I might be overcomplicating when there's a simple answer in sight!
I have a training matrix showing dates of training for staff. Say something like this..
NamePositionTraining 1Training 2Training 3Training 4Training 5Training 6Training 7Training 8Training 9Training 10Training 11
BobManager17/03/2023
JaneSupervisor17/03/2023
SueAssistant
JoeAssistant17/03/2023


What I want to do, ideally, is have another tab where I've got a reference table showing the requirements for each job position, say something like this
ManagerSupervisorAssistant
Training 1Training 6Training 1
Training 2Training 7Training 6
Training 3Training 8
Training 4Training 9
Training 5
Training 6
Training 9
Training 10
Training 11


And using this data, the initial table with my matrix of staff members would highlight where there was training required based on their job role:
NamePositionTraining 1Training 2Training 3Training 4Training 5Training 6Training 7Training 8Training 9Training 10Training 11
BobManager17/03/2023
JaneSupervisor17/03/2023
SueAssistant
JoeAssistant17/03/2023


I'm all in a scramble over how to get it to both look up to see which column it should be looking at, and if the match of training reference occurs or not in that column.
I may also be going at this in entirely the wrong way - any tips would be greatly appreciated!

Thanks
 

Excel Facts

Copy a format multiple times
Select a formatted range. Double-click the Format Painter (left side of Home tab). You can paste formatting multiple times. Esc to stop
How about
Fluff.xlsm
ABCDEFGHIJKLM
1NamePositionTraining 1Training 2Training 3Training 4Training 5Training 6Training 7Training 8Training 9Training 10Training 11
2BobManager17/03/2023
3JaneSupervisor17/03/2023
4SueAssistant
5JoeAssistant17/03/2023
6
7
8
9
10
11ManagerSupervisorAssistant
12Training 1Training 6Training 1
13Training 2Training 7Training 6
14Training 3Training 8
15Training 4Training 9
16Training 5
17Training 6
18Training 9
19Training 10
20Training 11
21
Master
Cells with Conditional Formatting
CellConditionCell FormatStop If True
C2:M5Expression=AND($B2="Supervisor",COUNTIFS($B$12:$B$20,C$1))textNO
C2:M5Expression=AND($B2="Assistant",COUNTIFS($C$12:$C$20,C$1))textNO
C2:M5Expression=AND($B2="Manager",COUNTIFS($A$12:$A$20,C$1))textNO
 
Upvote 0
Solution
Thank you - I was definitely making it too complicated by trying to avoid doing separate formatting for every job role!
Simple option did work, just took a while to get in place for all roles
Thanks!
 
Upvote 0
Glad to help & thanks for the feedback.
 
Upvote 0

Forum statistics

Threads
1,214,787
Messages
6,121,565
Members
449,038
Latest member
Guest1337

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