Jerry138889
New Member
- Joined
- May 23, 2013
- Messages
- 28
A program I use outputs data in a non-pivot friendly format. It has already grouped the data with different levels.
I am trying to convert this data into data that is pivot table friendly.
I currently have data like this where Location is always filled out and will have at least one (but possibly more) entries but Shop Name and Employee might have blank/zero values or an actual value.
[TABLE="width: 166"]
<colgroup><col></colgroup><tbody>[TR]
[TD]Location[/TD]
[/TR]
[TR]
[TD]France[/TD]
[/TR]
[TR]
[TD]Germany[/TD]
[/TR]
[TR]
[TD]Shop Name[/TD]
[/TR]
[TR]
[TD]Aldi[/TD]
[/TR]
[TR]
[TD]Employee[/TD]
[/TR]
[TR]
[TD]Sally[/TD]
[/TR]
[TR]
[TD]Harry[/TD]
[/TR]
[TR]
[TD]Peter[/TD]
[/TR]
[TR]
[TD]Location[/TD]
[/TR]
[TR]
[TD]France[/TD]
[/TR]
[TR]
[TD]Shop Name[/TD]
[/TR]
[TR]
[TD]Carrefour[/TD]
[/TR]
[TR]
[TD]Employee[/TD]
[/TR]
[TR]
[TD]Francis[/TD]
[/TR]
[TR]
[TD]Petra[/TD]
[/TR]
[TR]
[TD]Location[/TD]
[/TR]
[TR]
[TD]USA[/TD]
[/TR]
[TR]
[TD]Shop Name[/TD]
[/TR]
[TR]
[TD]Walmart[/TD]
[/TR]
[TR]
[TD]Location[/TD]
[/TR]
[TR]
[TD]UK[/TD]
[/TR]
[TR]
[TD]Shop Name[/TD]
[/TR]
[TR]
[TD]Tesco[/TD]
[/TR]
[TR]
[TD]Morrison's[/TD]
[/TR]
[TR]
[TD]Employee[/TD]
[/TR]
[TR]
[TD]Jerry
And I want to convert it to this type of data so that I can manipulate it in a pivot table
[/TD]
[/TR]
</tbody>[/TABLE]
[TABLE="width: 192"]
<colgroup><col width="64" span="3" style="width:48pt"> </colgroup><tbody>[TR]
[TD="class: xl65, width: 64"]Location[/TD]
[TD="class: xl65, width: 64"]Shop Name[/TD]
[TD="class: xl65, width: 64"] Employee[/TD]
[/TR]
[TR]
[TD="class: xl66"]France[/TD]
[TD="class: xl66"] [/TD]
[TD="class: xl66"] [/TD]
[/TR]
[TR]
[TD="class: xl66"]Germany[/TD]
[TD="class: xl66"] Aldi[/TD]
[TD="class: xl66"] Sally[/TD]
[/TR]
[TR]
[TD="class: xl66"] [/TD]
[TD="class: xl66"] [/TD]
[TD="class: xl66"] Harry[/TD]
[/TR]
[TR]
[TD="class: xl66"] [/TD]
[TD="class: xl66"] [/TD]
[TD="class: xl66"] Peter[/TD]
[/TR]
[TR]
[TD="class: xl66"]France[/TD]
[TD="class: xl66"]Carrefour[/TD]
[TD="class: xl66"] Francis[/TD]
[/TR]
[TR]
[TD="class: xl66"] [/TD]
[TD="class: xl66"] [/TD]
[TD="class: xl66"] Petra[/TD]
[/TR]
[TR]
[TD="class: xl66"]USA[/TD]
[TD="class: xl66"]Walmart[/TD]
[TD="class: xl66"] [/TD]
[/TR]
[TR]
[TD="class: xl66"]UK[/TD]
[TD="class: xl66"]Tesco[/TD]
[TD="class: xl66"] [/TD]
[/TR]
[TR]
[TD="class: xl66"] [/TD]
[TD="class: xl66"]Morrison's[/TD]
[TD="class: xl66"] Jerry[/TD]
[/TR]
</tbody>[/TABLE]
I am trying to convert this data into data that is pivot table friendly.
I currently have data like this where Location is always filled out and will have at least one (but possibly more) entries but Shop Name and Employee might have blank/zero values or an actual value.
[TABLE="width: 166"]
<colgroup><col></colgroup><tbody>[TR]
[TD]Location[/TD]
[/TR]
[TR]
[TD]France[/TD]
[/TR]
[TR]
[TD]Germany[/TD]
[/TR]
[TR]
[TD]Shop Name[/TD]
[/TR]
[TR]
[TD]Aldi[/TD]
[/TR]
[TR]
[TD]Employee[/TD]
[/TR]
[TR]
[TD]Sally[/TD]
[/TR]
[TR]
[TD]Harry[/TD]
[/TR]
[TR]
[TD]Peter[/TD]
[/TR]
[TR]
[TD]Location[/TD]
[/TR]
[TR]
[TD]France[/TD]
[/TR]
[TR]
[TD]Shop Name[/TD]
[/TR]
[TR]
[TD]Carrefour[/TD]
[/TR]
[TR]
[TD]Employee[/TD]
[/TR]
[TR]
[TD]Francis[/TD]
[/TR]
[TR]
[TD]Petra[/TD]
[/TR]
[TR]
[TD]Location[/TD]
[/TR]
[TR]
[TD]USA[/TD]
[/TR]
[TR]
[TD]Shop Name[/TD]
[/TR]
[TR]
[TD]Walmart[/TD]
[/TR]
[TR]
[TD]Location[/TD]
[/TR]
[TR]
[TD]UK[/TD]
[/TR]
[TR]
[TD]Shop Name[/TD]
[/TR]
[TR]
[TD]Tesco[/TD]
[/TR]
[TR]
[TD]Morrison's[/TD]
[/TR]
[TR]
[TD]Employee[/TD]
[/TR]
[TR]
[TD]Jerry
And I want to convert it to this type of data so that I can manipulate it in a pivot table
[/TD]
[/TR]
</tbody>[/TABLE]
[TABLE="width: 192"]
<colgroup><col width="64" span="3" style="width:48pt"> </colgroup><tbody>[TR]
[TD="class: xl65, width: 64"]Location[/TD]
[TD="class: xl65, width: 64"]Shop Name[/TD]
[TD="class: xl65, width: 64"] Employee[/TD]
[/TR]
[TR]
[TD="class: xl66"]France[/TD]
[TD="class: xl66"] [/TD]
[TD="class: xl66"] [/TD]
[/TR]
[TR]
[TD="class: xl66"]Germany[/TD]
[TD="class: xl66"] Aldi[/TD]
[TD="class: xl66"] Sally[/TD]
[/TR]
[TR]
[TD="class: xl66"] [/TD]
[TD="class: xl66"] [/TD]
[TD="class: xl66"] Harry[/TD]
[/TR]
[TR]
[TD="class: xl66"] [/TD]
[TD="class: xl66"] [/TD]
[TD="class: xl66"] Peter[/TD]
[/TR]
[TR]
[TD="class: xl66"]France[/TD]
[TD="class: xl66"]Carrefour[/TD]
[TD="class: xl66"] Francis[/TD]
[/TR]
[TR]
[TD="class: xl66"] [/TD]
[TD="class: xl66"] [/TD]
[TD="class: xl66"] Petra[/TD]
[/TR]
[TR]
[TD="class: xl66"]USA[/TD]
[TD="class: xl66"]Walmart[/TD]
[TD="class: xl66"] [/TD]
[/TR]
[TR]
[TD="class: xl66"]UK[/TD]
[TD="class: xl66"]Tesco[/TD]
[TD="class: xl66"] [/TD]
[/TR]
[TR]
[TD="class: xl66"] [/TD]
[TD="class: xl66"]Morrison's[/TD]
[TD="class: xl66"] Jerry[/TD]
[/TR]
</tbody>[/TABLE]