+ Reply to Thread
Results 1 to 6 of 6

pivot table setup

  1. #1
    Registered User
    Join Date
    01-06-2010
    Location
    NY
    MS-Off Ver
    Excel 2010
    Posts
    16

    pivot table setup

    Hey

    I am trying to make a spreadsheet for the purpose of tracking how accurate a guess is for an nfl pick.

    So what I have is a schedule, and will after each game mark a winner. If the guess was correct, I want to be able to assign each team playing 1 point if correct. If the guess was incorrect, I want it to subtract a point.

    I want to be able to update this every week and have the total points tally up weekly, so I can see what teams are getting more correct guesses and what teams are getting wrong picks.

    I hope this makes sense. I was thinking a pivot table would work, however it was only giving the points to one team, and I couldnt figure out how to do it for both.

    Can anyone make a very simple version of this, you can just use team a, team b, etc, and I dont need scores.

    When I tried, my categories were
    away team, home team, winner, guessed winner, points

    the home and away fields I have, the winner I have data up through the last game, guessed winner I have, and points was just a =if(guessed winner = winner,1,-1)

    Thanks for any help!!
    Attached Files Attached Files
    Last edited by andyman3; 10-07-2011 at 06:08 PM. Reason: attached spreadsheet

  2. #2
    Registered User
    Join Date
    01-06-2010
    Location
    NY
    MS-Off Ver
    Excel 2010
    Posts
    16

    Re: pivot table setup problems

    I just uploaded where I am stuck at. I think the reason I am not getting finding the result I want is guessed team is the only one it will assign the points to. I need to find a way for it to assign points to both teams, but still be able to keep track of the points in one drop down

  3. #3
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,582

    Re: pivot table setup problems

    In G2
    =IF(ISTEXT(E2),IF(F2=E2,1,-1),"")
    In H2
    =IF(ISTEXT(E2),IF(E2=F2,B2,D2),"")
    In I2
    =G2
    In K2 (Header in K1 = Winners & Losers)
    =IF(MOD(ROW(A1),2)=1,INDEX(E:E,INT(ROW(A3)/2+0.5)),INDEX(H:H,INT(ROW(A3)/2)+0.5))
    In L2 (Header in L1 = Total Pts)
    =IF(MOD(ROW(A1),2)=1,INDEX(G:G,INT(ROW(A3)/2+0.5)),INDEX(I:I,INT(ROW(A3)/2)+0.5))
    Drag/copy everything down to bottom of schedule.
    Create pivot table from K and L
    Does that work for you?
    ChemistB
    My 2?

    substitute commas with semi-colons if your region settings requires
    Don't forget to mark threads as "Solved" (Edit First post>Advanced>Change Prefix)
    If I helped, Don't forget to add to my reputation (click on the little star at bottom of this post)

    Forum Rules: How to use code tags, mark a thread solved, and keep yourself out of trouble

  4. #4
    Registered User
    Join Date
    01-06-2010
    Location
    NY
    MS-Off Ver
    Excel 2010
    Posts
    16

    Re: pivot table setup problems

    that idea would work great, but it looks like theres a problem with the formula for H. It seems that if the winner is not the home team, it claims the winner is also the loser

  5. #5
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,582

    Re: pivot table setup problems

    Yep, screwed that up

    H2 =IF(ISTEXT(E2),IF(E2=B2,D2,B2),"")
    Sorry about that

  6. #6
    Registered User
    Join Date
    01-06-2010
    Location
    NY
    MS-Off Ver
    Excel 2010
    Posts
    16

    Re: pivot table setup problems

    That should do it!! Thanks a ton!!

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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