Hi,
Forum newbie here, this site has helped me many times as I've always found that my query has been asked and answered before but not this time hence my first time post.
So hello! and I hope someone can help on a puzzle that is beyond my Excel knowledge, hopefully I can explain it correctly.
I have the data on sheet1 as below.[TABLE="class: grid, width: 550"]
<tbody>[TR]
[TD][/TD]
[TD]A[/TD]
[TD]B[/TD]
[TD]C[/TD]
[TD]D[/TD]
[TD]E[/TD]
[TD]F[/TD]
[TD]G[/TD]
[/TR]
[TR]
[TD]1[/TD]
[TD]Email [/TD]
[TD]Step A1[/TD]
[TD]Step A2[/TD]
[TD]Step A3[/TD]
[TD]Step B1[/TD]
[TD]Step B2[/TD]
[TD]Step B3[/TD]
[/TR]
[TR]
[TD]2[/TD]
[TD]email1[/TD]
[TD]completed[/TD]
[TD]enrolled[/TD]
[TD]enrolled[/TD]
[TD]enrolled[/TD]
[TD]enrolled[/TD]
[TD]enrolled[/TD]
[/TR]
[TR]
[TD]3[/TD]
[TD]email2[/TD]
[TD]completed[/TD]
[TD]completed[/TD]
[TD]completed[/TD]
[TD]completed[/TD]
[TD]completed[/TD]
[TD]enrolled[/TD]
[/TR]
[TR]
[TD]4[/TD]
[TD]email3[/TD]
[TD]completed[/TD]
[TD]completed[/TD]
[TD]completed[/TD]
[TD]enrolled[/TD]
[TD]enrolled[/TD]
[TD]enrolled[/TD]
[/TR]
</tbody>[/TABLE]
On sheet2 I need to first look up the email address and then return the column header of the furthest right example of the text string "completed" like below.
[TABLE="class: grid, width: 300"]
<tbody>[TR]
[TD][/TD]
[TD]A[/TD]
[TD]B[/TD]
[/TR]
[TR]
[TD]1[/TD]
[TD]Email [/TD]
[TD]Last Step Completed[/TD]
[/TR]
[TR]
[TD]2[/TD]
[TD]email1[/TD]
[TD]Answer would be "Step A1"[/TD]
[/TR]
[TR]
[TD]3[/TD]
[TD]email2[/TD]
[TD]Answer would be "Step B2"[/TD]
[/TR]
[TR]
[TD]4[/TD]
[TD]email3[/TD]
[TD]Answer would be "Step A3"[/TD]
[/TR]
</tbody>[/TABLE]
Hopefully that makes sense, I appreciate any help on this.
Thanks
Forum newbie here, this site has helped me many times as I've always found that my query has been asked and answered before but not this time hence my first time post.
So hello! and I hope someone can help on a puzzle that is beyond my Excel knowledge, hopefully I can explain it correctly.
I have the data on sheet1 as below.[TABLE="class: grid, width: 550"]
<tbody>[TR]
[TD][/TD]
[TD]A[/TD]
[TD]B[/TD]
[TD]C[/TD]
[TD]D[/TD]
[TD]E[/TD]
[TD]F[/TD]
[TD]G[/TD]
[/TR]
[TR]
[TD]1[/TD]
[TD]Email [/TD]
[TD]Step A1[/TD]
[TD]Step A2[/TD]
[TD]Step A3[/TD]
[TD]Step B1[/TD]
[TD]Step B2[/TD]
[TD]Step B3[/TD]
[/TR]
[TR]
[TD]2[/TD]
[TD]email1[/TD]
[TD]completed[/TD]
[TD]enrolled[/TD]
[TD]enrolled[/TD]
[TD]enrolled[/TD]
[TD]enrolled[/TD]
[TD]enrolled[/TD]
[/TR]
[TR]
[TD]3[/TD]
[TD]email2[/TD]
[TD]completed[/TD]
[TD]completed[/TD]
[TD]completed[/TD]
[TD]completed[/TD]
[TD]completed[/TD]
[TD]enrolled[/TD]
[/TR]
[TR]
[TD]4[/TD]
[TD]email3[/TD]
[TD]completed[/TD]
[TD]completed[/TD]
[TD]completed[/TD]
[TD]enrolled[/TD]
[TD]enrolled[/TD]
[TD]enrolled[/TD]
[/TR]
</tbody>[/TABLE]
On sheet2 I need to first look up the email address and then return the column header of the furthest right example of the text string "completed" like below.
[TABLE="class: grid, width: 300"]
<tbody>[TR]
[TD][/TD]
[TD]A[/TD]
[TD]B[/TD]
[/TR]
[TR]
[TD]1[/TD]
[TD]Email [/TD]
[TD]Last Step Completed[/TD]
[/TR]
[TR]
[TD]2[/TD]
[TD]email1[/TD]
[TD]Answer would be "Step A1"[/TD]
[/TR]
[TR]
[TD]3[/TD]
[TD]email2[/TD]
[TD]Answer would be "Step B2"[/TD]
[/TR]
[TR]
[TD]4[/TD]
[TD]email3[/TD]
[TD]Answer would be "Step A3"[/TD]
[/TR]
</tbody>[/TABLE]
Hopefully that makes sense, I appreciate any help on this.
Thanks