Jim Murphy
New Member
- Joined
- Oct 29, 2012
- Messages
- 1
I have a spreadsheet with several hundred records. I would like to populate blank fields in each record with information from another record with the same value in a particular field.
In the example below (blank cells have been replaced with ___), I want to populate all the blank fields in the column fk_unit based on the Equipment ID.
[TABLE="width: 374"]
<colgroup><col><col><col></colgroup><tbody>[TR]
[TD]EquipmentID[/TD]
[TD]Component Type[/TD]
[TD]fk_Unit[/TD]
[/TR]
[TR]
[TD]150082[/TD]
[TD]Header[/TD]
[TD]GDU[/TD]
[/TR]
[TR]
[TD]150082[/TD]
[TD]Tube[/TD]
[TD]___[/TD]
[/TR]
[TR]
[TD]150083[/TD]
[TD]Header[/TD]
[TD]FCC[/TD]
[/TR]
[TR]
[TD]150083[/TD]
[TD]Tube[/TD]
[TD]___[/TD]
[/TR]
[TR]
[TD]150096[/TD]
[TD]Header[/TD]
[TD]TGT[/TD]
[/TR]
[TR]
[TD]150096[/TD]
[TD]Tube[/TD]
[TD]___[/TD]
[/TR]
[TR]
[TD]150097[/TD]
[TD]Header[/TD]
[TD]GDU[/TD]
[/TR]
[TR]
[TD]150097[/TD]
[TD]Tube[/TD]
[TD]___[/TD]
[/TR]
</tbody>[/TABLE]
The table below shows my end goal. The underlined values are the ones I want to populate. Heres the catch.. I have a tables with several hundred records and about 160 columns. There are multiple columns I would like to populate based on the equipment ID, and the storage location for the date varies from record to record. In the example above, fk_unit was always populated for the component 'Header'. In practice, fk_unit may be populated for the component 'Tube', in which case I would like to populate the 'Header' record. Any help is much appreciated!
[TABLE="width: 374"]
<colgroup><col><col><col></colgroup><tbody>[TR]
[TD]EquipmentID[/TD]
[TD]Component Type[/TD]
[TD]fk_Unit[/TD]
[/TR]
[TR]
[TD]150082[/TD]
[TD]Header[/TD]
[TD]GDU[/TD]
[/TR]
[TR]
[TD]150082[/TD]
[TD]Tube[/TD]
[TD]GDU[/TD]
[/TR]
[TR]
[TD]150083[/TD]
[TD]Header[/TD]
[TD]FCC[/TD]
[/TR]
[TR]
[TD]150083[/TD]
[TD]Tube[/TD]
[TD]FCC[/TD]
[/TR]
[TR]
[TD]150096[/TD]
[TD]Header[/TD]
[TD]TGT[/TD]
[/TR]
[TR]
[TD]150096[/TD]
[TD]Tube[/TD]
[TD]TGT[/TD]
[/TR]
[TR]
[TD]150097[/TD]
[TD]Header[/TD]
[TD]GDU[/TD]
[/TR]
[TR]
[TD]150097[/TD]
[TD]Tube[/TD]
[TD]GDU[/TD]
[/TR]
</tbody>[/TABLE]
In the example below (blank cells have been replaced with ___), I want to populate all the blank fields in the column fk_unit based on the Equipment ID.
[TABLE="width: 374"]
<colgroup><col><col><col></colgroup><tbody>[TR]
[TD]EquipmentID[/TD]
[TD]Component Type[/TD]
[TD]fk_Unit[/TD]
[/TR]
[TR]
[TD]150082[/TD]
[TD]Header[/TD]
[TD]GDU[/TD]
[/TR]
[TR]
[TD]150082[/TD]
[TD]Tube[/TD]
[TD]___[/TD]
[/TR]
[TR]
[TD]150083[/TD]
[TD]Header[/TD]
[TD]FCC[/TD]
[/TR]
[TR]
[TD]150083[/TD]
[TD]Tube[/TD]
[TD]___[/TD]
[/TR]
[TR]
[TD]150096[/TD]
[TD]Header[/TD]
[TD]TGT[/TD]
[/TR]
[TR]
[TD]150096[/TD]
[TD]Tube[/TD]
[TD]___[/TD]
[/TR]
[TR]
[TD]150097[/TD]
[TD]Header[/TD]
[TD]GDU[/TD]
[/TR]
[TR]
[TD]150097[/TD]
[TD]Tube[/TD]
[TD]___[/TD]
[/TR]
</tbody>[/TABLE]
The table below shows my end goal. The underlined values are the ones I want to populate. Heres the catch.. I have a tables with several hundred records and about 160 columns. There are multiple columns I would like to populate based on the equipment ID, and the storage location for the date varies from record to record. In the example above, fk_unit was always populated for the component 'Header'. In practice, fk_unit may be populated for the component 'Tube', in which case I would like to populate the 'Header' record. Any help is much appreciated!
[TABLE="width: 374"]
<colgroup><col><col><col></colgroup><tbody>[TR]
[TD]EquipmentID[/TD]
[TD]Component Type[/TD]
[TD]fk_Unit[/TD]
[/TR]
[TR]
[TD]150082[/TD]
[TD]Header[/TD]
[TD]GDU[/TD]
[/TR]
[TR]
[TD]150082[/TD]
[TD]Tube[/TD]
[TD]GDU[/TD]
[/TR]
[TR]
[TD]150083[/TD]
[TD]Header[/TD]
[TD]FCC[/TD]
[/TR]
[TR]
[TD]150083[/TD]
[TD]Tube[/TD]
[TD]FCC[/TD]
[/TR]
[TR]
[TD]150096[/TD]
[TD]Header[/TD]
[TD]TGT[/TD]
[/TR]
[TR]
[TD]150096[/TD]
[TD]Tube[/TD]
[TD]TGT[/TD]
[/TR]
[TR]
[TD]150097[/TD]
[TD]Header[/TD]
[TD]GDU[/TD]
[/TR]
[TR]
[TD]150097[/TD]
[TD]Tube[/TD]
[TD]GDU[/TD]
[/TR]
</tbody>[/TABLE]