Index and Match - Gather data with no table headers

Status
Not open for further replies.

bagman002

New Member
Joined
Dec 9, 2016
Messages
6
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
 

Excel Facts

Who is Mr Spreadsheet?
Author John Walkenbach was Mr Spreadsheet until his retirement in June 2019.
Duplicate https://www.mrexcel.com/forum/excel...ring-data-columns-no-headers.html#post5060425

Please do not post the same question multiple times. All clarifications, follow-ups, and bumps should be posted back to the original thread.
Per forum rules, posts of a duplicate nature will be locked or deleted (rule 12 here: Forum Rules).

Note that sometimes posts from new users require Moderator approval before you can see them on the public forums. When this happens, you should see a message to that effect when you try to post it.
Please be patient and do not attempt to post the question again.
 
Upvote 0
Status
Not open for further replies.

Forum statistics

Threads
1,223,907
Messages
6,175,300
Members
452,633
Latest member
DougMo

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