+ Reply to Thread
Results 1 to 12 of 12

How do I match and combine data using VLookup?

  1. #1
    Registered User
    Join Date
    05-01-2015
    Location
    Irvine, CA
    MS-Off Ver
    2010
    Posts
    7

    How do I match and combine data using VLookup?

    Hi there, may I ask for help for a VLOOKUP question please? Sheet1 is way larger than Sheet2. I have simplified the question as follows. I need to find out the names in column A in Sheet1from Sheet2, and combine the other columns (Age, Gender, State, Zip Code) under the same names in Sheet3.

    Anyone can help me please? Thank you so much!

    Sheet1
    A B C
    NAME AGE GENDER
    JOHN 40 M
    SEAN 32 M
    ERIC 24 M
    LISA 56 F
    MINDY 28 F
    LEO 34 M
    TONY 41 M
    JEAN 26 F
    LANCE 36 M

    Sheet2
    A B C
    Name ZIP CODE STATE
    MICHAEL 36295 MI
    SEAN 37594 OH
    ERIC 83620 CA
    LINSEY 36422 NY
    JOHN 46327 WA

  2. #2
    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,064

    Re: How do I match and combine data using VLookup?

    Is this what you meant?
    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

  3. #3
    Registered User
    Join Date
    05-01-2015
    Location
    Irvine, CA
    MS-Off Ver
    2010
    Posts
    7
    Quote Originally Posted by Glenn Kennedy View Post
    Is this what you meant?
    Thank you for the reply! In Sheet 3, I only need names that are shown in both Sheet1 and Sheet2. How do I wrote the function?

  4. #4
    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,064

    Re: How do I match and combine data using VLookup?

    OK. Here you are (v2).

    the formula to return the list of names in common is an array formula.

    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

  5. #5
    Registered User
    Join Date
    05-01-2015
    Location
    Irvine, CA
    MS-Off Ver
    2010
    Posts
    7
    Quote Originally Posted by Glenn Kennedy View Post
    OK. Here you are (v2).

    the formula to return the list of names in common is an array formula.

    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...
    Thank you so much for your prompt reply and detailed explanation. I don't have access to my computer right now. Just want to conform the fomulars are in the excel document you attached right?

  6. #6
    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,064

    Re: How do I match and combine data using VLookup?

    That's correct. Everything's in the attachment.

  7. #7
    Registered User
    Join Date
    05-01-2015
    Location
    Irvine, CA
    MS-Off Ver
    2010
    Posts
    7
    Quote Originally Posted by Glenn Kennedy View Post
    That's correct. Everything's in the attachment.
    Thanks Glenn! I applied your formula to my large data base, but column A won't auto refill. How do I auto fill the entire column A without manually entering the formula?

  8. #8
    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,064

    Re: How do I match and combine data using VLookup?

    I'm not sure what you mean... However, the formulae that I used are ONLY in the green cells. Drag them down further, if needed. Also, the formulas are ALLset to look down both sheets as far as row 100. If that isn't enough - change the values to suit in row 2 and rdrag down. Don't forget, though, that the formula in A is an array formula and MUST be set with CTRL SHIFT ENTER.

  9. #9
    Registered User
    Join Date
    05-01-2015
    Location
    Irvine, CA
    MS-Off Ver
    2010
    Posts
    7

    Re: How do I match and combine data using VLookup?

    Quote Originally Posted by Glenn Kennedy View Post
    I'm not sure what you mean... However, the formulae that I used are ONLY in the green cells. Drag them down further, if needed. Also, the formulas are ALLset to look down both sheets as far as row 100. If that isn't enough - change the values to suit in row 2 and rdrag down. Don't forget, though, that the formula in A is an array formula and MUST be set with CTRL SHIFT ENTER.
    I appreciate your reply. I typed your formulas in sheet3 of my huge database, but when I drag down column A in sheet3, the formulas don't apply to new rows; they only repeated the first several rows. I don't know what the problem is. But I don't have problems with the other B, C, D, E, F columns. Could you please revise the formulas in column A to include sheet1 to 80,000 rows and sheet2 to 10,000 rows? Then I can apply your formula directly without typing the formulas on my own. Thank you so much for your help!

  10. #10
    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,064
    Sure. But before I do, please tell me which row the DATA (not the headers) start in sheets 1 and 2 in your real sheet.

  11. #11
    Registered User
    Join Date
    05-01-2015
    Location
    Irvine, CA
    MS-Off Ver
    2010
    Posts
    7
    Quote Originally Posted by Glenn Kennedy View Post
    Sure. But before I do, please tell me which row the DATA (not the headers) start in sheets 1 and 2 in your real sheet.
    Thanks! Column A in sheet3 is from Sheet1 A2 to A80,000, Sheet2 A2 to A10,000.

  12. #12
    Registered User
    Join Date
    05-01-2015
    Location
    Irvine, CA
    MS-Off Ver
    2010
    Posts
    7

    Re: How do I match and combine data using VLookup?

    I figured it out. Thanks for helping, Glenn!

+ 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 for approximate matches or combine VLOOKUP & HLOOKUP
    By michaljireht in forum Excel General
    Replies: 4
    Last Post: 12-01-2014, 08:41 PM
  2. [SOLVED] Match & Vlookup combine?
    By Laurianne03 in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 01-07-2013, 04:20 PM
  3. Help: Macro to Combine Match Data From Two Sheets
    By Mike951 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 08-24-2012, 11:41 AM
  4. How to combine IF, VLOOKUP and MATCH?
    By stormracela in forum Excel General
    Replies: 9
    Last Post: 05-17-2010, 03:17 AM
  5. How do I combine and match data from 2 sheets
    By CathyW in forum Excel General
    Replies: 3
    Last Post: 03-23-2006, 06:20 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