+ Reply to Thread
Results 1 to 6 of 6

Populate an empty column with descriptions from another spreadsheet if the code matches.

  1. #1
    Registered User
    Join Date
    06-08-2015
    Location
    Glasgow, UK
    MS-Off Ver
    2019
    Posts
    37

    Populate an empty column with descriptions from another spreadsheet if the code matches.

    I have 2 spreadsheets of data. Common to both is a column of part numbers (Code *). One sheet is missing the full description and I would like to populate the empty column with the corresponding description from the other spreadsheet if it is there. (Some may be missing)
    I have attached two sample sheets. I would like the description populated in Sample one from Sample two spreadsheet.
    Many thanks.
    Charles

  2. #2
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,902

    Re: Populate an empty column with descriptions from another spreadsheet if the code matche

    It is easier to open both files in the same instance of Excel, and then you can use this formula in B2 of the Sample_One file:

    =IFERROR(VLOOKUP(A2,'[Sample two - Descriptions complete.xlsx]PRICE RECORD.csc descriptions 1'!$A:$B,2,0),"")

    Copy this down as far as you need to.

    Hope this helps.

    Pete

  3. #3
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    45,308

    Re: Populate an empty column with descriptions from another spreadsheet if the code matche

    Use VLOOKUP with both workbooks open.

    Regards, TMS
    Trevor Shuttleworth - Retired Excel/VBA Consultant

    I dream of a better world where chickens can cross the road without having their motives questioned

    'Being unapologetic means never having to say you're sorry' John Cooper Clarke


  4. #4
    Registered User
    Join Date
    06-08-2015
    Location
    Glasgow, UK
    MS-Off Ver
    2019
    Posts
    37

    Re: Populate an empty column with descriptions from another spreadsheet if the code matche

    It works perfectly on my sample sheets but I'm having trouble applying it to the real sheets which are csv files and much bigger.
    I am so sorry to ask but could you give me the formula again for the real sheets:
    Sample two - Descriptons complete.xlsx = Two Descriptions complete.csv
    Sample one - Description missing.xlsx = Assembly 1 Missing Description.csv (394802 rows)
    Thank you so much.
    Charley

  5. #5
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,902

    Re: Populate an empty column with descriptions from another spreadsheet if the code matche

    The formula will become this:

    =IFERROR(VLOOKUP(A2,'[Two Descriptions complete.csv]Sheet1'!$A:$B,2,0),"")

    I presume the .csv file will have its sheet named Sheet1 when it is opened. Put the formula in B2 of the Assembly 1 file, then copy down.

    Hope this helps.

    Pete

    P.S. If that takes care of your original question, please select Thread Tools from the menu above your first post and mark this thread as SOLVED.

  6. #6
    Registered User
    Join Date
    06-08-2015
    Location
    Glasgow, UK
    MS-Off Ver
    2019
    Posts
    37

    Re: Populate an empty column with descriptions from another spreadsheet if the code matche

    Thank you so much! Have got it to work and it has saved a massive amount of time... star!

+ 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. Replies: 1
    Last Post: 08-20-2015, 12:46 PM
  2. [SOLVED] If Column Empty Populate with!
    By plank22 in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 07-29-2015, 03:50 PM
  3. [SOLVED] Vlookup to populate from sheet but if column is empty then use a different one?
    By kellyfirth in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 01-22-2015, 07:40 AM
  4. [SOLVED] Trying to auto-populate based on if one column matches data from another table
    By joshley2010 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 07-21-2014, 11:15 AM
  5. Replies: 4
    Last Post: 06-13-2013, 04:42 AM
  6. [SOLVED] If value in Column A matches K, enter value in Column O into H, dont do if F is empty
    By rkobeyer in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 04-18-2013, 02:05 AM
  7. Macro Needed To Help Populate Descriptions in Columns.
    By donnydorko in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 03-22-2012, 10:57 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