Index and Match - Gathering data from columns with no headers

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

Get help while writing formula
Click the italics "fx" icon to the left of the formula bar to open the Functions Arguments dialog. Help is displayed for each argument.
Paste your first table so that "first_name" is in A1
Paste your second table so that "Date" is in F1

in G2
=IFERROR(LOOKUP(2,1/(G$1=$A$2:$A$27)/($F2=$C$2:$C$27),($D$2:$D$27)),"")
copy across and down the columns
format the second table as required
 
Upvote 0
The first table is how the systems dumps the data as a CSV. I am trying to use the index and match to setup the bottom table.

Ideally I do not want to manually manipulate the data if I can help it as I am trying to limit the amount of manual work I need to do to save time.

I am using this formula "=IFERROR(INDEX(Rawdata!D32:D45,MATCH(A3,Rawdata!C32:C45,0)),"-")" However there is not expanding on this as the dataset will only be looking at a small cell range.

I have attached a sample of what my document currently looks like in hopes that it might explain what I am attempting to do a little easier.

https://1drv.ms/x/s!AnEMENezPc2BhuNPLnFHBEoNS7lFjQ
 
Upvote 0

Forum statistics

Threads
1,223,911
Messages
6,175,327
Members
452,635
Latest member
laura12345

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