+ Reply to Thread
Results 1 to 16 of 16

Separating Home and Away Results from an Overall Set of Results

  1. #1
    Forum Contributor
    Join Date
    11-11-2011
    Location
    London England
    MS-Off Ver
    Excel 2011 for Mac
    Posts
    157

    Question Separating Home and Away Results from an Overall Set of Results

    Hi,

    I do bits and pieces with Sports Data and after discussing something with a friend I am looking to re-work how I look at certain bits of data. To do this I am looking at separating home and away results from an overall set of results (in the past I just did a VLOOKUP and did some least squares regression to generate ratings based on Margin of Victory).

    What I am looking to do is to get values from Home and Away Goal Difference for Individual Teams and Overall Home Goal Difference for all teams.

    I have made an edit of my 2009/2010 English Premier League Data (I just picked a random year) and have highlighted columns C-F (Home Team/Away Team/Home Team Full Time Goals/Away Team Full Time Goals).

    I am thinking that it may be possible to do with a VLOOKUP and some IF functions (e.g. if I had a Goal Difference column for each individual match and perhaps an IF function).

    I'd be grateful for some input on this as I have a few ideas but would appreciate a nudge in the right direction.

    Thanks in advance,

    09_10_Results_EPL_Edit.xls

  2. #2
    Valued Forum Contributor
    Join Date
    04-03-2012
    Location
    East Sussex, UK
    MS-Off Ver
    Excel 2003:2010
    Posts
    893

    Re: Separating Home and Away Results from an Overall Set of Results

    Hi,

    I'm not quite sure what you're actually asking for....

    I've run several competitions like this with friends and colleagues over the years, so if you can explain / show exactly what it is you're after, I may have something pretty much already in place that we can adapt to your need here.

    S.
    If I've been of help, please hit the star

  3. #3
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: Separating Home and Away Results from an Overall Set of Results

    Hi,

    Not quite sure if I understand what you're asking for. If you're wanting to sum the values for a particular team then you could add a couple of blank rows above the data and in E1 enter
    =SUBTOTAL(2,E3:E384)

    Then when you autofilter the data for one team (e.g. Aston Villa Home) you'll see the value 19.

    Another option would be a pivot table.

    If this is not what you're trying to do then add some manually calculated results to your workbook, add some explanatory notes and upload again.
    Richard Buttrey

    RIP - d. 06/10/2022

    If any of the responses have helped then please consider rating them by clicking the small star icon below the post.

  4. #4
    Forum Contributor
    Join Date
    11-11-2011
    Location
    London England
    MS-Off Ver
    Excel 2011 for Mac
    Posts
    157

    Re: Separating Home and Away Results from an Overall Set of Results

    Hi,

    Thanks for the info. In short I am not looking to change where I got the data from I am just looking to separate it into home and away results e.g. from another source:

    http://soccernet.espn.go.com/tables/...eague?cc=5739#

    This splits it into Overall/Home and Away. I was hoping to adjust my existing data set by applying formulas to get the same result essentially.

    I hope this helps?

  5. #5
    Forum Expert dilipandey's Avatar
    Join Date
    12-05-2011
    Location
    Dubai, UAE
    MS-Off Ver
    1997 - 2016
    Posts
    8,191

    Re: Separating Home and Away Results from an Overall Set of Results

    Hi mrvp,

    I have tried creating a pivot to show the differences .. but not sure if I got your query completely.. see sheet "pivot" in below attached:-
    09_10_Results_EPL_Edit.xls

    Regards,
    DILIPandey

    <click on below 'star' if this helps>
    DILIPandey, Excel rMVP
    +919810929744 (India), +971528225509 (Dubai), [email protected]

  6. #6
    Valued Forum Contributor
    Join Date
    04-03-2012
    Location
    East Sussex, UK
    MS-Off Ver
    Excel 2003:2010
    Posts
    893

    Re: Separating Home and Away Results from an Overall Set of Results

    So like this (see attachment)? Only more indepth??
    Attached Files Attached Files

  7. #7
    Forum Contributor
    Join Date
    11-11-2011
    Location
    London England
    MS-Off Ver
    Excel 2011 for Mac
    Posts
    157

    Re: Separating Home and Away Results from an Overall Set of Results

    Thanks Dili, that's spot on for the Home Results. Now I just need to get the Away Data - the way I'm seeing it (apologies I've never done Pivot Tables before - have done Data Tables etc.), is if you had two tables perhaps one for home and one away you could then probably sum the two together to generate an overall one by formula if that makes sense?

    Incidentally where do you set up Pivot Tables from?

  8. #8
    Forum Contributor
    Join Date
    11-11-2011
    Location
    London England
    MS-Off Ver
    Excel 2011 for Mac
    Posts
    157

    Re: Separating Home and Away Results from an Overall Set of Results

    Quote Originally Posted by Spencer101 View Post
    So like this (see attachment)? Only more indepth??
    Hi Spencer - sorry I couldn't check this, I only have 2004 so I can't do xlsx's.

  9. #9
    Forum Expert dilipandey's Avatar
    Join Date
    12-05-2011
    Location
    Dubai, UAE
    MS-Off Ver
    1997 - 2016
    Posts
    8,191

    Re: Separating Home and Away Results from an Overall Set of Results

    Hi mrvp,

    Select the columns you want to consider ... press Alt + D + P and follow the wizard.. You can also see utube video tutorials on pivot... thanks.

    Regards,
    DILIPandey

    <click on below 'star' if this helps>

  10. #10
    Valued Forum Contributor
    Join Date
    04-03-2012
    Location
    East Sussex, UK
    MS-Off Ver
    Excel 2003:2010
    Posts
    893

    Re: Separating Home and Away Results from an Overall Set of Results

    Sorry about that.... try this version.
    Attached Files Attached Files

  11. #11
    Forum Contributor
    Join Date
    11-11-2011
    Location
    London England
    MS-Off Ver
    Excel 2011 for Mac
    Posts
    157

    Re: Separating Home and Away Results from an Overall Set of Results

    Quote Originally Posted by Spencer101 View Post
    Sorry about that.... try this version.
    Nice looks virtually spot on and I can understand the formulas used (and why). It just looks like the away results need tweaking as the Wins and Losses, and the Goals For and Goals Against are the wrong way round (if that makes sense - checking against the link above).

  12. #12
    Valued Forum Contributor
    Join Date
    04-03-2012
    Location
    East Sussex, UK
    MS-Off Ver
    Excel 2003:2010
    Posts
    893

    Re: Separating Home and Away Results from an Overall Set of Results

    Are you OK tweaking it yourself??

  13. #13
    Forum Guru (RIP) Marcol's Avatar
    Join Date
    12-23-2009
    Location
    Fife, Scotland
    MS-Off Ver
    Excel '97 & 2003/7
    Posts
    7,216

    Re: Separating Home and Away Results from an Overall Set of Results

    Haven't looked at all the solutions offered, but this give you some more ideas.

    Select from the drop-down in Sheet2 A1
    Attached Files Attached Files
    If you need any more information, please feel free to ask.

    However,If this takes care of your needs, please select Thread Tools from menu above and set this topic to SOLVED. It helps everybody! ....

    Also
    اس کی مدد کرتا ہے اگر
    شکریہ کہنے کے لئے سٹار کلک کریں
    If you are satisfied by any members response to your problem please consider using the small Star icon bottom left of their post to show your appreciation.

  14. #14
    Valued Forum Contributor
    Join Date
    03-20-2011
    Location
    UK
    MS-Off Ver
    Excel 2007/10/16
    Posts
    840

    Re: Separating Home and Away Results from an Overall Set of Results

    Hi mrvp.

    I'm out at the moment and I'm using my mobile at the minutes

    If you click on micope21 then click on Visit Homepage.

    This will go to my website.

    Then click on League table.

    If that what you want? Then I can sent you copy of workbook later in the evening or first thing tomorrow morning.

    Cheers
    Last edited by micope21; 06-10-2012 at 12:05 PM.
    To help you by my post? it would be nice to click on to say "Thank you".
    If you are happy with a solution to your problem?
    Click Thread Tools above your first post,
    select "Mark your thread as Solved".

  15. #15
    Forum Contributor
    Join Date
    11-11-2011
    Location
    London England
    MS-Off Ver
    Excel 2011 for Mac
    Posts
    157

    Re: Separating Home and Away Results from an Overall Set of Results

    Quote Originally Posted by Spencer101 View Post
    Are you OK tweaking it yourself??
    Yeah I think I should be fine - I just want to look at it to make sure I 100% get what I'm doing (I can see what needs to be switched I just want to make sure I agree with why I'm switching it - if that makes sense).

  16. #16
    Forum Contributor
    Join Date
    11-11-2011
    Location
    London England
    MS-Off Ver
    Excel 2011 for Mac
    Posts
    157

    Re: Separating Home and Away Results from an Overall Set of Results

    Quote Originally Posted by micope21 View Post
    Hi mrvp.

    I'm out at the moment and I'm using my mobile at the minutes

    If you click on micope21 then click on Visit Homepage.

    This will go to my website.

    Then click on League table.

    If that what you want? Then I can sent you copy of workbook later in the evening or first thing tomorrow morning.

    Cheers
    Hi Micope,

    Thanks for the info - I think I'm fine though with some of the ideas others have already come up with. I like Spencer's idea for being the most tidy (I may have misunderstood it but it seems you don't need to have to adjust the cells it is looking up if you are continuously adding data and it also has the more basic formula). Marcol's idea is clever as well as it uses similar formula to that streak table you sorted out for me but looks a bit more involved. I'd been meaning to e-mail you just to say thanks again for that advice it was really handy.

    Cheers

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1