+ Reply to Thread
Results 1 to 4 of 4

If - Then

  1. #1
    Registered User
    Join Date
    07-27-2004
    Posts
    2

    If - Then

    Hi Everyone

    I am trying to have a spreadsheet that I can use for a charity race night tonight.!!

    I have two worksheets. worksheet #1 called 'results'. worksheet #2 called 'sheet 2'.

    I need a formula to look at the punters horse choice on 'sheet 2' and look to see if it finished in place 1st, 2nd or 3rd on 'results' sheet. In a cell on 'sheet 2' I want the formula to display the place, i.e. 1st, 2nd, 3rd or U/P....

    If the result is 1st, 2nd or 3rd, then I need a formula in the next cell to calculate the winnings based on whether the bet was placed to win or to be placed.

    Am I being too adventurous or is this possible?

    Many thanks in advance for any help anybody can offer!

    TLK

  2. #2
    Registered User
    Join Date
    07-27-2004
    Posts
    2
    I tried this, but the result is '#N/A' when in fact the horse I am referring to finishes 1st.

    =IF(COUNTA(C6:D6)=2,INDEX(RESULTS!B2:J5,MATCH(D6,RESULTS!C3:C5,0),MATCH(D6,RESULTS!A2:A5,0)),"")


    Sheet 2 C6:D6 = horse number:horse name

    Results C3:C5 = horse name in finishing position

    Results A2:A5 = finishing position, i.e. A3=1st, A4=2nd, A5=3rd


    Any help would be appreciated
    Last edited by TLK; 05-03-2008 at 07:05 AM.

  3. #3
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320
    tried putting that on a sheet but couldnt seee quite what you want. could you attach what youve done so far and indicate what you want where?

  4. #4
    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
    Does the attached example workbook give you any ideas?

    Regards
    Attached Files Attached Files

+ 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