+ Reply to Thread
Results 1 to 7 of 7

Index match or Vlookup multiple columns

  1. #1
    Forum Contributor geliedee's Avatar
    Join Date
    10-14-2013
    Location
    Manila, philippines
    MS-Off Ver
    Excel 2007
    Posts
    399

    Index match or Vlookup multiple columns

    Hi All,

    I have here a file which i need your help.

    On Column A to E are the data extracted.
    Column H to K is the given data that i should look up the value in column A to E.

    If the customer in column H has a deletion mark X in column B then tha output should display = DELETED
    If the customer in Column H is not found in extract then = DONT EXIST
    if the customer dont have del;etion mark = ACTIVE

    Note that there are duplicated customers. And the look up should be based on Customer Number, Country, DV and DC Column.
    Sample below:

    Capture.JPG

    Attached is the file.Hope you guys can help.
    Attached Files Attached Files

  2. #2
    Forum Guru benishiryo's Avatar
    Join Date
    03-25-2011
    Location
    Singapore
    MS-Off Ver
    Excel 2013
    Posts
    5,147

    Re: Index match or Vlookup multiple columns

    hi geliedee. try:
    =IF(COUNTIFS(A:A,H3,C:C,I3,D:D,J3,E:E,K3,B:B,"X"),"DELETED",IF(COUNTIFS(A:A,H3,C:C,I3,D:D,J3,E:E,K3),"ACTIVE","DON'T EXIST"))

    Thanks, if you have clicked on the * and added our rep.

    If you're satisfied with the answer, click Thread Tools above your first post, select "Mark your thread as Solved".

    "Contentment is not the fulfillment of what you want, but the realization of what you already have."


    Tips & Tutorials I Compiled | How to Get Quick & Good Answers

  3. #3
    Forum Contributor geliedee's Avatar
    Join Date
    10-14-2013
    Location
    Manila, philippines
    MS-Off Ver
    Excel 2007
    Posts
    399

    Re: Index match or Vlookup multiple columns

    Hi Ben,

    Wow that worked like a charm!!

    how about this formula? How can i add a message since it was returning 0 if the lookup is blank? This is related also for above, im thinking for anopther way around.

    =INDEX($B$1:$B$153,MATCH(1,(J52=$A$1:$A$153)*(M52=$F$1:$F$153),0))

  4. #4
    Forum Contributor geliedee's Avatar
    Join Date
    10-14-2013
    Location
    Manila, philippines
    MS-Off Ver
    Excel 2007
    Posts
    399

    Re: Index match or Vlookup multiple columns

    Also, in this part of the given formula:

    =(COUNTIFS(A:A,H3,C:C,I3,D:D,J3,E:E,K3),"ACTIVE","DON'T EXIST"))

    I noticed that Column B is not included. So i tried to altyer the formula to:

    =(COUNTIFS(A:A,H3,C:C,I3,D:D,J3,E:E,K3,B:B,""),"ACTIVE","DON'T EXIST"))

    And i got the same result. Is if fine?

  5. #5
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,053

    Re: Index match or Vlookup multiple columns

    Here's an alternative. But if Benishiryo's works - go with it... simpler...

    These are Array Formulas. They're a little different from ordinary formulas in that they MUST be confirmed by pressing CTRL+SHIFT+ENTER to activate the array, not just ENTER.

    You will know the array is active when you see curly braces { } appear around the outside of your formula. If you do not CTRL+SHIFT+ENTER you will get an error message or an incorrect answer. Press F2 on that cell and try again.

    Don't type the curly braces yourself - it won't work...
    Attached Files Attached Files
    Glenn




    None of us get paid for helping you... we do this for fun. So DON'T FORGET to say "Thank You" to all who have freely given some of their time to help YOU.

    Temporary addition of accented to illustrate ongoing problem to the TT: L? fh?ile P?draig sona dhaoibh

  6. #6
    Forum Contributor geliedee's Avatar
    Join Date
    10-14-2013
    Location
    Manila, philippines
    MS-Off Ver
    Excel 2007
    Posts
    399

    Re: Index match or Vlookup multiple columns

    Thanks Glen~! Tried that also and works very well!

    Just want to ask how can i add "ACTIVE" if the result is 0?

    =INDEX($B$1:$B$153,MATCH(1,(J52=$A$1:$A$153)*(M52=$F$1:$F$153),0))

  7. #7
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,053

    Re: Index match or Vlookup multiple columns

    =IF(your formula=0,"Active",your formula)

    will do it.

+ 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] index/match or vlookup question over multiple columns
    By lilsnoop in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 03-06-2015, 05:16 PM
  2. VLookup or Index/match searching rows instead of columns or multiple criteria
    By Groovicles in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 11-16-2013, 05:00 PM
  3. [SOLVED] VLOOKUP (or Index/Match) across four columns -- and returning multiple matches
    By rcasey in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 04-11-2013, 05:20 PM
  4. [SOLVED] vlookup or index-match for multiple columns
    By nmprodan in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 01-10-2013, 10:48 PM
  5. Replies: 13
    Last Post: 12-13-2012, 11:44 AM

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