+ Reply to Thread
Results 1 to 4 of 4

Inconsistent Index/Match formula

  1. #1
    Forum Contributor
    Join Date
    11-24-2013
    Location
    Huddersfield, England
    MS-Off Ver
    2013
    Posts
    104

    Inconsistent Index/Match formula

    Hi all

    I have adapted an Index/Match formula from an open office workbook I previously used and in the main it works and returns the correct values. I have noticed though it's not consistent and some values are not the right ones. I have absolutely no idea why this is the case and could really do with some expert help.

    I am sure it will be me who has gone wrong somewhere but I just can't work out why it works for some and not others.

    The formula is

    =INDEX(Prices!$C$2:$C900,MATCH(VLOOKUP(AY18,Prices!$G$2:$I$900,2,0),Prices!$C$2:$C900,0)+2)

    but I've attached a sample sheet to put it in some context.

    BG17 in 'My Odds' sheet is correct returning the correct value from C22 in 'Prices' sheet

    BUT

    BG18 in 'My Odds' sheet is wrong returning the incorrect value from 'Prices' sheet. It should be returning C202 but it isn't.

    Any help much appreciated
    Attached Files Attached Files

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

    Re: Inconsistent Index/Match formula

    In the example, Queens Park Rangers in AY18 returns a VLOOKUP value of 3.10, and your formula then tries to match that to values in column C. However, there are several values of 3.10 in column C, so the formula matches with the first of these (in cell C24) and thus returns the value from 2 cells below this.

    You need to change the formula in BG18 to this:

    =INDEX(Prices!$C$2:$C900,MATCH(VLOOKUP(AY18,Prices!$G$2:$I$900,3,0),Prices!$B$2:$B900,0)+2)

    so that you return QPR from the VLOOKUP and then try to match that with column B.

    Other formulae in column BG will also need to be changed.

    Hope this helps.

    Pete

  3. #3
    Forum Contributor
    Join Date
    11-24-2013
    Location
    Huddersfield, England
    MS-Off Ver
    2013
    Posts
    104

    Re: Inconsistent Index/Match formula

    ahhhh I see. I could not for the life of me see what it was doing. Makes complete sense now

    Many thanks, I'd have been at that for days.

  4. #4
    Forum Guru
    Join Date
    03-02-2006
    Location
    Los Angeles, Ca
    MS-Off Ver
    WinXP/MSO2007;Win10/MSO2016
    Posts
    12,610

    Re: Inconsistent Index/Match formula

    Named ranges:
    football_prices =Prices!$A$2:INDEX(Prices!$A:$A,COUNTA(Prices!$A:$A))
    MarketTeamPrice =Prices!$A$2:INDEX(Prices!$D:$D,COUNTA(Prices!$A:$A))
    TeamName =Prices!$B$2:INDEX(Prices!$B:$B,COUNTA(Prices!$A:$A))
    Tissue_price_Betfair =Prices!$G$2:INDEX(Prices!$I:$I,COUNTA(Prices!$I:$I))

    BG17:
    Please Login or Register  to view this content.
    Last edited by protonLeah; 11-26-2017 at 04:26 PM.
    Ben Van Johnson

+ 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. [SOLVED] Problem with a simple Index Match formula returning inconsistent results
    By SueBristow in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 04-20-2017, 06:44 AM
  2. [SOLVED] Recieving inconsistent #N/A error using Index Match with 24 hour clock reference
    By Baracudabill in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 04-11-2014, 12:05 PM
  3. Replies: 3
    Last Post: 05-02-2013, 01:31 AM
  4. ► Inconsistent Match Formula - Sample [SOLVED] 2x
    By xsoldoutx in forum Excel General
    Replies: 6
    Last Post: 08-20-2012, 11:57 AM
  5. Replies: 5
    Last Post: 02-29-2012, 08:51 PM
  6. If/VLookup/Match Formula Results Inconsistent
    By hardpenguin in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 12-08-2010, 05:05 PM
  7. Replies: 2
    Last Post: 10-23-2010, 04:54 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