Hi Everyone,
I have a report generated from another program. It's giving me all of the information I need, it just not in a usable table form. I will try to explain. This is what a single employee record looks like. [TABLE="class: grid, width: 600"]
<tbody>[TR]
[TD="align: center"][/TD]
[TD="align: center"]A[/TD]
[TD="align: center"]B[/TD]
[TD="align: center"]C[/TD]
[TD="align: center"]D[/TD]
[TD="align: center"]E[/TD]
[TD="align: center"]F[/TD]
[TD="align: center"]G[/TD]
[TD="align: center"]H[/TD]
[/TR]
[TR]
[TD]1
[/TD]
[TD]Name:[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD]John Doe[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]2[/TD]
[TD][/TD]
[TD]Employee ID:[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD]1234[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]3[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD]DOB:[/TD]
[TD]1/1/1900[/TD]
[/TR]
[TR]
[TD]4[/TD]
[TD][/TD]
[TD][/TD]
[TD]Job:[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD]Worker[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]5[/TD]
[TD][/TD]
[TD]DL #:[/TD]
[TD][/TD]
[TD][/TD]
[TD]xxxxx-xxxxx-x2398[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]6[/TD]
[TD][/TD]
[TD]DL Class:[/TD]
[TD][/TD]
[TD]G[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]7[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
Each new record is the same template, there would be another employee starting at row 8, with the same cells and references within each employee record. Example the actual name is in F1, the next name +7rows in F8, the next +7rows in F15. Below is what I am trying to accomplish.
[TABLE="class: grid, width: 600"]
<tbody>[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]1[/TD]
[TD]Name:[/TD]
[TD]Employee ID:[/TD]
[TD]Job:[/TD]
[TD]DOB[/TD]
[TD]DL #:[/TD]
[TD]DL Class:[/TD]
[/TR]
[TR]
[TD]2[/TD]
[TD]John Doe[/TD]
[TD]1234[/TD]
[TD]Worker[/TD]
[TD]1/1/1900[/TD]
[TD]xxxxx-xxxxx-x2398[/TD]
[TD]G[/TD]
[/TR]
[TR]
[TD]3[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]4[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
I've been able to extract a list by using the following formula, but it is slow and causes the excel to crash if I drag down to far. On Sheet2! I used the following to extract the list of names, but it will only return unique values, which is ok for the names, I will have a master list. I am sure if I use this for other columns and there is blank it will skip it and cause my data to be wrong. I am guessing a macro would be best, but not sure where to start.
On Sheet2! cell A2 is "Name:", in A3 is the following code with (CTRL+SHFT+ENTER) for the array.
Thanks
I have a report generated from another program. It's giving me all of the information I need, it just not in a usable table form. I will try to explain. This is what a single employee record looks like. [TABLE="class: grid, width: 600"]
<tbody>[TR]
[TD="align: center"][/TD]
[TD="align: center"]A[/TD]
[TD="align: center"]B[/TD]
[TD="align: center"]C[/TD]
[TD="align: center"]D[/TD]
[TD="align: center"]E[/TD]
[TD="align: center"]F[/TD]
[TD="align: center"]G[/TD]
[TD="align: center"]H[/TD]
[/TR]
[TR]
[TD]1
[/TD]
[TD]Name:[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD]John Doe[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]2[/TD]
[TD][/TD]
[TD]Employee ID:[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD]1234[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]3[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD]DOB:[/TD]
[TD]1/1/1900[/TD]
[/TR]
[TR]
[TD]4[/TD]
[TD][/TD]
[TD][/TD]
[TD]Job:[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD]Worker[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]5[/TD]
[TD][/TD]
[TD]DL #:[/TD]
[TD][/TD]
[TD][/TD]
[TD]xxxxx-xxxxx-x2398[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]6[/TD]
[TD][/TD]
[TD]DL Class:[/TD]
[TD][/TD]
[TD]G[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]7[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
Each new record is the same template, there would be another employee starting at row 8, with the same cells and references within each employee record. Example the actual name is in F1, the next name +7rows in F8, the next +7rows in F15. Below is what I am trying to accomplish.
[TABLE="class: grid, width: 600"]
<tbody>[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]1[/TD]
[TD]Name:[/TD]
[TD]Employee ID:[/TD]
[TD]Job:[/TD]
[TD]DOB[/TD]
[TD]DL #:[/TD]
[TD]DL Class:[/TD]
[/TR]
[TR]
[TD]2[/TD]
[TD]John Doe[/TD]
[TD]1234[/TD]
[TD]Worker[/TD]
[TD]1/1/1900[/TD]
[TD]xxxxx-xxxxx-x2398[/TD]
[TD]G[/TD]
[/TR]
[TR]
[TD]3[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]4[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
I've been able to extract a list by using the following formula, but it is slow and causes the excel to crash if I drag down to far. On Sheet2! I used the following to extract the list of names, but it will only return unique values, which is ok for the names, I will have a master list. I am sure if I use this for other columns and there is blank it will skip it and cause my data to be wrong. I am guessing a macro would be best, but not sure where to start.
On Sheet2! cell A2 is "Name:", in A3 is the following code with (CTRL+SHFT+ENTER) for the array.
Code:
=INDEX(Sheet1!F:F,MATCH(0,IF($A$2=Sheet1!A:A,COUNTIF($A$2:$A2,Sheet1!F:F),""),0))
Thanks