+ Reply to Thread
Results 1 to 8 of 8

Trying to populate a clumn by matching 2 others.

Hybrid View

  1. #1
    Registered User
    Join Date
    03-02-2012
    Location
    USA
    MS-Off Ver
    Excel 2010
    Posts
    4

    Trying to populate a clumn by matching 2 others.

    I have a spreadsheet that has Sheet1 and Sheet 1. Column A on both sheets is a customer number. I want to match those and then pull in the data from column C on sheet2 to column C on sheet1 but only if Column A matches on both. I am attaching a sample sheet.
    Attached Files Attached Files

  2. #2
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: Trying to populate a clumn by matching 2 others.

    Try:

    =VLOOKUP(A2,Sheet2!$A$2:$C$4,3,FALSE)

    adjust ranges to suit

    copied down
    Where there is a will there are many ways.

    If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below left corner

    Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.

  3. #3
    Registered User
    Join Date
    03-02-2012
    Location
    USA
    MS-Off Ver
    Excel 2010
    Posts
    4

    Re: Trying to populate a clumn by matching 2 others.

    That's not going to work. In the actual sheet which i can't upload due to privacy converns is a bit different in that is has many rows. Here's the scenario. Similar setups as the sample.

    Sheet 1 has the Customer # column A and ID in column C. In sheet 2 I have Column A cusotmer # and Column C is ID. Not every cell is populated. I need it to look at each row in sheet1 and find the matching Customer # on sheet 2 and fill in the proper ID. Sheet 1 has around 12000 rows and sheet 2 has around 270 rows.

    The vlookup does not work.

  4. #4
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: Trying to populate a clumn by matching 2 others.

    Why exacty doesn't Vlookup work?

  5. #5
    Registered User
    Join Date
    03-02-2012
    Location
    USA
    MS-Off Ver
    Excel 2010
    Posts
    4

    Re: Trying to populate a clumn by matching 2 others.

    It worked for hte first 2 rows on sheet 1 but once it got to row3 a different customer it bombed out and didn't return any results.

  6. #6
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: Trying to populate a clumn by matching 2 others.

    Did you change the range: Sheet2!$A$2:$C$4 to suit your database?

  7. #7
    Registered User
    Join Date
    03-02-2012
    Location
    USA
    MS-Off Ver
    Excel 2010
    Posts
    4

    Re: Trying to populate a clumn by matching 2 others.

    Ok got it working right. I am not sure what it was but recopied and rechanged the range and it worked. Guess a space or something snuck in there.

    Really do appreciate the help.

  8. #8
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: Trying to populate a clumn by matching 2 others.

    Great!

    If you are satisfied with the solution provided, please mark your thread as Solved.

    How to mark a thread Solved
    Go to the first post
    Click edit
    Click Go Advanced
    Just below the word Title you will see a dropdown with the word No prefix.
    Change to Solved
    Click Save

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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