+ Reply to Thread
Results 1 to 5 of 5

vlookup value checking specific criteria from multiple columns

  1. #1
    Registered User
    Join Date
    03-17-2012
    Location
    Mississauga,Ontario
    MS-Off Ver
    Excel 2007 and 2010
    Posts
    75

    vlookup value checking specific criteria from multiple columns

    Trying to see if an array formula will work for this selective lookup . trying to lookup the item based on Code but the value in col f has to be "VC" and has the max amount from col G
    Attached Files Attached Files
    Last edited by Lisa4legin; 02-14-2019 at 07:01 PM. Reason: bump

  2. #2
    Forum Expert azumi's Avatar
    Join Date
    12-10-2012
    Location
    YK, Indonesia
    MS-Off Ver
    Excel 2019
    Posts
    2,368

    Re: vlookup value checking specific criteria from multiple columns

    Maybe, put this on K2 and ENTERED as array formulas, then copied down:

    =INDEX($B$2:$B$170,MATCH(MAX(IF(($A$2:$A$170=J2)*($F$2:$F$170="VC"),$G$2:$G$170)),$G$2:$G$170,0))
    Attached Files Attached Files

  3. #3
    Forum Expert
    Join Date
    07-20-2011
    Location
    Mysore, India.
    MS-Off Ver
    Excel 2019
    Posts
    8,587

    Re: vlookup value checking specific criteria from multiple columns

    In K2 then copy down

    =IFERROR(INDEX(Table1[ITEM],AGGREGATE(15,6,ROW(Table1[CODE])/(((Table1[CODE]=$J2)*(Table1[STATUS]="VC")*Table1[[On hand ]])=(1/(1/(MAX((Table1[CODE]=$J2)*(Table1[STATUS]="VC")*Table1[[On hand ]]))))),1)-ROW($A$2)+1),"")
    Attached Files Attached Files
    Pl note
    Array formula should be confirmed with Ctrl+Shift+Enter keys together.
    If answere is satisfactory press * to add reputation.

  4. #4
    Registered User
    Join Date
    03-17-2012
    Location
    Mississauga,Ontario
    MS-Off Ver
    Excel 2007 and 2010
    Posts
    75

    Re: vlookup value checking specific criteria from multiple columns

    Quote Originally Posted by azumi View Post
    Maybe, put this on K2 and ENTERED as array formulas, then copied down:

    =INDEX($B$2:$B$170,MATCH(MAX(IF(($A$2:$A$170=J2)*($F$2:$F$170="VC"),$G$2:$G$170)),$G$2:$G$170,0))
    i am getting an error with this, its not picking up the right values?

  5. #5
    Registered User
    Join Date
    03-17-2012
    Location
    Mississauga,Ontario
    MS-Off Ver
    Excel 2007 and 2010
    Posts
    75

    Re: vlookup value checking specific criteria from multiple columns

    Quote Originally Posted by kvsrinivasamurthy View Post
    In K2 then copy down

    =IFERROR(INDEX(Table1[ITEM],AGGREGATE(15,6,ROW(Table1[CODE])/(((Table1[CODE]=$J2)*(Table1[STATUS]="VC")*Table1[[On hand ]])=(1/(1/(MAX((Table1[CODE]=$J2)*(Table1[STATUS]="VC")*Table1[[On hand ]]))))),1)-ROW($A$2)+1),"")
    Nice Thanks This one works good as it picks up the 'VC' value and leaves blank if not available . However Can it pickup the next highest value on hand if the "VC" is not available or zero value?

+ 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] Fiter multiple criteria and copy columns in specific way
    By YasserKhalil in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 08-04-2015, 03:09 AM
  2. VLOOKUP with multiple criteria. Return a specific date
    By gmazz in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 06-14-2014, 08:03 PM
  3. SumIF with multiple columns with non-specific text criteria
    By Funky_Finance in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 01-22-2014, 02:19 PM
  4. Checking multiple criteria and select data over multiple columns
    By jy677 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 01-25-2013, 09:38 PM
  5. Replies: 0
    Last Post: 09-15-2012, 02:56 AM
  6. [SOLVED] Deleting multiple rows with specific criteria in multple columns
    By cb10 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 06-13-2012, 10:16 AM
  7. Vlookup checking multiple columns
    By caippers in forum Excel - New Users/Basics
    Replies: 2
    Last Post: 05-06-2010, 12:23 PM

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