+ Reply to Thread
Results 1 to 2 of 2

Import data from workbooks - advanced!

Hybrid View

  1. #1
    Registered User
    Join Date
    12-07-2007
    Posts
    1

    Import data from workbooks - advanced!

    I have a spread sheet that has the data I want to use in another workbook and I want workbook 1 to look at workbook 2 and pull the corresponding data. for example: if A1 in workbook 1=C1 workbook 2, then populate data in C2 workbook 2 in cell A1 workbook 1, if not look in D1 on workbook 2, if that equals A1 workbook 1, then populate data in D2 workbook 2 in cell A1 workbook 1, if not, then repeat through the following 40 rows. This is the function that i have used to get it to work for about 10 rows... but the formula is too long if I want to have it check all 40 rows:

    =IF((E9=""),"",IF((E9=[Book1]Sheet1!$F$2),[Book1]Sheet1!$E$2,IF((E9=[Book1]Sheet1!$F$3),[Book1]Sheet1!$E$3,IF((E9=[Book1]Sheet1!$F$4),[Book1]Sheet1!$E$4,IF(E9=[Book1]Sheet1!$F$5,[Book1]Sheet1!$E$5,"")))))

  2. #2
    Forum Expert royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    26,200
    Without seeing an example it's a little difficult. Maybe a PivotTable might be more efficient.
    Hope that helps.

    RoyUK
    --------
    For Excel Tips & Solutions, free examples and tutorials why not check out my web site

    Free DataBaseForm example

+ 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