+ Reply to Thread
Results 1 to 3 of 3

Match rows between two worksheets and fill empty cells with data from the other worksheets

  1. #1
    Registered User
    Join Date
    06-11-2014
    Posts
    2

    Match rows between two worksheets and fill empty cells with data from the other worksheets

    Hello there. I'm having trouble with dealing two worksheets, hopefully someone can help me with this.

    The problem is that i have two worksheets with customers' information. List1 contains all 2000 customers for our company with Name(Column A), Address(Column B), Tel.(Column C), Email(Column D), Privateemail(Column E), Customercatogory(Column F) and a lot of other information for every customer. However, some cells, except in the Name(column A), are empty. For example, you can find a customer named Tom(A5) with only Address(B5) and Privateemail(E5), but no data in Tel.(C5) and Email(D5). In List2, there are 300 customers with only four columns of Name(Column A), address(Column B), Tel.(Column C), and Email(Column D). Those 300 customers in List2 already exist in the List1, but they may contains information that is missing in List1, such as Tom's Tel. and Email.

    Now what i want to do is to fill in the empty cells in List1 with help of the complementary information from List2. I plan to Vlookup all 300 names in the List1 and check if a certain customer's empty information in List1 can be found in List2. If it does, let's say List2 contains data about Tom's Email and address, I would like to copy these data from List2 to C5(Tel.) and D5(Email) in the List1. Is that possible using Vlookup function in combination with some others since i'm not experienced in using VBA.

    To sum up, it is basically to match two lists and see if cells in List2 contains info that is missing in List1. Hoepfully I have explained the problem clearly...Any advice would be appreciated!

  2. #2
    Valued Forum Contributor
    Join Date
    09-21-2011
    Location
    Birmingham UK
    MS-Off Ver
    Excel 2003/7/10
    Posts
    2,188

    Re: Match rows between two worksheets and fill empty cells with data from the other worksh

    Yes, just trap the NA event of VLOOKUP, like if(isna(vlookup),"",vlookup)
    Hope this helps

    Sometimes its best to start at the beginning and learn VBA & Excel.

    Please dont ask me to do your work for you, I learnt from Reading books, Recording, F1 and Google and like having all of this knowledge in my head for the next time i wish to do it, or wish to tweak it.
    Available for remote consultancy work PM me

  3. #3
    Registered User
    Join Date
    06-11-2014
    Posts
    2

    Re: Match rows between two worksheets and fill empty cells with data from the other worksh

    Quote Originally Posted by nathansav View Post
    Yes, just trap the NA event of VLOOKUP, like if(isna(vlookup),"",vlookup)
    Thank you for your answer. I have tried this formula to identify the empty cells. But I wrote the formula in a new sheet. How would I do if i want to actually fill the blank cells? In which cell the formula should be written? Also, this only work to compare one column on List1 and one on List2. Is that possible to compare several columns as the same time?

+ 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] Fill cells in different worksheets with data extracted form one particular worksheet
    By shaeto in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 06-11-2013, 01:16 AM
  2. Replies: 2
    Last Post: 03-15-2013, 01:22 PM
  3. [SOLVED] Need to fill cells by utilizing data from two different worksheets
    By Clueless_Intern in forum Excel - New Users/Basics
    Replies: 7
    Last Post: 08-23-2012, 05:12 PM
  4. 2 worksheets, need to match and fill the data
    By papaya2452 in forum Excel General
    Replies: 5
    Last Post: 01-31-2012, 04:21 PM
  5. Fill Multi cells in Row if column match both worksheets
    By MBCMDR in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 11-07-2009, 09:34 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