+ Reply to Thread
Results 1 to 7 of 7

simple MATCH formula fails on array

  1. #1
    Registered User
    Join Date
    10-01-2013
    Location
    san francisco
    MS-Off Ver
    Excel 2013
    Posts
    47

    simple MATCH formula fails on array

    this should be very simple. please see attached XLS.
    why can't A8 find the value in the table? am i missing something?
    Attached Files Attached Files

  2. #2
    Forum Guru sktneer's Avatar
    Join Date
    04-30-2011
    Location
    Kanpur, India
    MS-Off Ver
    Office 365
    Posts
    9,647

    Re: simple MATCH formula fails on array

    Try this........

    Please Login or Register  to view this content.
    Or with Index-Match try this......

    Please Login or Register  to view this content.
    Regards
    sktneer


    Treat people the way you want to be treated. Talk to people the way you want to be talked to.
    Respect is earned NOT given.

  3. #3
    Registered User
    Join Date
    10-01-2013
    Location
    san francisco
    MS-Off Ver
    Excel 2013
    Posts
    47

    Re: simple MATCH formula fails on array

    neither of those formulas return the correct answer (which should be 1). the idea is simply to find the relative position of the minimum value in an array.

    MATCH is working on single-column or single-row ranges but as soon as i try 2 columns or 2 rows it returns #NA.

    i have tried using absolute cell references ($) which didn't help either. i don't get it, i used to do this and it always worked.

  4. #4
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,917

    Re: simple MATCH formula fails on array

    Match works on a single column or row, it does not work on an array like that

    You could perhaps try something like this?
    =IFERROR(MATCH(A7,A1:A5,0),MATCH(A7,B1:B5,0))
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  5. #5
    Forum Guru sktneer's Avatar
    Join Date
    04-30-2011
    Location
    Kanpur, India
    MS-Off Ver
    Office 365
    Posts
    9,647

    Re: simple MATCH formula fails on array

    OK. Try this...........This is an array formula so need to confirmed by Ctrl+Shift+Enter

    Please Login or Register  to view this content.

  6. #6
    Registered User
    Join Date
    10-01-2013
    Location
    san francisco
    MS-Off Ver
    Excel 2013
    Posts
    47

    Re: simple MATCH formula fails on array

    thanks, i see what you are getting at and i think i could tweak that to make it work.

    what is working for me is to divide and conquer: first, find the min value for each row of the 8 columns (individually) and put this into a cell. then find the min value of the 3 results.

    thanks again and happy new year

  7. #7
    Forum Contributor arlu1201's Avatar
    Join Date
    09-09-2011
    Location
    Bangalore, India
    MS-Off Ver
    Excel 2003 & 2007
    Posts
    19,166

    Re: simple MATCH formula fails on array

    Based on your last post in this thread, its apparent that you are satisfied with the solution(s) you've received and have solved your question, but you haven't marked your thread as "SOLVED". I will do it for you this time.

    In future, to mark your thread as Solved, you can do the following -
    Select Thread Tools-> Mark thread as Solved.

    Incase your issue is not solved, you can undo it as follows -
    Select Thread Tools-> Mark thread as Unsolved.

    Also, since you are relatively new to the forum, i would like to inform you that you can thank those who have helped you by clicking the small star icon located in the lower left corner of the post which helped you. This adds to the reputation of the person who has taken the time to help you.
    If I have helped, Don't forget to add to my reputation (click on the star below the post)
    Don't forget to mark threads as "Solved" (Thread Tools->Mark thread as Solved)
    Use code tags when posting your VBA code: [code] Your code here [/code]

+ 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. Nested Match(index()) vs. Match() array formula.
    By GeneralDisarray in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 10-14-2011, 07:57 AM
  2. Converting 3x10 array to a 1X30 array to run a Match formula
    By NBVC in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 04-08-2009, 07:45 AM
  3. simple array formula
    By jasonanthony in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 07-21-2008, 01:23 PM
  4. Simple array formula not working
    By alecabral in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 02-21-2007, 11:59 AM
  5. [SOLVED] RTD w/Array Formula fails when moving to new PC
    By [email protected] in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 04-19-2005, 03:06 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