Offset Index Match?

Robby19

Board Regular
Joined
Mar 19, 2018
Messages
227
Hello!

I have a table that I need to Index Match a code and date to another sheet. The problem is that there are multiple lines for each person and the code I need is not always the first one.

[TABLE="width: 500"]
<TBODY>[TR]
[TD]Name[/TD]
[TD]Employee #[/TD]
[TD]Code[/TD]
[TD]Code Date[/TD]
[/TR]
[TR]
[TD]ABC[/TD]
[TD]1[/TD]
[TD]TA[/TD]
[TD]2018/1/1[/TD]
[/TR]
[TR]
[TD]ABC[/TD]
[TD]1[/TD]
[TD]TZ[/TD]
[TD]2018/2/1[/TD]
[/TR]
[TR]
[TD]BCD[/TD]
[TD]2[/TD]
[TD]TA[/TD]
[TD]2018/5/31[/TD]
[/TR]
[TR]
[TD]FGH[/TD]
[TD]3[/TD]
[TD]TZ[/TD]
[TD]2018/2/4[/TD]
[/TR]
[TR]
[TD]BCD[/TD]
[TD]2[/TD]
[TD]TZ[/TD]
[TD]2018/6/1[/TD]
[/TR]
</TBODY>[/TABLE]

I need to pull the data into something like this;
[TABLE="width: 500"]
<TBODY>[TR]
[TD]Name[/TD]
[TD]Employee #[/TD]
[TD]TA Code[/TD]
[TD]TA Date[/TD]
[TD]TZ Code[/TD]
[TD]TZ Date[/TD]
[/TR]
[TR]
[TD]ABC[/TD]
[TD]1[/TD]
[TD]TA[/TD]
[TD]2018/1/1[/TD]
[TD]TZ[/TD]
[TD]2018/2/1[/TD]
[/TR]
[TR]
[TD]BCD[/TD]
[TD]2[/TD]
[TD]TA[/TD]
[TD]2018/5/31[/TD]
[TD]TZ[/TD]
[TD]2018/6/1[/TD]
[/TR]
[TR]
[TD]FGH[/TD]
[TD]3[/TD]
[TD][/TD]
[TD][/TD]
[TD]TZ[/TD]
[TD]2018/2/4[/TD]
[/TR]
</TBODY>[/TABLE]
 

Excel Facts

Whats the difference between CONCAT and CONCATENATE?
The newer CONCAT function can reference a range of cells. =CONCATENATE(A1,A2,A3,A4,A5) becomes =CONCAT(A1:A5)
The second table on Post #1 is what I would like the result to be. The first table is the output from our system logs. I want to be able to re-format the data so that it displays like table 2.

I have the TA Code and Date columns working fine. The issue that I'm having is getting the TZ Code and Dates to appear on Table 2, if the person also has the TA Code ran in our system.
 
Last edited:
Upvote 0

Forum statistics

Threads
1,224,824
Messages
6,181,187
Members
453,020
Latest member
Mohamed Magdi Tawfiq Emam

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