+ Reply to Thread
Results 1 to 4 of 4

Array Match and Return value upon multiple array match criteria

  1. #1
    Registered User
    Join Date
    03-04-2015
    Location
    London, England
    MS-Off Ver
    Microsoft 365
    Posts
    18

    Array Match and Return value upon multiple array match criteria

    Hello friends, I have been been trying to do 2 different formulas without any luck for a month.

    First Formula:

    -If the values in COLUMN C4:C24 has a match in D30:D63, It should say" MATCH; else "NO MATCH.

    IF(MATCH(C4:C25;D30:D63;0);"MATCH""NO MATCH") . I get VALUE ERROR.

    Second Formula:
    Return Value:IF values in C4:C24 and J4:J24 match values in D30:D63 and A30:A63 then RETURN the CORRESPONDING VALUE E30:E63. Should ignore empty value in J4:J24 if is blank.

    =INDEX(E30:E63;MATCH(C4:C25;D30:D63;0)*MATCH(J4:J25;A30:A63;0)). I get NA ERROR.


    NOTE: VLOOKUP and HLOOKUP, I tried...only works partially (Yellow col to yellow col). When I match yellow-green COL to yellow green col , I am making like UNIQUE values.

    Hope you can help me! Thanks a lot in advance.
    Attached Files Attached Files

  2. #2
    Valued Forum Contributor Melvinrobb's Avatar
    Join Date
    06-19-2012
    Location
    Manitoba, Canada
    MS-Off Ver
    Excel 2013
    Posts
    1,128

    Re: Array Match and Return value upon multiple array match criteria

    Take a look at the attached file, and see if the formulas return what you wanted.
    Attached Files Attached Files
    Please click the * icon below if I have helped.

  3. #3
    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,926

    Re: Array Match and Return value upon multiple array match criteria

    Hi, welcome to the forum

    IF(MATCH(C4:C25;D30:D63;0);"MATCH""NO MATCH") . I get VALUE ERROR.
    Thats because MATCH needs a single cell/Item for the search, not a range.
    Also, you left out a , between Match and No match.

    Try this instead...
    =IF(ISERROR(MATCH(D30,$C$4:$C$25,0)),"No MATCH","MATCH")

    Same problem for the INDEX formula, plus you cannot combine criteria searches like that. Try this...
    =IFERROR(INDEX($E$30:$E$63,MATCH(C4&J4,INDEX($D$30:$D$63&$A$30:$A$63,0),0)),"No Match")
    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

  4. #4
    Registered User
    Join Date
    03-04-2015
    Location
    London, England
    MS-Off Ver
    Microsoft 365
    Posts
    18

    Re: Array Match and Return value upon multiple array match criteria

    Thank you so much!!! Both of your help worked PERFECT!! I am absolutely amazed!!!

+ 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. match multiple criteria & return value from array
    By Peo Sjoblom in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 09-06-2005, 07:05 AM

Tags for this Thread

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