+ Reply to Thread
Results 1 to 3 of 3

Oh it's too complicated to explain here!

  1. #1
    Registered User
    Join Date
    09-19-2016
    Location
    Ireland
    MS-Off Ver
    2007
    Posts
    10

    Oh it's too complicated to explain here!

    Hi all,

    Ok, I've made this far too complicated for myself. I'm keeping track of scores in a football prediction game where you get 3 points for an Away win, 2 points for a Home win, 1 point for a draw and 0 for a loss. I'm comparing a list of predictions against the actual results using an If AND function, something like this:

    =IF(AND(M21="HW",M44="HW"),2,IF(AND(M21="D",M44="D"),1,IF(AND(M21="AW",M44="AW"),3,0)))

    However, I've made a boo-boo in my code. When there is a Draw, both teams are getting 1 point which gives me twice the points. Now, I guess I could add another value like D2 or something like that and apply that to the away team in each drawn game, but that would make things a little more complex than I have already made them! So, the easiest solution for me is to simply halve the score of all the drawn games, but I can't figure out how to reference this in my code. I was thinking a COUNTIF function to get the amount of drawn games, and then using that result to halve the score of all the drawn matches, but this is proving harder than I thought it would be. Now, I'm not asking anyone to completely recode this for me, but has anyone got any ideas?

    Just to reiterate, if there are four drawn games in one week, I should get 4 points for them, but at the moment it is giving me 8.

    Thanks in advance

    Joe

  2. #2
    Valued Forum Contributor PFDave's Avatar
    Join Date
    05-17-2012
    Location
    Milton Keynes, England
    MS-Off Ver
    Excel 2013
    Posts
    1,067

    Re: Oh it's too complicated to explain here!

    Hi Joe,

    Without seeing a sample workbook it's going to be difficult to understand why you're doubling the value when your logic returns 1 is M21 + M44 are both D. I assume 21 and 44 are columns for prediction and result?

    I can certainly resolve this, I just need to understand the table being used

  3. #3
    Registered User
    Join Date
    09-19-2016
    Location
    Ireland
    MS-Off Ver
    2007
    Posts
    10

    Re: Oh it's too complicated to explain here!

    Hi Dave,

    Thanks for the reply but I have come up with a messy solution that works. I've done a count on the DRAWS and then divided by 2. Then I have taken that value from the sum total of my predictions, and it gives me the correct figure! Awfully messy, but I'm happy enough. Thanks

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Tried to Explain
    By msaric in forum The Water Cooler
    Replies: 12
    Last Post: 10-25-2013, 06:51 PM
  2. its complicated to explain see the tables i made :)
    By stratos2121 in forum Excel General
    Replies: 11
    Last Post: 04-21-2013, 02:21 AM
  3. What is Dim? How do I use it? PLEASE EXPLAIN
    By TruBeast in forum Excel Programming / VBA / Macros
    Replies: 13
    Last Post: 03-17-2013, 10:25 PM
  4. explain VBA
    By simpson in forum Excel General
    Replies: 6
    Last Post: 02-18-2010, 07:03 PM
  5. =$A$1:$A$12 Explain?
    By brucemc in forum Excel General
    Replies: 7
    Last Post: 09-06-2009, 10:19 PM
  6. Ill try and explain as best I can!
    By Cobbcouk in forum Excel General
    Replies: 5
    Last Post: 03-30-2006, 05:20 PM
  7. How to explain??...
    By tagr in forum Excel General
    Replies: 2
    Last Post: 03-17-2006, 11:34 PM
  8. Possible?-I'm not sure how to explain this
    By bonzai18 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 03-15-2006, 09:40 PM

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