+ Reply to Thread
Results 1 to 2 of 2

what is wrong with my index formula

Hybrid View

  1. #1
    Registered User
    Join Date
    09-09-2011
    Location
    Finland
    MS-Off Ver
    Excel 2010
    Posts
    91

    what is wrong with my index formula

    Hi

    I try to count the time when home team has had their last home game or away game. Same thing with away team. There is something wrong in my formula because i get weird values for example in cell g7 and h4. What should i do?
    Attached Files Attached Files

  2. #2
    Valued Forum Contributor Lemice's Avatar
    Join Date
    04-13-2013
    Location
    Somewhere.
    MS-Off Ver
    Excel 2016
    Posts
    696

    Re: what is wrong with my index formula

    Hello,

    You will need to change the reference to match each other. Here is your formula
    =($C2-INDEX($C2:$C$3160,MATCH(D2,E3:E$3160,0),1))

    Here is what it should have been
    =($C2-INDEX($C3:$C$3160,MATCH(D2,E3:E$3160,0),1))

    Previously your formula is returning the cell in the row above where a match is found.
    (copy pasta from Ford)
    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

    Regards,
    Lem

+ 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