+ Reply to Thread
Results 1 to 5 of 5

If(Or) Statements Question

  1. #1
    Registered User
    Join Date
    09-12-2014
    Location
    Pennsylvania
    MS-Off Ver
    2010
    Posts
    16

    If(Or) Statements Question

    This is going to be hard to explain and may not be very easy to understand if you don't understand how "best ball" scoring in golf works, but I'll try my best and post some pictures also.

    I have 4 players who will have scores that are relative to the "par" row. The lowest score out of all of the players is counted (ie. Par = 4, two players have a 4, one player has a 5, and one player has a 3. The 3 is the lowest score and is thus "-1")

    I want a given cell to give me a result of "-1" if the best score is one less than par, "0" if the best score is equal to par, and +1 if the best score is par plus 1.

    I started by trying just an IF statement, but I think I'm going to need to use an IF(OR) statement.

    I'm not sure if my syntax is wrong or if I'm just using the IF statement wrong or what, but I'd appreciate any help. screenshot.jpg

  2. #2
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,939

    Re: If(Or) Statements Question

    Hi, welcome to the forum

    Instead of a picture, upload a sample workbook, we cant edit pics

    Having said that, take a look at using something like this...
    =min(B2:E2)-par where par is the cell with your hole par in it
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  3. #3
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 Version 2405 Win 11 Home 64 Bit
    Posts
    23,895

    Re: If(Or) Statements Question

    In C8 type =MIN(C4:C7)-C3
    and copy to the right.
    Alan עַם יִשְׂרָאֵל חַי


    Change an Ugly Report with Power Query
    Database Normalization
    Complete Guide to Power Query
    Man's Mind Stretched to New Dimensions Never Returns to Its Original Form

  4. #4
    Registered User
    Join Date
    09-12-2014
    Location
    Pennsylvania
    MS-Off Ver
    2010
    Posts
    16

    Re: If(Or) Statements Question

    Wow that was so much simpler than I made it out to be. Thank for the quick replies so much!

  5. #5
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 Version 2405 Win 11 Home 64 Bit
    Posts
    23,895

    Re: If(Or) Statements Question

    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED. 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. Question with IF statements
    By DakotaDK810 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 02-12-2012, 04:46 AM
  2. Excel - can IF/AND statements question.
    By tavlrb in forum Excel General
    Replies: 6
    Last Post: 02-15-2011, 11:59 PM
  3. If Statements Question
    By bodhisatvaofboogie in forum Excel General
    Replies: 2
    Last Post: 05-03-2006, 02:40 PM
  4. [SOLVED] Question concerning IF statements
    By Jessica in forum Excel General
    Replies: 1
    Last Post: 07-14-2005, 02:05 PM
  5. Another question concerning IF statements
    By Jessica in forum Excel General
    Replies: 1
    Last Post: 07-14-2005, 02:05 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