+ Reply to Thread
Results 1 to 3 of 3

What function should be used to give a precise value.

  1. #1
    Registered User
    Join Date
    12-04-2016
    Location
    tech
    MS-Off Ver
    2016
    Posts
    21

    What function should be used to give a precise value.

    Hello everyone!

    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!
    Ads: công ty chúng tôi chuyên internet fpt bình thuậninternet fpt cần thơinternet fpt cà mau cho khách hàng.
    Last edited by thanhvanchi; 12-16-2016 at 03:58 AM.
    Ch?c c?c bạn vui vẻ.

  2. #2
    Forum Expert
    Join Date
    03-23-2004
    Location
    London, England
    MS-Off Ver
    Excel 2019
    Posts
    7,077

    Re: What function should be used to give a precise value.

    An example spreadsheet would help so we know what the layout looks like
    Regards
    Special-K

    Ensure you describe your problem clearly, I have little time available to solve these problems and do not appreciate numerous changes to them.

  3. #3
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    25,411

    Re: What function should be used to give a precise value.

    Can't you just change the 1 in the middle of the formula to 0.5?

    Hope this helps.

    Pete

+ 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. Keeping a currency precise
    By Tall Tony in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 05-06-2016, 03:40 PM
  2. Getting an Integer Number that is part of a precise sum
    By albemazz in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 12-04-2014, 05:50 PM
  3. Looking for a way to make Vlookup using 'TRUE' more precise
    By ebeardsw in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 07-27-2013, 12:19 AM
  4. Looking for a precise value in a table (matrix) ???
    By Sokol in forum Excel General
    Replies: 2
    Last Post: 01-17-2011, 07:23 AM
  5. Precise Printing
    By LisaGreen in forum Excel General
    Replies: 1
    Last Post: 12-02-2007, 02:29 PM
  6. Capture Value at precise time
    By deano48 in forum Excel General
    Replies: 1
    Last Post: 07-08-2007, 06:39 PM
  7. Precise positioning of a graphic in Excel
    By fishbin in forum Excel General
    Replies: 4
    Last Post: 12-22-2005, 12:20 AM

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