+ Reply to Thread
Results 1 to 6 of 6

difference between index match and just stating reference?

  1. #1
    Forum Contributor
    Join Date
    12-24-2021
    Location
    taiwan
    MS-Off Ver
    excel 2010
    Posts
    121

    difference between index match and just stating reference?

    difference between these two below formulas?


    =INDEX(a1:a5,MATCH(TRUE,a1:a5<500,0))


    =INDEX(a1:a5,MATCH(TRUE,INDEX(a1:a5<500,0),))


    any difference between the bold part?

    a1:a5<500

    INDEX(a1:a5<500,0)



    if there is no difference then why did https://www.extendoffice.com/documen...ater-than.html
    tell us to use INDEX(a1:a5<500 instead of just a1:a5<500?
    Last edited by Bobgiant; 02-17-2022 at 05:20 PM.

  2. #2
    Forum Expert
    Join Date
    09-07-2014
    Location
    Israel
    MS-Off Ver
    office 365 for MAC
    Posts
    3,105

    Re: difference between index match and just stating reference?

    Hi,
    I dont see any difference. they both result in a TRUE/FALSE array which is similar in both cases.

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

    Re: difference between index match and just stating reference?

    For the first formula,
    =INDEX(a1:a5,MATCH(TRUE,a1:a5<500,0))

    The match type is 0, therefore MATCH finds the first value that is exactly equal to lookup_value.
    **This is an array formula, if you are using xl2010, it must be committed using ctrl+shift+enter


    For the second formula
    =INDEX(a1:a5,MATCH(TRUE,INDEX(a1:a5<500,0), Missing type ))

    If the match type is 1 or missing, then MATCH finds the largest value that is less than or equal to lookup_value.
    Last edited by protonLeah; 02-17-2022 at 11:19 PM.
    Ben Van Johnson

  4. #4
    Forum Contributor
    Join Date
    12-24-2021
    Location
    taiwan
    MS-Off Ver
    excel 2010
    Posts
    121

    Re: difference between index match and just stating reference?

    @protonLeah

    Are you sure about this? because there is a common so from my experiment, with a comma but omit the number, the match type is 0 not 1? but if omit comma, then it is like you said match type is 1. But there is a comma in this situation? so I think you are wrong?
    =INDEX(a1:a5,MATCH(TRUE,INDEX(a1:a5<500,0), Missing type ))

  5. #5
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,422

    Re: difference between index match and just stating reference?

    These formulae ALL return the same results:

    =INDEX(A1:A5,MATCH(TRUE,A1:A5<500,0))

    =INDEX(A1:A5,MATCH(TRUE,INDEX(A1:A5<500,0),))

    =INDEX(A1:A5,MATCH(TRUE,INDEX(A1:A5<500,0),0))

    =INDEX(A1:A5,MATCH(TRUE,INDEX(A1:A5<500,0),FALSE))

    Why should you be surprised that there is more than one way to return results?

    If you drag the formulae down, they return an array of values less than 500.
    Trevor Shuttleworth - Retired Excel/VBA Consultant

    I dream of a better world where chickens can cross the road without having their motives questioned

    'Being unapologetic means never having to say you're sorry' John Cooper Clarke


  6. #6
    Forum Expert XOR LX's Avatar
    Join Date
    04-18-2013
    Location
    Turin, Italy
    MS-Off Ver
    Office 365
    Posts
    7,742

    Re: difference between index match and just stating reference?

    There may not be a difference in the value returned but, pre-365 days, there was a difference in the means by which they needed to be committed. The technique of inserting an additional, 'artificial' INDEX function simply for the sake of not having to commit the formula with CTRL+SHIFT+ENTER became quite fashionable a while back. Personally I always had (and have) doubts about its merits.

    Regards
    Click * below if this answer helped

    Advanced Excel Techniques: http://excelxor.com/

+ 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] Index / Match reference
    By abb16ott in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 06-04-2021, 08:04 AM
  2. [SOLVED] Finding Difference with Index Match Multiple Criteria
    By ryoder in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 02-07-2020, 01:45 PM
  3. [SOLVED] Using Index Match to match against more than one column, but only reference one row
    By joe978 in forum Excel Formulas & Functions
    Replies: 16
    Last Post: 06-19-2017, 01:35 PM
  4. Difference between two tables using index match?
    By TheFab in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 07-01-2015, 09:38 AM
  5. Difference between two pivot tables with two criteria - Index/Match ?
    By TheFab in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 07-01-2015, 07:27 AM
  6. Index-match columns to cells and find difference in value
    By hlb129 in forum Excel Formulas & Functions
    Replies: 12
    Last Post: 07-31-2014, 05:23 PM
  7. Replies: 4
    Last Post: 01-13-2014, 04:16 AM

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