Heres my problem-
I have a sheet1 with 'parent ID's' in Column A and 'Asset IDs' in Column B, and a sheet2 with 'child IDs' In column A and 'Parent IDs' in column B.
I need to populate a new worksheet with 3 columns- one with the Child IDs, one with the matching parent ID's, and one with the matching Product ID's.
I thought an Index-Match would solve this, but the main issue is that there are multiple 'Assets' per 'Parent', and I need index-match to create multiple child entries. For example,
Worksheet 1
[TABLE="width: 128"]
<colgroup><col width="64" span="2" style="width:48pt"> </colgroup><tbody>[TR]
[TD="width: 64"][/TD]
[/TR]
</tbody>[/TABLE]
[TABLE="width: 250"]
<tbody>[TR]
[TD]Parent ID[/TD]
[TD]Asset ID[/TD]
[/TR]
[TR]
[TD]123[/TD]
[TD]xyz[/TD]
[/TR]
[TR]
[TD]123[/TD]
[TD]abc[/TD]
[/TR]
[TR]
[TD]123[/TD]
[TD]def[/TD]
[/TR]
[TR]
[TD]123[/TD]
[TD]ghi[/TD]
[/TR]
[TR]
[TD]456[/TD]
[TD]jkl[/TD]
[/TR]
[TR]
[TD]456[/TD]
[TD]mno[/TD]
[/TR]
[TR]
[TD]456[/TD]
[TD]pqr [/TD]
[/TR]
</tbody>[/TABLE]
Worksheet 2
[TABLE="width: 250"]
<tbody>[TR]
[TD]Child ID[/TD]
[TD]Parent ID[/TD]
[/TR]
[TR]
[TD]789[/TD]
[TD]123[/TD]
[/TR]
[TR]
[TD]111[/TD]
[TD]123[/TD]
[/TR]
[TR]
[TD]222[/TD]
[TD]456[/TD]
[/TR]
</tbody>[/TABLE]
I would need worksheet 3 to look like this
[TABLE="width: 500"]
<tbody>[TR]
[TD]Child ID[/TD]
[TD]Parent ID[/TD]
[TD]Asset ID
[/TD]
[/TR]
[TR]
[TD]222[/TD]
[TD]456[/TD]
[TD]jkl[/TD]
[/TR]
[TR]
[TD]222[/TD]
[TD]456[/TD]
[TD]mno[/TD]
[/TR]
[TR]
[TD]222[/TD]
[TD]456[/TD]
[TD]pqr[/TD]
[/TR]
[TR]
[TD]111[/TD]
[TD]123[/TD]
[TD]xyz[/TD]
[/TR]
[TR]
[TD]111[/TD]
[TD]123[/TD]
[TD]abc[/TD]
[/TR]
[TR]
[TD]111[/TD]
[TD]123[/TD]
[TD]def[/TD]
[/TR]
[TR]
[TD]111[/TD]
[TD]123[/TD]
[TD]ghi[/TD]
[/TR]
[TR]
[TD]789[/TD]
[TD]123[/TD]
[TD]xyz[/TD]
[/TR]
[TR]
[TD]789[/TD]
[TD]123[/TD]
[TD]abc[/TD]
[/TR]
[TR]
[TD]789[/TD]
[TD]123[/TD]
[TD]def[/TD]
[/TR]
[TR]
[TD]789[/TD]
[TD]123[/TD]
[TD]ghi
[/TD]
[/TR]
</tbody>[/TABLE]
Does anyone have a macro or a formula suggestion for me to use? I've been struggling trying to get INDEX-MATCH to work all day, and am out of ideas. Help would be greatly appreciated!
-David
I have a sheet1 with 'parent ID's' in Column A and 'Asset IDs' in Column B, and a sheet2 with 'child IDs' In column A and 'Parent IDs' in column B.
I need to populate a new worksheet with 3 columns- one with the Child IDs, one with the matching parent ID's, and one with the matching Product ID's.
I thought an Index-Match would solve this, but the main issue is that there are multiple 'Assets' per 'Parent', and I need index-match to create multiple child entries. For example,
Worksheet 1
[TABLE="width: 128"]
<colgroup><col width="64" span="2" style="width:48pt"> </colgroup><tbody>[TR]
[TD="width: 64"][/TD]
[/TR]
</tbody>[/TABLE]
[TABLE="width: 250"]
<tbody>[TR]
[TD]Parent ID[/TD]
[TD]Asset ID[/TD]
[/TR]
[TR]
[TD]123[/TD]
[TD]xyz[/TD]
[/TR]
[TR]
[TD]123[/TD]
[TD]abc[/TD]
[/TR]
[TR]
[TD]123[/TD]
[TD]def[/TD]
[/TR]
[TR]
[TD]123[/TD]
[TD]ghi[/TD]
[/TR]
[TR]
[TD]456[/TD]
[TD]jkl[/TD]
[/TR]
[TR]
[TD]456[/TD]
[TD]mno[/TD]
[/TR]
[TR]
[TD]456[/TD]
[TD]pqr [/TD]
[/TR]
</tbody>[/TABLE]
Worksheet 2
[TABLE="width: 250"]
<tbody>[TR]
[TD]Child ID[/TD]
[TD]Parent ID[/TD]
[/TR]
[TR]
[TD]789[/TD]
[TD]123[/TD]
[/TR]
[TR]
[TD]111[/TD]
[TD]123[/TD]
[/TR]
[TR]
[TD]222[/TD]
[TD]456[/TD]
[/TR]
</tbody>[/TABLE]
I would need worksheet 3 to look like this
[TABLE="width: 500"]
<tbody>[TR]
[TD]Child ID[/TD]
[TD]Parent ID[/TD]
[TD]Asset ID
[/TD]
[/TR]
[TR]
[TD]222[/TD]
[TD]456[/TD]
[TD]jkl[/TD]
[/TR]
[TR]
[TD]222[/TD]
[TD]456[/TD]
[TD]mno[/TD]
[/TR]
[TR]
[TD]222[/TD]
[TD]456[/TD]
[TD]pqr[/TD]
[/TR]
[TR]
[TD]111[/TD]
[TD]123[/TD]
[TD]xyz[/TD]
[/TR]
[TR]
[TD]111[/TD]
[TD]123[/TD]
[TD]abc[/TD]
[/TR]
[TR]
[TD]111[/TD]
[TD]123[/TD]
[TD]def[/TD]
[/TR]
[TR]
[TD]111[/TD]
[TD]123[/TD]
[TD]ghi[/TD]
[/TR]
[TR]
[TD]789[/TD]
[TD]123[/TD]
[TD]xyz[/TD]
[/TR]
[TR]
[TD]789[/TD]
[TD]123[/TD]
[TD]abc[/TD]
[/TR]
[TR]
[TD]789[/TD]
[TD]123[/TD]
[TD]def[/TD]
[/TR]
[TR]
[TD]789[/TD]
[TD]123[/TD]
[TD]ghi
[/TD]
[/TR]
</tbody>[/TABLE]
Does anyone have a macro or a formula suggestion for me to use? I've been struggling trying to get INDEX-MATCH to work all day, and am out of ideas. Help would be greatly appreciated!
-David