+ Reply to Thread
Results 1 to 4 of 4

Linking two spreadsheets based on common field

  1. #1
    Registered User
    Join Date
    03-06-2008
    Posts
    4

    Linking two spreadsheets based on common field

    My dear Excel gurus:

    I have two spreadsheets that have the same number of fields and similar data (voltages) at buses for two sequential years.

    I need to run a comparison study of the data for these two years. Wherever the bus names are identical, I need to display the data on the same line. The entries for which the bus names are not identical cannot be compared, and are therefore not of interest.

    Is there an easy way to automatically do this in Excel? Any suggestions will be appreciated.

    Ansonicus

  2. #2
    Forum Contributor
    Join Date
    02-28-2006
    Posts
    690
    use the offset and match functions to find similar bus names in sheet 2, and bring back the voltage and display it next to the sheet1 voltage.

    Name the range of cells containing bus names in sheet2 as sht2busnames

    In sheet 1 in the column next to the voltages, lets say we are on row 2 column C of the spreadsheet

    =offset(sheet2!$a$1,match(a2,sht2busnames,0),1)

    failure to find a match will give an error message which you can trap out using ISERROR

  3. #3
    Registered User
    Join Date
    03-06-2008
    Posts
    4
    Thanks robert111. I think that will work just fine.

  4. #4
    Forum Contributor
    Join Date
    05-26-2008
    Posts
    122
    if not.. you could link the sheets to access and make a query to link up the two tables too ...

+ 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