+ Reply to Thread
Results 1 to 6 of 6

Moving data from one spreadsheet to another one.

  1. #1
    Registered User
    Join Date
    11-10-2010
    Location
    Boston, USA
    MS-Off Ver
    Excel 2003
    Posts
    28

    Moving data from one spreadsheet to another one.

    I have two (2) spreadsheets, if value in column "D" of errors.xls is also in column "D" of MasterList-OS.xls I would like to add info from MasterList-OS.xls columns "N", "O","P" & "Q" to errors.xls columns "N", "O","P" & "Q" (which are currently blank). Was wondering if this is possible and if so how it could be done. Thanks

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

    Re: Moving data from one spreadsheet to another one.

    Sounds like you need to use VLOOKUP.

    From the Help:

    VLOOKUP(lookup_value, table_array, col_index_num, [range_lookup])The VLOOKUP function syntax has the following arguments (argument: A value that provides information to an action, an event, a method, a property, a function, or a procedure.):

    lookup_value Required. The value to search in the first column of the table or range. The lookup_value argument can be a value or a reference. If the value you supply for the lookup_value argument is smaller than the smallest value in the first column of the table_array argument, VLOOKUP returns the #N/A error value.
    table_array Required. The range of cells that contains the data. You can use a reference to a range (for example, A2:D8), or a range name. The values in the first column of table_array are the values searched by lookup_value. These values can be text, numbers, or logical values. Uppercase and lowercase text are equivalent.
    col_index_num Required. The column number in the table_array argument from which the matching value must be returned. A col_index_num argument of 1 returns the value in the first column in table_array; a col_index_num of 2 returns the value in the second column in table_array, and so on.
    If the col_index_num argument is:

    Less than 1, VLOOKUP returns the #VALUE! error value.
    Greater than the number of columns in table_array, VLOOKUP returns the #REF! error value.
    range_lookup Optional. A logical value that specifies whether you want VLOOKUP to find an exact match or an approximate match:
    If range_lookup is either TRUE or is omitted, an exact or approximate match is returned. If an exact match is not found, the next largest value that is less than lookup_value is returned.
    Important If range_lookup is either TRUE or is omitted, the values in the first column of table_array must be placed in ascending sort order; otherwise, VLOOKUP might not return the correct value.

    For more information, see Sort data.

    If range_lookup is FALSE, the values in the first column of table_array do not need to be sorted.

    If the range_lookup argument is FALSE, VLOOKUP will find only an exact match. If there are two or more values in the first column of table_array that match the lookup_value, the first value found is used. If an exact match is not found, the error value #N/A is returned.


    Regards
    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


  3. #3
    Registered User
    Join Date
    11-10-2010
    Location
    Boston, USA
    MS-Off Ver
    Excel 2003
    Posts
    28

    Re: Moving data from one spreadsheet to another one.

    Thanks TMShucks. I must admit I must be a smuck cause I can't figure this out.

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

    Re: Moving data from one spreadsheet to another one.

    For me, and many others, it is easier to understand, assess and address the issue/problem with a sample of the spreadsheet or, in this case, spreadsheets.

    Please upload a sample of each workbook with some typical, but not necessarily real, data with an indication of what you want/hope/expect the output to look like and where it comes from.

    Regards

  5. #5
    Registered User
    Join Date
    11-10-2010
    Location
    Boston, USA
    MS-Off Ver
    Excel 2003
    Posts
    28

    Re: Moving data from one spreadsheet to another one.

    TMShucks - You right it is easier if you see it. I should have done it from the very start. Sorry about that. Files attached.
    Thanks
    Attached Files Attached Files
    Last edited by mroldguy; 01-20-2011 at 03:23 PM. Reason: Files attached

  6. #6
    Registered User
    Join Date
    11-10-2010
    Location
    Boston, USA
    MS-Off Ver
    Excel 2003
    Posts
    28

    Re: Moving data from one spreadsheet to another one.

    Please note that all value of colunm "d" errors.xls may not be found in masterlist-os.xls .

+ 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