+ Reply to Thread
Results 1 to 5 of 5

Whats the use of Match with Match Type=1

  1. #1
    Forum Contributor
    Join Date
    03-12-2012
    Location
    Singapore
    MS-Off Ver
    MS 365
    Posts
    532

    Whats the use of Match with Match Type=1

    Hi, can anyone give me example under what situation should we use =match(A1,C:C,1)?
    I have never see people using match type =1 and i have no idea the how Excel get the Result.
    Can anyone give me example whats the use of Match Type =1 in Match ? And how does Excel get the result?

  2. #2
    Forum Guru samba_ravi's Avatar
    Join Date
    07-26-2011
    Location
    Hyderabad, India
    MS-Off Ver
    Excel 2021
    Posts
    8,914

    Re: Whats the use of Match with Match Type=1

    Match Type 1
    MATCH finds the largest value that is less than or equal to lookup_value. The values in the lookup_array argument
    for that lookup_array must be arranged in ascending order

    Match Type 0

    MATCH finds the first value that is exactly equal to lookup_value. The values in the lookup_array argument can be in any order.

    Match Type -1

    MATCH finds the smallest value that is greater than or equal tol ookup_value. The values in the lookup_array argument must be placed in descending order
    Samba

    Say thanks to those who have helped you by clicking Add Reputation star.

  3. #3
    Forum Contributor
    Join Date
    03-12-2012
    Location
    Singapore
    MS-Off Ver
    MS 365
    Posts
    532

    Re: Whats the use of Match with Match Type=1

    So does it mean that match type=0 is for Number and Text while match type = 1 is for Number only?

  4. #4
    Forum Guru samba_ravi's Avatar
    Join Date
    07-26-2011
    Location
    Hyderabad, India
    MS-Off Ver
    Excel 2021
    Posts
    8,914

    Re: Whats the use of Match with Match Type=1

    No, you can use 0,1,-1 for both numbers and text
    for text also you can use ascending and descending order
    like A,B,C, ----,
    Z,X,O,M,-----

  5. #5
    Forum Expert XLent's Avatar
    Join Date
    10-13-2010
    Location
    Northumberland, UK
    MS-Off Ver
    various
    Posts
    2,704

    Re: Whats the use of Match with Match Type=1

    Use of 1 invokes the Binary Search -- this can be incredibly useful in processing large data sets {where they are sorted appropriately}, and can be used to "cheat" when looking for things, e.g.

    Find row of last text string in a column {regardless of it's value}

    =MATCH(REPT("Z",255),$A:$A,1)

    Find row of last number in a column {regardless of it's value}

    =MATCH(9.99E+307,$A:$A,1)

    above used frequently when determining dynamic named ranges etc...

    note: the ,1 can be omitted as a) optional parameter and b) 1/TRUE is default.
    Last edited by XLent; 09-21-2018 at 06:59 AM.

+ 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] Making SUMIF and OFFSET MATCH MATCH MATCH MATCH work
    By XL Grasshopper in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 07-30-2017, 11:12 AM
  2. [SOLVED] Need help with Index Match or possibly array type of match
    By chadboehne in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 03-14-2017, 01:16 PM
  3. 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
  4. Replies: 6
    Last Post: 11-27-2013, 10:28 PM
  5. Index and Match with Two Criteria, and date Match Type is Less Than
    By ExcelQuestion in forum Excel Formulas & Functions
    Replies: 13
    Last Post: 11-11-2013, 08:57 AM
  6. If two cells match then print next to the second, whats next to the first cell
    By dritjon in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 03-26-2013, 04:04 PM
  7. Index-Match formula is not working ...whats missing ?
    By raad in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 11-16-2012, 01:41 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