+ Reply to Thread
Results 1 to 10 of 10

index match match match only working in part

  1. #1
    Registered User
    Join Date
    11-25-2020
    Location
    Tauranga NZ
    MS-Off Ver
    2007
    Posts
    27

    index match match match only working in part

    Hi there

    - am baffled by my index match match match formula only returning correct values in the first 7 columns (Sht 'Table-Transactions' Q7:X7)
    - data is examined/extracted from Sht'InputOutsideLines'
    - looking at cell X7 (Table-Trans...) have evaluated each match which produces the correct figures (ie. 1 ,3, 2 ) & value of 8 should result but cell remains blank !
    - what am I missing ?

    cheers
    Chris
    Attached Files Attached Files
    Last edited by Dorado99; 10-31-2021 at 04:00 AM.

  2. #2
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    30,832

    Re: index match match match only working in part

    You have 3 paramters for INDEX/MATCH but the third is ignored: you get the results for row 2 values equal to 1 by "default"

    Try

    in Q7

    =IFERROR(INDEX(InputOutsideLines!$T$19:$AB$42,MATCH($H$7,InputOutsideLines!$T$19:$T$42,0)+MATCH(Q2,InputOutsideLines!$U$19:$U$42,0)-1,MATCH(Q1,InputOutsideLines!$T$18:$AB$18,0)),"").
    Attached Files Attached Files
    Last edited by JohnTopley; 10-31-2021 at 05:01 AM.
    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED.

  3. #3
    Registered User
    Join Date
    11-25-2020
    Location
    Tauranga NZ
    MS-Off Ver
    2007
    Posts
    27

    Re: index match match match only working in part

    Thankyou John for quick response - that is vast improvement - but not quite there.
    New formula now recognises the values in column "U" although it ignores values if 'Bait Station' number already 'used'.
    New formula doesn't seems to evaluate the 1st 'Match' ie. cell H7 - the Trap Line # in col. T of the source data.
    Would you be able to look at it again please?
    Many thanks
    Chris

  4. #4
    Valued Forum Contributor
    Join Date
    02-06-2013
    Location
    UK
    MS-Off Ver
    365
    Posts
    693

    Re: index match match match only working in part

    Are you looking for this result?

    Q7=IFERROR(INDEX(InputOutsideLines!$T$19:$AB$42,MATCH($H$7,InputOutsideLines!$T$19:$T$42,0)-1+Q$2,MATCH(Q1,InputOutsideLines!$T$18:$AB$18,0)),"")

  5. #5
    Forum Guru Bo_Ry's Avatar
    Join Date
    09-10-2018
    Location
    Thailand
    MS-Off Ver
    MS 365
    Posts
    7,222

    Re: index match match match only working in part

    Maybe try

    =VLOOKUP(Q$8,InputOutsideLines!$S$19:$AB$38,MATCH(Q$1,InputOutsideLines!$S$18:$AB$18,),)
    Attached Files Attached Files

  6. #6
    Registered User
    Join Date
    11-25-2020
    Location
    Tauranga NZ
    MS-Off Ver
    2007
    Posts
    27

    Re: index match match match only working in part

    Hi Raul
    Not quite there - formula is creating Bait Station numbers which aren't in the data schedule i.e. 5
    Seems to allocate as Bait station # the row number in data schedule
    Also 1st Match (cell H7) not being recognised - data from table should only extract from column T that matched cell H7 (i.e. "1n")
    cheers
    Chris

  7. #7
    Valued Forum Contributor
    Join Date
    02-06-2013
    Location
    UK
    MS-Off Ver
    365
    Posts
    693

    Re: index match match match only working in part

    I don't get your data and neither your explanations, I'm afraid.

    "formula is creating Bait Station numbers which aren't in the data schedule i.e. 5" - what does this even mean?

    The formuala creates "1n1" numbers: 2,3,4,5,7.
    Thereafter 1n2 numbers and so on.

    What exactly are your desired results?

    For me the spreadsheet suffers from a lack of clarity and very confusing formulas.
    e.g.: Line.Bs. on InputOutside Lines are 1n1, 1n2 and 1n4 etc.
    However, on Table-Transactions: while you have a running nummer 1,2 and 3 in row 2, row 8 shows 1n1, 1n2 and 1n3 (which doesn't exist) - this is just inconsistent and confusing to me.

  8. #8
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (both in England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2504 (Windows 11 Home 24H2 64-bit)
    Posts
    90,766

    Re: index match match match only working in part

    Can you post an updated sample workbook?
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help. It's a universal courtesy.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    NB:
    as a Moderator, I never accept friendship requests.
    Forum Rules (updated August 2023): please read them here.

  9. #9
    Registered User
    Join Date
    11-25-2020
    Location
    Tauranga NZ
    MS-Off Ver
    2007
    Posts
    27

    Re: index match match match only working in part

    Hi Bo
    That works a treat - you're a genius - thanks soooo much!
    cheers
    Chris

  10. #10
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (both in England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2504 (Windows 11 Home 24H2 64-bit)
    Posts
    90,766

    Re: index match match match only working in part

    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED.

    Also, if you have not already done so, you may not be aware that you can thank those who have helped you by clicking the small star icon located in the lower left corner of the post in which the help was given. By doing so you can add to the reputation(s) of all those who offered help.

+ 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. Index Match Match for pricing matrix not working
    By ADR90 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 06-30-2020, 12:01 AM
  2. Index Match only working part of the time
    By boynejs in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 05-14-2018, 01:30 AM
  3. Index Match Match - 2 x Vertical Lookups - Not working as it should
    By seash in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 11-11-2016, 09:58 AM
  4. INDEX MATCH MATCH/OFFSET MATCH MATCH with named ranges
    By Andrew-Mark in forum Excel General
    Replies: 3
    Last Post: 02-27-2015, 10:56 PM
  5. Replies: 2
    Last Post: 09-27-2014, 04:34 PM
  6. [SOLVED] Working INDEX MATCH with SEARCH, but I need to add another MATCH to the formula!
    By DaveBre in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 03-11-2014, 01:03 AM
  7. INDEX MATCH MATCH working great and then failing on me.
    By HeikEve in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 05-25-2013, 01:40 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