+ Reply to Thread
Results 1 to 10 of 10

Need a VLookup formula for Multiple Columns

  1. #1
    Registered User
    Join Date
    07-08-2013
    Location
    Texas
    MS-Off Ver
    Excel 2010
    Posts
    7

    Need a VLookup formula for Multiple Columns

    I know this is simple but my brain is not working right now. Need a vlook up for this. If the data in cells from Column A matches Column E & the data in cells from Column B Matches F then return the data from cells in column G to cells in Column D. IF A & B don't match E & F then return 0. Can someone help? Example below:

    A B C D E F G
    BLUE RED 4 BLUE RED 8
    GREEN BLUE 8 GREEN PURPLE 16

  2. #2
    Registered User
    Join Date
    07-08-2013
    Location
    Texas
    MS-Off Ver
    Excel 2010
    Posts
    7

    Re: Need a VLookup formula for Multiple Columns

    attachment ATTACH]281633[/ATTACH]
    Attached Files Attached Files

  3. #3
    Forum Contributor
    Join Date
    05-07-2013
    Location
    apple valley ca
    MS-Off Ver
    Excel 2007
    Posts
    110

    Re: Need a VLookup formula for Multiple Columns

    try this in cell D2 then copy down

    =IF(AND(A2=E2,B2=F2),G2,0)

    but, you have a {space bar} insert after the first "red" in cell B2, with the "space" there it will return a 0 instead of whats in cell G2

  4. #4
    Registered User
    Join Date
    07-08-2013
    Location
    Texas
    MS-Off Ver
    Excel 2010
    Posts
    7

    Re: Need a VLookup formula for Multiple Columns

    Worked perfectly - thank you! Thanks for catching my error.

  5. #5
    Registered User
    Join Date
    07-08-2013
    Location
    Texas
    MS-Off Ver
    Excel 2010
    Posts
    7

    Re: Need a VLookup formula for Multiple Columns

    Thought It worked but I may still need the vlookup, not sure. Here is the updated attachment. The match may not always be in the same row, so thats why I think I need the vlookup. Here is the updated file. Can you still help? Trying to get the 2012 data to match up next to the 2013 data, however, there may not always be data for 2012 so it would return zero. For the data in G to populate the cells in column D, A&B and E&F would still have to match.
    Attached Files Attached Files

  6. #6
    Forum Contributor
    Join Date
    11-11-2013
    Location
    Melbourne, Australia
    MS-Off Ver
    Excel 2010
    Posts
    129

    Re: Need a VLookup formula for Multiple Columns

    I Don't understand how you can match the 2012 Data against the 2013 data without the coulours being aligned.

    (ie. Blue Red 4 0 Orange Pink 10) I think you can only match them together if Blue Red for 2012 was aligned to the 2013 Data as well...

  7. #7
    Forum Contributor
    Join Date
    05-07-2013
    Location
    apple valley ca
    MS-Off Ver
    Excel 2007
    Posts
    110

    Re: Need a VLookup formula for Multiple Columns

    maybe im not understanding what your needing. please re upload the sheet with samples of what it should be and should not be.. it would be easier to build the formula.. the sample you just uploaded would result in 0's in all D column

  8. #8
    Registered User
    Join Date
    07-08-2013
    Location
    Texas
    MS-Off Ver
    Excel 2010
    Posts
    7

    Re: Need a VLookup formula for Multiple Columns

    Thanks for looking into this. In the file, row 3 A & B match row 8 E & F so the formula would return 8 from G8 to D3. I want the formula to search the range E3:G9 and return the 2012 value to column D. It makes since in my head. The colors are just examples of matching data. Thanks for the help.

  9. #9
    Registered User
    Join Date
    07-08-2013
    Location
    Texas
    MS-Off Ver
    Excel 2010
    Posts
    7

    Re: Need a VLookup formula for Multiple Columns

    I started with a regular vlookup VLOOKUP(A3,E3:G9,3,FALSE), but it only matches data in Column A with data in column E. I need it to match data in A&B with E&F within that range.

  10. #10
    Registered User
    Join Date
    07-08-2013
    Location
    Texas
    MS-Off Ver
    Excel 2010
    Posts
    7

    Re: Need a VLookup formula for Multiple Columns

    thanks anyway, I figured it out using a Index/Match formula.

+ 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. Return multiple columns with vlookup when there are multiple matches
    By elapo21 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 11-06-2013, 07:11 PM
  2. Vlookup using multiple columns
    By hanez008 in forum Excel General
    Replies: 4
    Last Post: 08-22-2013, 11:17 AM
  3. VLOOKUP across multiple columns
    By sqrpush in forum Excel General
    Replies: 2
    Last Post: 12-16-2012, 12:58 PM
  4. Excel 2007 : VLookup on Multiple columns
    By Dazza6 in forum Excel General
    Replies: 2
    Last Post: 01-29-2010, 10:44 AM
  5. vlookup for multiple columns
    By MXC in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 03-04-2005, 06: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