I have sports statistical data and both the home and away team are listed on the same line. I am trying to create a way to do a pivot table that would allow me to look at a teams statistics whether they played at home or not. The way the sheet is structured, I can do a heck of a pivot table for teams when they are home, or another one when they are away, but not both.
Any ideas how to get the pivot table to not care if they are home or away?
[TABLE="width: 511"]
<tbody>[TR]
[TD]Date[/TD]
[TD]Away[/TD]
[TD]Aw.line[/TD]
[TD]Home[/TD]
[TD]Hm.line[/TD]
[TD]O/U[/TD]
[TD]Aw.score[/TD]
[TD]Hm.score[/TD]
[/TR]
[TR]
[TD="align: right"]9/8/2016[/TD]
[TD]Carolina[/TD]
[TD="align: right"]-3[/TD]
[TD]Denver[/TD]
[TD="align: right"]3[/TD]
[TD="align: right"]40.5[/TD]
[TD="align: right"]20[/TD]
[TD="align: right"]21[/TD]
[/TR]
[TR]
[TD="align: right"]9/11/2016[/TD]
[TD]Cleveland[/TD]
[TD="align: right"]4[/TD]
[TD]Philadelphia[/TD]
[TD="align: right"]-4[/TD]
[TD="align: right"]41.5[/TD]
[TD="align: right"]10[/TD]
[TD="align: right"]29[/TD]
[/TR]
[TR]
[TD="align: right"]9/11/2016[/TD]
[TD]Detroit[/TD]
[TD="align: right"]2.5[/TD]
[TD]Indianapolis[/TD]
[TD="align: right"]-2.5[/TD]
[TD="align: right"]51[/TD]
[TD="align: right"]39[/TD]
[TD="align: right"]35[/TD]
[/TR]
[TR]
[TD="align: right"]9/11/2016[/TD]
[TD]Minnesota[/TD]
[TD="align: right"]-2.5[/TD]
[TD]Tennessee[/TD]
[TD="align: right"]2.5[/TD]
[TD="align: right"]40[/TD]
[TD="align: right"]25[/TD]
[TD="align: right"]16[/TD]
[/TR]
[TR]
[TD="align: right"]9/11/2016[/TD]
[TD]San Diego[/TD]
[TD="align: right"]6.5[/TD]
[TD]Kansas City[/TD]
[TD="align: right"]-6.5[/TD]
[TD="align: right"]45.5[/TD]
[TD="align: right"]27[/TD]
[TD="align: right"]33[/TD]
[/TR]
</tbody>[/TABLE]
Any ideas how to get the pivot table to not care if they are home or away?
[TABLE="width: 511"]
<tbody>[TR]
[TD]Date[/TD]
[TD]Away[/TD]
[TD]Aw.line[/TD]
[TD]Home[/TD]
[TD]Hm.line[/TD]
[TD]O/U[/TD]
[TD]Aw.score[/TD]
[TD]Hm.score[/TD]
[/TR]
[TR]
[TD="align: right"]9/8/2016[/TD]
[TD]Carolina[/TD]
[TD="align: right"]-3[/TD]
[TD]Denver[/TD]
[TD="align: right"]3[/TD]
[TD="align: right"]40.5[/TD]
[TD="align: right"]20[/TD]
[TD="align: right"]21[/TD]
[/TR]
[TR]
[TD="align: right"]9/11/2016[/TD]
[TD]Cleveland[/TD]
[TD="align: right"]4[/TD]
[TD]Philadelphia[/TD]
[TD="align: right"]-4[/TD]
[TD="align: right"]41.5[/TD]
[TD="align: right"]10[/TD]
[TD="align: right"]29[/TD]
[/TR]
[TR]
[TD="align: right"]9/11/2016[/TD]
[TD]Detroit[/TD]
[TD="align: right"]2.5[/TD]
[TD]Indianapolis[/TD]
[TD="align: right"]-2.5[/TD]
[TD="align: right"]51[/TD]
[TD="align: right"]39[/TD]
[TD="align: right"]35[/TD]
[/TR]
[TR]
[TD="align: right"]9/11/2016[/TD]
[TD]Minnesota[/TD]
[TD="align: right"]-2.5[/TD]
[TD]Tennessee[/TD]
[TD="align: right"]2.5[/TD]
[TD="align: right"]40[/TD]
[TD="align: right"]25[/TD]
[TD="align: right"]16[/TD]
[/TR]
[TR]
[TD="align: right"]9/11/2016[/TD]
[TD]San Diego[/TD]
[TD="align: right"]6.5[/TD]
[TD]Kansas City[/TD]
[TD="align: right"]-6.5[/TD]
[TD="align: right"]45.5[/TD]
[TD="align: right"]27[/TD]
[TD="align: right"]33[/TD]
[/TR]
</tbody>[/TABLE]
Last edited by a moderator: