Hi guys,
I am having some issues with Index and Match for a project that I am working on. I have a list of employees where I wish to gather data to calculate their targets.
Where I get stuck is the source table is not setup the way a typical index table would be. Column A has the employees name, Column C has the shift date & lastly Column D has the Target.
[TABLE="width: 381"]
<colgroup><col><col><col><col></colgroup><tbody>[TR]
[TD]first_name[/TD]
[TD]surname[/TD]
[TD]shift_date[/TD]
[TD]target[/TD]
[/TR]
[TR]
[TD]Name 1[/TD]
[TD][/TD]
[TD="align: right"]03-04-18[/TD]
[TD="align: right"]95.35%[/TD]
[/TR]
[TR]
[TD]Name 1[/TD]
[TD][/TD]
[TD="align: right"]04-04-18[/TD]
[TD="align: right"]98.35%[/TD]
[/TR]
[TR]
[TD]Name 1[/TD]
[TD][/TD]
[TD="align: right"]05-04-18[/TD]
[TD="align: right"]88.73%[/TD]
[/TR]
[TR]
[TD]Name 1[/TD]
[TD][/TD]
[TD="align: right"]09-04-18[/TD]
[TD="align: right"]95.00%[/TD]
[/TR]
[TR]
[TD]Name 1[/TD]
[TD][/TD]
[TD="align: right"]10-04-18[/TD]
[TD="align: right"]101.27%[/TD]
[/TR]
[TR]
[TD]Name 1[/TD]
[TD][/TD]
[TD="align: right"]11-04-18[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Name 1[/TD]
[TD][/TD]
[TD="align: right"]12-04-18[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Name 1[/TD]
[TD][/TD]
[TD="align: right"]13-04-18[/TD]
[TD="align: right"]100.00%[/TD]
[/TR]
[TR]
[TD]Name 1[/TD]
[TD][/TD]
[TD="align: right"]16-04-18[/TD]
[TD="align: right"]99.08%[/TD]
[/TR]
[TR]
[TD]Name 1[/TD]
[TD][/TD]
[TD="align: right"]17-04-18[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Name 1[/TD]
[TD][/TD]
[TD="align: right"]23-04-18[/TD]
[TD="align: right"]0.00%[/TD]
[/TR]
[TR]
[TD]Name 1[/TD]
[TD][/TD]
[TD="align: right"]24-04-18[/TD]
[TD="align: right"]100.00%[/TD]
[/TR]
[TR]
[TD]Name 1[/TD]
[TD][/TD]
[TD="align: right"]30-04-18[/TD]
[TD="align: right"]93.10%[/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD="colspan: 2"][/TD]
[TD="align: right"][/TD]
[/TR]
[TR]
[TD]Name 2[/TD]
[TD][/TD]
[TD="align: right"]03-04-18[/TD]
[TD="align: right"]99.58%[/TD]
[/TR]
[TR]
[TD]Name 2[/TD]
[TD][/TD]
[TD="align: right"]04-04-18[/TD]
[TD="align: right"]100.23%[/TD]
[/TR]
[TR]
[TD]Name 2[/TD]
[TD][/TD]
[TD="align: right"]09-04-18[/TD]
[TD="align: right"]99.58%[/TD]
[/TR]
[TR]
[TD]Name 2[/TD]
[TD][/TD]
[TD="align: right"]10-04-18[/TD]
[TD="align: right"]103.57%[/TD]
[/TR]
[TR]
[TD]Name 2[/TD]
[TD][/TD]
[TD="align: right"]11-04-18[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Name 2[/TD]
[TD][/TD]
[TD="align: right"]16-04-18[/TD]
[TD="align: right"]100.00%[/TD]
[/TR]
[TR]
[TD]Name 2[/TD]
[TD][/TD]
[TD="align: right"]23-04-18[/TD]
[TD="align: right"]100.00%[/TD]
[/TR]
[TR]
[TD]Name 2[/TD]
[TD][/TD]
[TD="align: right"]24-04-18[/TD]
[TD="align: right"]99.34%[/TD]
[/TR]
[TR]
[TD]Name 2[/TD]
[TD][/TD]
[TD="align: right"]26-04-18[/TD]
[TD="align: right"]99.79%[/TD]
[/TR]
[TR]
[TD]Name 2[/TD]
[TD][/TD]
[TD="align: right"]27-04-18[/TD]
[TD="align: right"]100.00%[/TD]
[/TR]
[TR]
[TD]Name 2[/TD]
[TD][/TD]
[TD="align: right"]30-04-18[/TD]
[TD="align: right"]106.75%[/TD]
[/TR]
</tbody>[/TABLE]
The purpose of this is so I can clean up the data. I want to use the index and match function to import the above data into another sheet in order to average the targets. The below is what the destination would look like. I want the target for employee 1 to be listed under "Name 1" for the matching date they got that score.
As currently there is a lot of manual work to get this done and I am wanting to try and simplify the process.
[TABLE="width: 251"]
<colgroup><col><col span="2"></colgroup><tbody>[TR]
[TD]Date[/TD]
[TD]Name 1[/TD]
[TD]Name 2[/TD]
[/TR]
[TR]
[TD]01-04-18[/TD]
[TD] [/TD]
[TD] [/TD]
[/TR]
[TR]
[TD]02-04-18[/TD]
[TD] [/TD]
[TD] [/TD]
[/TR]
[TR]
[TD]03-04-18[/TD]
[TD] [/TD]
[TD] [/TD]
[/TR]
[TR]
[TD]04-04-18[/TD]
[TD] [/TD]
[TD] [/TD]
[/TR]
[TR]
[TD]05-04-18[/TD]
[TD] [/TD]
[TD] [/TD]
[/TR]
[TR]
[TD]06-04-18[/TD]
[TD] [/TD]
[TD] [/TD]
[/TR]
[TR]
[TD]07-04-18[/TD]
[TD] [/TD]
[TD] [/TD]
[/TR]
[TR]
[TD]08-04-18[/TD]
[TD] [/TD]
[TD] [/TD]
[/TR]
[TR]
[TD]09-04-18[/TD]
[TD] [/TD]
[TD] [/TD]
[/TR]
[TR]
[TD]10-04-18[/TD]
[TD] [/TD]
[TD] [/TD]
[/TR]
[TR]
[TD]11-04-18[/TD]
[TD] [/TD]
[TD] [/TD]
[/TR]
[TR]
[TD]12-04-18[/TD]
[TD] [/TD]
[TD] [/TD]
[/TR]
[TR]
[TD]13-04-18[/TD]
[TD] [/TD]
[TD] [/TD]
[/TR]
[TR]
[TD]14-04-18[/TD]
[TD] [/TD]
[TD] [/TD]
[/TR]
[TR]
[TD]15-04-18[/TD]
[TD] [/TD]
[TD] [/TD]
[/TR]
[TR]
[TD]16-04-18[/TD]
[TD] [/TD]
[TD] [/TD]
[/TR]
[TR]
[TD]17-04-18[/TD]
[TD] [/TD]
[TD] [/TD]
[/TR]
[TR]
[TD]18-04-18[/TD]
[TD] [/TD]
[TD] [/TD]
[/TR]
[TR]
[TD]19-04-18[/TD]
[TD] [/TD]
[TD] [/TD]
[/TR]
[TR]
[TD]20-04-18[/TD]
[TD] [/TD]
[TD] [/TD]
[/TR]
[TR]
[TD]21-04-18[/TD]
[TD] [/TD]
[TD] [/TD]
[/TR]
[TR]
[TD]22-04-18[/TD]
[TD] [/TD]
[TD] [/TD]
[/TR]
[TR]
[TD]23-04-18[/TD]
[TD] [/TD]
[TD] [/TD]
[/TR]
[TR]
[TD]24-04-18[/TD]
[TD] [/TD]
[TD] [/TD]
[/TR]
[TR]
[TD]25-04-18[/TD]
[TD] [/TD]
[TD] [/TD]
[/TR]
[TR]
[TD]26-04-18[/TD]
[TD] [/TD]
[TD] [/TD]
[/TR]
[TR]
[TD]27-04-18[/TD]
[TD] [/TD]
[TD] [/TD]
[/TR]
[TR]
[TD]28-04-18[/TD]
[TD] [/TD]
[TD] [/TD]
[/TR]
[TR]
[TD]29-04-18[/TD]
[TD] [/TD]
[TD] [/TD]
[/TR]
[TR]
[TD]30-04-18[/TD]
[TD] [/TD]
[TD] [/TD]
[/TR]
[TR]
[TD][/TD]
[TD] [/TD]
[TD] [/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Average[/TD]
[TD]0.00%[/TD]
[TD]0.00%[/TD]
[/TR]
[TR]
[TD][/TD]
[TD]Fail[/TD]
[TD]Fail[/TD]
[/TR]
</tbody>[/TABLE]
I hope I have explained what I am attempting well and I do hope I will be able to get a formula that will work for this application
Regards
bagman002
I am having some issues with Index and Match for a project that I am working on. I have a list of employees where I wish to gather data to calculate their targets.
Where I get stuck is the source table is not setup the way a typical index table would be. Column A has the employees name, Column C has the shift date & lastly Column D has the Target.
[TABLE="width: 381"]
<colgroup><col><col><col><col></colgroup><tbody>[TR]
[TD]first_name[/TD]
[TD]surname[/TD]
[TD]shift_date[/TD]
[TD]target[/TD]
[/TR]
[TR]
[TD]Name 1[/TD]
[TD][/TD]
[TD="align: right"]03-04-18[/TD]
[TD="align: right"]95.35%[/TD]
[/TR]
[TR]
[TD]Name 1[/TD]
[TD][/TD]
[TD="align: right"]04-04-18[/TD]
[TD="align: right"]98.35%[/TD]
[/TR]
[TR]
[TD]Name 1[/TD]
[TD][/TD]
[TD="align: right"]05-04-18[/TD]
[TD="align: right"]88.73%[/TD]
[/TR]
[TR]
[TD]Name 1[/TD]
[TD][/TD]
[TD="align: right"]09-04-18[/TD]
[TD="align: right"]95.00%[/TD]
[/TR]
[TR]
[TD]Name 1[/TD]
[TD][/TD]
[TD="align: right"]10-04-18[/TD]
[TD="align: right"]101.27%[/TD]
[/TR]
[TR]
[TD]Name 1[/TD]
[TD][/TD]
[TD="align: right"]11-04-18[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Name 1[/TD]
[TD][/TD]
[TD="align: right"]12-04-18[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Name 1[/TD]
[TD][/TD]
[TD="align: right"]13-04-18[/TD]
[TD="align: right"]100.00%[/TD]
[/TR]
[TR]
[TD]Name 1[/TD]
[TD][/TD]
[TD="align: right"]16-04-18[/TD]
[TD="align: right"]99.08%[/TD]
[/TR]
[TR]
[TD]Name 1[/TD]
[TD][/TD]
[TD="align: right"]17-04-18[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Name 1[/TD]
[TD][/TD]
[TD="align: right"]23-04-18[/TD]
[TD="align: right"]0.00%[/TD]
[/TR]
[TR]
[TD]Name 1[/TD]
[TD][/TD]
[TD="align: right"]24-04-18[/TD]
[TD="align: right"]100.00%[/TD]
[/TR]
[TR]
[TD]Name 1[/TD]
[TD][/TD]
[TD="align: right"]30-04-18[/TD]
[TD="align: right"]93.10%[/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD="colspan: 2"][/TD]
[TD="align: right"][/TD]
[/TR]
[TR]
[TD]Name 2[/TD]
[TD][/TD]
[TD="align: right"]03-04-18[/TD]
[TD="align: right"]99.58%[/TD]
[/TR]
[TR]
[TD]Name 2[/TD]
[TD][/TD]
[TD="align: right"]04-04-18[/TD]
[TD="align: right"]100.23%[/TD]
[/TR]
[TR]
[TD]Name 2[/TD]
[TD][/TD]
[TD="align: right"]09-04-18[/TD]
[TD="align: right"]99.58%[/TD]
[/TR]
[TR]
[TD]Name 2[/TD]
[TD][/TD]
[TD="align: right"]10-04-18[/TD]
[TD="align: right"]103.57%[/TD]
[/TR]
[TR]
[TD]Name 2[/TD]
[TD][/TD]
[TD="align: right"]11-04-18[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Name 2[/TD]
[TD][/TD]
[TD="align: right"]16-04-18[/TD]
[TD="align: right"]100.00%[/TD]
[/TR]
[TR]
[TD]Name 2[/TD]
[TD][/TD]
[TD="align: right"]23-04-18[/TD]
[TD="align: right"]100.00%[/TD]
[/TR]
[TR]
[TD]Name 2[/TD]
[TD][/TD]
[TD="align: right"]24-04-18[/TD]
[TD="align: right"]99.34%[/TD]
[/TR]
[TR]
[TD]Name 2[/TD]
[TD][/TD]
[TD="align: right"]26-04-18[/TD]
[TD="align: right"]99.79%[/TD]
[/TR]
[TR]
[TD]Name 2[/TD]
[TD][/TD]
[TD="align: right"]27-04-18[/TD]
[TD="align: right"]100.00%[/TD]
[/TR]
[TR]
[TD]Name 2[/TD]
[TD][/TD]
[TD="align: right"]30-04-18[/TD]
[TD="align: right"]106.75%[/TD]
[/TR]
</tbody>[/TABLE]
The purpose of this is so I can clean up the data. I want to use the index and match function to import the above data into another sheet in order to average the targets. The below is what the destination would look like. I want the target for employee 1 to be listed under "Name 1" for the matching date they got that score.
As currently there is a lot of manual work to get this done and I am wanting to try and simplify the process.
[TABLE="width: 251"]
<colgroup><col><col span="2"></colgroup><tbody>[TR]
[TD]Date[/TD]
[TD]Name 1[/TD]
[TD]Name 2[/TD]
[/TR]
[TR]
[TD]01-04-18[/TD]
[TD] [/TD]
[TD] [/TD]
[/TR]
[TR]
[TD]02-04-18[/TD]
[TD] [/TD]
[TD] [/TD]
[/TR]
[TR]
[TD]03-04-18[/TD]
[TD] [/TD]
[TD] [/TD]
[/TR]
[TR]
[TD]04-04-18[/TD]
[TD] [/TD]
[TD] [/TD]
[/TR]
[TR]
[TD]05-04-18[/TD]
[TD] [/TD]
[TD] [/TD]
[/TR]
[TR]
[TD]06-04-18[/TD]
[TD] [/TD]
[TD] [/TD]
[/TR]
[TR]
[TD]07-04-18[/TD]
[TD] [/TD]
[TD] [/TD]
[/TR]
[TR]
[TD]08-04-18[/TD]
[TD] [/TD]
[TD] [/TD]
[/TR]
[TR]
[TD]09-04-18[/TD]
[TD] [/TD]
[TD] [/TD]
[/TR]
[TR]
[TD]10-04-18[/TD]
[TD] [/TD]
[TD] [/TD]
[/TR]
[TR]
[TD]11-04-18[/TD]
[TD] [/TD]
[TD] [/TD]
[/TR]
[TR]
[TD]12-04-18[/TD]
[TD] [/TD]
[TD] [/TD]
[/TR]
[TR]
[TD]13-04-18[/TD]
[TD] [/TD]
[TD] [/TD]
[/TR]
[TR]
[TD]14-04-18[/TD]
[TD] [/TD]
[TD] [/TD]
[/TR]
[TR]
[TD]15-04-18[/TD]
[TD] [/TD]
[TD] [/TD]
[/TR]
[TR]
[TD]16-04-18[/TD]
[TD] [/TD]
[TD] [/TD]
[/TR]
[TR]
[TD]17-04-18[/TD]
[TD] [/TD]
[TD] [/TD]
[/TR]
[TR]
[TD]18-04-18[/TD]
[TD] [/TD]
[TD] [/TD]
[/TR]
[TR]
[TD]19-04-18[/TD]
[TD] [/TD]
[TD] [/TD]
[/TR]
[TR]
[TD]20-04-18[/TD]
[TD] [/TD]
[TD] [/TD]
[/TR]
[TR]
[TD]21-04-18[/TD]
[TD] [/TD]
[TD] [/TD]
[/TR]
[TR]
[TD]22-04-18[/TD]
[TD] [/TD]
[TD] [/TD]
[/TR]
[TR]
[TD]23-04-18[/TD]
[TD] [/TD]
[TD] [/TD]
[/TR]
[TR]
[TD]24-04-18[/TD]
[TD] [/TD]
[TD] [/TD]
[/TR]
[TR]
[TD]25-04-18[/TD]
[TD] [/TD]
[TD] [/TD]
[/TR]
[TR]
[TD]26-04-18[/TD]
[TD] [/TD]
[TD] [/TD]
[/TR]
[TR]
[TD]27-04-18[/TD]
[TD] [/TD]
[TD] [/TD]
[/TR]
[TR]
[TD]28-04-18[/TD]
[TD] [/TD]
[TD] [/TD]
[/TR]
[TR]
[TD]29-04-18[/TD]
[TD] [/TD]
[TD] [/TD]
[/TR]
[TR]
[TD]30-04-18[/TD]
[TD] [/TD]
[TD] [/TD]
[/TR]
[TR]
[TD][/TD]
[TD] [/TD]
[TD] [/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Average[/TD]
[TD]0.00%[/TD]
[TD]0.00%[/TD]
[/TR]
[TR]
[TD][/TD]
[TD]Fail[/TD]
[TD]Fail[/TD]
[/TR]
</tbody>[/TABLE]
I hope I have explained what I am attempting well and I do hope I will be able to get a formula that will work for this application
Regards
bagman002