I understand that it is hard to understand. I have a sample but I am not sure how to attach file in the forum.
So I have three spreadsheets. I want to combine them into 1 but need to make sure data aligns. For example, below I have copied data from all three files into 1 sheet. But I want value of column 4 & 5 of all 3 files match with the column 1,2and 3 AND on the same row. So in my master file. I will have columns State, DOC, Type, Begin1, end 1, begin 2, end 2, begin 3 and end 3. Where the data is not available, it should leave it blank.
Below Example shows my raw data that I just copy pasted next to each other.
[TABLE="width: 816"]
<tbody>[TR]
[TD]State[/TD]
[TD]DOC[/TD]
[TD]Type[/TD]
[TD]Begin 1[/TD]
[TD]End 1[/TD]
[TD][/TD]
[TD]State[/TD]
[TD]DOC[/TD]
[TD]Type[/TD]
[TD]Begin 2[/TD]
[TD]End 2[/TD]
[TD][/TD]
[TD]State[/TD]
[TD]DOC[/TD]
[TD]Type[/TD]
[TD]Begin 3[/TD]
[TD]End 3[/TD]
[/TR]
[TR]
[TD]Chicago[/TD]
[TD]PA[/TD]
[TD]1[/TD]
[TD]7[/TD]
[TD]7[/TD]
[TD][/TD]
[TD]Chicago[/TD]
[TD]PA[/TD]
[TD]1[/TD]
[TD]6[/TD]
[TD]6[/TD]
[TD][/TD]
[TD]Chicago[/TD]
[TD]PA[/TD]
[TD]1[/TD]
[TD]5[/TD]
[TD]4[/TD]
[/TR]
[TR]
[TD]Chicago[/TD]
[TD]PA[/TD]
[TD]2[/TD]
[TD] [/TD]
[TD] [/TD]
[TD][/TD]
[TD]Chicago[/TD]
[TD]PA[/TD]
[TD]2[/TD]
[TD]1[/TD]
[TD]0[/TD]
[TD][/TD]
[TD]Chicago[/TD]
[TD]PA[/TD]
[TD]2[/TD]
[TD]1[/TD]
[TD]0[/TD]
[/TR]
[TR]
[TD]Chicago[/TD]
[TD]PA[/TD]
[TD]3[/TD]
[TD]12[/TD]
[TD]12[/TD]
[TD][/TD]
[TD]Chicago[/TD]
[TD]PA[/TD]
[TD]3[/TD]
[TD]20[/TD]
[TD]16[/TD]
[TD][/TD]
[TD]Chicago[/TD]
[TD]PA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PD[/TD]
[TD]3[/TD]
[TD]658[/TD]
[TD]657[/TD]
[/TR]
</tbody><colgroup><col><col><col><col><col><col><col><col><col><col><col><col><col><col><col><col><col></colgroup>[/TABLE]
This is how the final result should be [TABLE="width: 576"]
<colgroup><col width="64" style="width: 48pt;" span="9">
<tbody>[TR]
[TD="class: xl74, width: 64, bgcolor: #DBE5F1"]State[/TD]
[TD="class: xl74, width: 64, bgcolor: #DBE5F1"]DOC[/TD]
[TD="class: xl74, width: 64, bgcolor: #DBE5F1"]Type[/TD]
[TD="class: xl73, width: 64, bgcolor: #DBE5F1"]Begin 1[/TD]
[TD="class: xl73, width: 64, bgcolor: #DBE5F1"]End 1[/TD]
[TD="class: xl73, width: 64, bgcolor: #DBE5F1"]Begin 2[/TD]
[TD="class: xl73, width: 64, bgcolor: #DBE5F1"]End 2[/TD]
[TD="class: xl73, width: 64, bgcolor: #DBE5F1"]Begin 3[/TD]
[TD="class: xl73, width: 64, bgcolor: #DBE5F1"]End 3[/TD]
[/TR]
[TR]
[TD="class: xl70, bgcolor: #DBE5F1"]Chicago[/TD]
[TD="class: xl70, bgcolor: #DBE5F1"]PA[/TD]
[TD="class: xl70, bgcolor: #DBE5F1"]1[/TD]
[TD="class: xl71, bgcolor: transparent"]7[/TD]
[TD="class: xl71, bgcolor: transparent"]7[/TD]
[TD="class: xl71, bgcolor: transparent"]6[/TD]
[TD="class: xl71, bgcolor: transparent"]6[/TD]
[TD="class: xl71, bgcolor: transparent"]5[/TD]
[TD="class: xl71, bgcolor: transparent"]4[/TD]
[/TR]
[TR]
[TD="class: xl70, bgcolor: #DBE5F1"]Chicago[/TD]
[TD="class: xl70, bgcolor: #DBE5F1"]PA[/TD]
[TD="class: xl70, bgcolor: #DBE5F1"]2[/TD]
[TD="class: xl72, bgcolor: #BFBFBF"] [/TD]
[TD="class: xl72, bgcolor: #BFBFBF"] [/TD]
[TD="class: xl71, bgcolor: transparent"]1[/TD]
[TD="class: xl71, bgcolor: transparent"]0[/TD]
[TD="class: xl71, bgcolor: transparent"]1[/TD]
[TD="class: xl71, bgcolor: transparent"]0[/TD]
[/TR]
[TR]
[TD="class: xl70, bgcolor: #DBE5F1"]Chicago[/TD]
[TD="class: xl70, bgcolor: #DBE5F1"]PA[/TD]
[TD="class: xl70, bgcolor: #DBE5F1"]3[/TD]
[TD="class: xl71, bgcolor: transparent"]12[/TD]
[TD="class: xl71, bgcolor: transparent"]12[/TD]
[TD="class: xl71, bgcolor: transparent"]20[/TD]
[TD="class: xl71, bgcolor: transparent"]16[/TD]
[TD="class: xl71, bgcolor: transparent"]3[/TD]
[TD="class: xl71, bgcolor: transparent"]2[/TD]
[/TR]
[TR]
[TD="class: xl70, bgcolor: #DBE5F1"]Chicago[/TD]
[TD="class: xl70, bgcolor: #DBE5F1"]PB[/TD]
[TD="class: xl70, bgcolor: #DBE5F1"]3[/TD]
[TD="class: xl71, bgcolor: transparent"]5[/TD]
[TD="class: xl71, bgcolor: transparent"]5[/TD]
[TD="class: xl71, bgcolor: transparent"]9[/TD]
[TD="class: xl71, bgcolor: transparent"]9[/TD]
[TD="class: xl71, bgcolor: transparent"]5[/TD]
[TD="class: xl71, bgcolor: transparent"]5[/TD]
[/TR]
[TR]
[TD="class: xl70, bgcolor: #DBE5F1"]Chicago[/TD]
[TD="class: xl70, bgcolor: #DBE5F1"]PC[/TD]
[TD="class: xl70, bgcolor: #DBE5F1"]1[/TD]
[TD="class: xl72, bgcolor: #BFBFBF"] [/TD]
[TD="class: xl72, bgcolor: #BFBFBF"] [/TD]
[TD="class: xl72, bgcolor: #BFBFBF"] [/TD]
[TD="class: xl72, bgcolor: #BFBFBF"] [/TD]
[TD="class: xl72, bgcolor: #BFBFBF"] [/TD]
[TD="class: xl72, bgcolor: #BFBFBF"] [/TD]
[/TR]
[TR]
[TD="class: xl70, bgcolor: #DBE5F1"]Chicago[/TD]
[TD="class: xl70, bgcolor: #DBE5F1"]PC[/TD]
[TD="class: xl70, bgcolor: #DBE5F1"]3[/TD]
[TD="class: xl71, bgcolor: transparent"]1[/TD]
[TD="class: xl71, bgcolor: transparent"]1[/TD]
[TD="class: xl72, bgcolor: #BFBFBF"] [/TD]
[TD="class: xl72, bgcolor: #BFBFBF"] [/TD]
[TD="class: xl71, bgcolor: transparent"]2[/TD]
[TD="class: xl71, bgcolor: transparent"]2[/TD]
[/TR]
[TR]
[TD="class: xl70, bgcolor: #DBE5F1"]Chicago[/TD]
[TD="class: xl70, bgcolor: #DBE5F1"]PC[/TD]
[TD="class: xl70, bgcolor: #DBE5F1"]4[/TD]
[TD="class: xl72, bgcolor: #BFBFBF"] [/TD]
[TD="class: xl72, bgcolor: #BFBFBF"] [/TD]
[TD="class: xl72, bgcolor: #BFBFBF"] [/TD]
[TD="class: xl72, bgcolor: #BFBFBF"] [/TD]
[TD="class: xl72, bgcolor: #BFBFBF"] [/TD]
[TD="class: xl72, bgcolor: #BFBFBF"] [/TD]
[/TR]
[TR]
[TD="class: xl70, bgcolor: #DBE5F1"]Chicago[/TD]
[TD="class: xl70, bgcolor: #DBE5F1"]PD[/TD]
[TD="class: xl70, bgcolor: #DBE5F1"]1[/TD]
[TD="class: xl71, bgcolor: transparent"]158[/TD]
[TD="class: xl71, bgcolor: transparent"]154[/TD]
[TD="class: xl71, bgcolor: transparent"]166[/TD]
[TD="class: xl71, bgcolor: transparent"]158[/TD]
[TD="class: xl71, bgcolor: transparent"]210[/TD]
[TD="class: xl71, bgcolor: transparent"]204[/TD]
[/TR]
</tbody>[/TABLE]