+ Reply to Thread
Results 1 to 7 of 7

Logic functions in MATCH()

  1. #1
    Forum Contributor
    Join Date
    06-18-2012
    Location
    Denver, CO
    MS-Off Ver
    Excel 2013
    Posts
    118

    Question Logic functions in MATCH()

    Hello,

    I have the following:

    A B
    1 45 50
    2 56
    3 49
    4 14
    5 9
    6 13


    My formula I'm trying to work is:
    Please Login or Register  to view this content.
    This doesn't work and I don't know why. Even the description for Match states it's able to handle logic functions. Even putting the cell reference into the formula, "<50" doesn't work. Is this not possible?

  2. #2
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: Logic functions in MATCH()

    Try this one.

    =MATCH(B1,A1:A6,1)
    Notice my main language is not English.

    I appreciate it, if you reply on my solution.

    If you are satisfied with the solution, please mark the question solved.

    You can add reputation by clicking on the star * add reputation.

  3. #3
    Forum Expert Pepe Le Mokko's Avatar
    Join Date
    05-14-2009
    Location
    Belgium
    MS-Off Ver
    O365 v 2504
    Posts
    13,621

    Re: Logic functions in MATCH()

    Perhaps
    Please Login or Register  to view this content.

  4. #4
    Forum Guru Jonmo1's Avatar
    Join Date
    03-08-2013
    Location
    Bryan, TX
    MS-Off Ver
    Excel 2010
    Posts
    9,763

    Re: Logic functions in MATCH()

    Quote Originally Posted by weeble33 View Post
    Even the description for Match states it's able to handle logic functions.

    Actually, it says it can be a logical 'value', not a logical function. Yes, there's a big difference.
    Logical Values are just simply True and False.

    It looks like Pepe's solution does what you want.

  5. #5
    Forum Contributor
    Join Date
    05-09-2013
    Location
    United Kingdom
    MS-Off Ver
    Excel 2013
    Posts
    259

    Re: Logic functions in MATCH()

    Do you want to find all the rows which are less than 50? could you post a worksheet example?

  6. #6
    Forum Guru
    Join Date
    04-13-2005
    Location
    North America
    MS-Off Ver
    2002/XP, 2007, 2024
    Posts
    16,437

    Re: Logic functions in MATCH()

    Even the description for Match states it's able to handle logic functions.
    I think you've misread it. It says that it can handle logical values (eg TRUE or FALSE), not logical functions. So, if your data has a TRUE entry, it can find that, if it has a FALSE entry, it can find that.

    Another observation, you have omitted the third "match_type" argument, which tells the MATCH() function that the data is sorted in ascending order. Obviously this is not the case.

    I'm not sure I can make a solid recommendation, because I don't know what you are really trying to accomplish here. It looks like you want to identify all the entries that are less than 50. One thought. If you can sort the data (9;13;14;45;49;56) then do a match on that =MATCH(B1,A1:A6,1), it will return 5, which is the position of the largest value (in the sorted data set) <= 50. Now it depends on what you want to do with this information, but you have successfully located all of the values that are <=50.
    Quote Originally Posted by shg
    Mathematics is the native language of the natural world. Just trying to become literate.

  7. #7
    Forum Contributor
    Join Date
    06-18-2012
    Location
    Denver, CO
    MS-Off Ver
    Excel 2013
    Posts
    118

    Re: Logic functions in MATCH()

    Hmm, it appears I read the description wrong. It was meant for use in an index function, so maybe a sumproduct would work as an alternative.

    Thanks

+ 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