+ Reply to Thread
Results 1 to 7 of 7

Need to match to columns to each other before returning a vlookup

  1. #1
    Registered User
    Join Date
    04-10-2014
    Location
    South Africa
    MS-Off Ver
    Excel 2013
    Posts
    4

    Need to match to columns to each other before returning a vlookup

    Hi Guys

    Not sure where to start with this one, an IF statement or vlookup? Basically I have 3 columns A, B, C (original sheet) and A, B, C in my working sheet. A contains car registrations, B contains a date and C contains a weight. I need to return C from my original sheet into my working sheet only when A and B BOTH match from my working sheet (there are scenarios where the same car registration has a different date next to it). So I want to return the weight only when the car registration and the date match in a specific instance from my working sheet. Can anyone help me?

    Thanks

  2. #2
    Valued Forum Contributor
    Join Date
    12-02-2012
    Location
    Melbourne, VIC
    MS-Off Ver
    Excel 2016
    Posts
    750

    Re: Need to match to columns to each other before returning a vlookup

    hope this helps
    If this helps you solve your problem, please consider thanking Guru tigeravatar for his brilliant formula.

  3. #3
    Registered User
    Join Date
    04-10-2014
    Location
    South Africa
    MS-Off Ver
    Excel 2013
    Posts
    4

    Re: Need to match to columns to each other before returning a vlookup

    Quote Originally Posted by jewelsharma View Post
    hope this helps
    If this helps you solve your problem, please consider thanking Guru tigeravatar for his brilliant formula.
    Hi this looks like it could help but I need a very simple version of it. Basically I just need to match when X and Y are in the same row in my target sheet as in my working sheet and then return a value from that row.

  4. #4
    Valued Forum Contributor
    Join Date
    02-08-2012
    Location
    wales
    MS-Off Ver
    Excel 2007
    Posts
    964

    Re: Need to match to columns to each other before returning a vlookup

    Maybe something like this (See Attached)

    it will show a result for any matched cells if there is no match it will be blank.

    it has to be array entered (Crtl+Shift+Enter) and the &"|"& just creates a barrier between words in case there were double matches.

    MAYBE.xlsx
    The Importance of INDEX - A GUIDE TO INDEX'S OTHER USES
    <--- If a post helps hit the star

  5. #5
    Registered User
    Join Date
    04-10-2014
    Location
    South Africa
    MS-Off Ver
    Excel 2013
    Posts
    4

    Re: Need to match to columns to each other before returning a vlookup

    Quote Originally Posted by twiggywales View Post
    Maybe something like this (See Attached)

    it will show a result for any matched cells if there is no match it will be blank.

    it has to be array entered (Crtl+Shift+Enter) and the &"|"& just creates a barrier between words in case there were double matches.

    Attachment 310712
    Thanks it seems a little complicated for me but I'll try it

  6. #6
    Registered User
    Join Date
    04-10-2014
    Location
    South Africa
    MS-Off Ver
    Excel 2013
    Posts
    4

    Re: Need to match to columns to each other before returning a vlookup

    Hey guys after some digging I've found the exact formula I needed to reference 2 or more lookup values without using vlookup! I'll leave it here just in case anyone else ever needs it:

    =INDEX(C4:H1159,MATCH(1(C4:C1159=A2)*(D4:D1159=B2),0),6)

    Hit Cntrl+Shift+Enter when done
    Last edited by Adrian24; 04-11-2014 at 07:53 AM.

  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: Need to match to columns to each other before returning a vlookup

    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. [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
  2. Code req for returning results of a close match if two other columns match exactly
    By davidparkes in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 10-23-2010, 12:00 PM
  3. vlookup returning the closest match down
    By kadams99 in forum Excel General
    Replies: 4
    Last Post: 12-08-2009, 08:00 PM
  4. need help with a vlookup but returning a particular match?
    By D7ONO in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 05-05-2006, 09:20 AM
  5. VLOOKUP returning LAST match
    By Brian Ferris in forum Excel General
    Replies: 1
    Last Post: 04-04-2005, 09:06 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