Pivot tables

kcindc02

New Member
Joined
Nov 19, 2017
Messages
1
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]
 
Last edited by a moderator:

Excel Facts

Which came first: VisiCalc or Lotus 1-2-3?
Dan Bricklin and Bob Frankston debuted VisiCalc in 1979 as a Visible Calculator. Lotus 1-2-3 debuted in the early 1980's, from Mitch Kapor.

Forum statistics

Threads
1,224,823
Messages
6,181,181
Members
453,022
Latest member
Mohamed Magdi Tawfiq Emam

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top