+ Reply to Thread
Results 1 to 5 of 5

Data Verification

  1. #1
    Registered User
    Join Date
    08-03-2008
    Location
    London
    Posts
    21

    Data Verification

    Hi.

    I have two worksheets. The first is a bit messy due to user error when inputting. It looks something like this

    Please Login or Register  to view this content.
    I need to correct these descriptions with the second worksheet data which has the accurate description for all lines, for example:

    Please Login or Register  to view this content.
    To manually correct all of the first sheet would be a tedious task as there are a good 18-19 thousand rows of data.

    I should mention the first sheet is a 97-03 spread sheet and the second is a 07 excel spread sheet (as the second as over 100 thousand rows of data)

    How can I do this?
    Last edited by VBA Noob; 09-14-2008 at 08:02 AM.

  2. #2
    Valued Forum Contributor Richard Schollar's Avatar
    Join Date
    05-23-2006
    Location
    Hampshire UK
    MS-Off Ver
    Excel 2002
    Posts
    1,264
    Hi

    Use a Vlookup in the first spreadsheet in an adjacent column (eg col C) along the lines of:

    =VLOOKUP(A2,'[SecondWorkbook]Sheet1'!A:B,2,0)

    and copy down (adjust ranges to suit if not in A & B columns). This should provide you with the corrected result. Then copy and pasteSpecial>Values over your original values. Following this you can delete the formula column.

    Richard

  3. #3
    Registered User
    Join Date
    08-03-2008
    Location
    London
    Posts
    21

    Red face

    Hi Richard,

    Thanks for your reply.

    I can't seem to adjust the formula for my data, could you do this for me?

    In my first sheet the "line" column is E and "description" F
    my second sheet is called "assortment.xlsx" and have its "line" column as A and description as B

    Thank you!

  4. #4
    Valued Forum Contributor Richard Schollar's Avatar
    Join Date
    05-23-2006
    Location
    Hampshire UK
    MS-Off Ver
    Excel 2002
    Posts
    1,264
    With both files open in xl2007 it would be:

    =VLOOKUP(E2,'[assortment.xlsx]Sheet1'!A:B,2,0)

    You may need to adjust the sheet name (from Sheet1) to whatever it is in your second (xlsx) sheet.

    Richard

  5. #5
    Registered User
    Join Date
    08-03-2008
    Location
    London
    Posts
    21
    Thanks Richard, took along time to do all that processing but it's sorted!

+ 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. Data and number manipulation
    By Mwhite in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 05-15-2015, 06:41 AM
  2. automatically move left one cell after data input by scanner.
    By dgbillings in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 04-24-2010, 10:58 PM
  3. Replies: 2
    Last Post: 02-14-2008, 05:02 PM
  4. importing data:What i would like to do is be able to import
    By censura in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 06-01-2007, 08:32 AM
  5. Macro to create new sheets from master data sheet
    By adsigel in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 10-04-2006, 09:21 AM

Tags for this Thread

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