Copying value based on another cell value

eeb

New Member
Joined
Sep 17, 2021
Messages
14
Office Version
  1. 2016
Platform
  1. MacOS
Hello,
I am looking to consolidate a list of employees and training requirements.
I have one sheet which lists employees and what functional roles they fall under.
Another sheet lists training requirements per functional role.
I want to set up a third sheet which would consolidate training requirements per employee.

Example:
Sheet 1
Role 1Role 2Role 3
Employee 1XX
Employee 2X
Employee 3XX

Sheet 2
Role 1Role 2Role 3
Training Requirement 1X
Training Requirement 2XXX
Training Requirement 3XX

Sheet 3
Employee 1Employee 2Employee 3
Training Requirement 1
Training Requirement 2
Training Requirement 3

Thanks!
 

Excel Facts

Excel Can Read to You
Customize Quick Access Toolbar. From All Commands, add Speak Cells or Speak Cells on Enter to QAT. Select cells. Press Speak Cells.
I think this does it...
Mr Excel Playground 3.xlsm
ABCDEFGHI
1Role 1Role 2Role 3Employee 1Employee 2Employee 3
2Employee 1XXTraining Requirement 1  X
3Employee 2XTraining Requirement 2XXX
4Employee 3XXTraining Requirement 3X X
5
6
7Role 1Role 2Role 3
8Training Requirement 1X
9Training Requirement 2XXX
10Training Requirement 3XX
Sheet31
Cell Formulas
RangeFormula
G2:I4G2=IF(INDEX($B$2:$D$4,MATCH(G$1,$A$2:$A$4,0),COLUMN(B$1)-1)=INDEX($B$8:$D$10,MATCH($F2,$A$8:$A$10,0),COLUMN(B$1)-1),"X","")
 
Upvote 0
COLUMN(B$1)-1
Thank you! What would you do in the case where the requirements didn't match up this way (A7:D10 does not happen to match F1:I4) ? The column reference is not working for me.
 
Upvote 0
No. The formula ranges would have to change. But nothing else I think - if the overall structure is the same. Every range would have to change to the new range. You might use named ranges to make it easier to read and to update.
 
Upvote 0
I believe it is only copying the column over- see example here using the formula

Role 1Role 2Role 3Employee 1Employee 2Employee 3
Employee 1XXTraining Requirement 1X
Employee 2XTraining Requirement 2XX
Employee 3XXTraining Requirement 3X
Role 1Role 2Role 3Training Requirement 4X
Training Requirement 1X
Training Requirement 2XX
Training Requirement 3X
Training Requirement 4X



G2 =IF(INDEX($B$2:$D$4,MATCH(G$1,$A$2:$A$4,0),COLUMN(B$1)-1)=INDEX($B$6:$D$9,MATCH($F2,$A$6:$A$9,0),COLUMN(B$1)-1),"X","")
 
Upvote 0

Forum statistics

Threads
1,215,741
Messages
6,126,591
Members
449,320
Latest member
Antonino90

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