Developing a graph out of raw data

Tjeu

New Member
Joined
Sep 13, 2022
Messages
4
Office Version
  1. 365
Platform
  1. Windows
Hey guys,

I am a sports coach and I want to have a graph of the xG (Expected Goals) in a game over time. The graph would consist of 4 lines (1 with my teams expected goals, and 1 with my teams actual goals, and the same for the opponent).

I have an application that exports a raw data file in excel and I want to let excel automaticaly form the graph. The image that I will add to this message is the raw data file that I will get after every game. You can tell the time, goals, shots and everything. Every type of shot is a different value for xG. For example, a long distance shot is 0.14 and a penalty is 0.84. I think I can use a stacked line chart for this issue, but I don't know how I can code this.

Can someone help me develop some sort of code for this?

It will need to look a little bit like the other image I will add to this message. But then, I want to add 2 lines (1 for each team's actually scored goals).

Kind regards,
Tjeu
 

Attachments

  • Schermafbeelding 2022-11-09 163002.png
    Schermafbeelding 2022-11-09 163002.png
    135.7 KB · Views: 11
  • Schermafbeelding 2022-11-09 163549.png
    Schermafbeelding 2022-11-09 163549.png
    62.9 KB · Views: 8

Excel Facts

Can a formula spear through sheets?
Use =SUM(January:December!E7) to sum E7 on all of the sheets from January through December

Forum statistics

Threads
1,215,032
Messages
6,122,772
Members
449,095
Latest member
m_smith_solihull

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