Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1
Default Importing specific data into an Excel workbook

I would like to import data about one specific person from one Excel
'database' workbook into another workbook.
One workbook should contain a "database" containing the names, DOBs, phone
numbers, addresses etc. of several persons.
In another workbook I would then like to be able to lookup and import all
information about one specific person (for example defined by that person's
DOB or phone number) from the "database" workbook into specific cells of the
"new" workbook.
Is this feasible?
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 299
Default Importing specific data into an Excel workbook

You can use multiple VLOOKUP formulas for that

could look like

=VLOOKUP($A2,[Workbook_with_database.xls]Sheet1!$A$2:$J$500,COLUMNS($A:B),0)

assuming the table is A2:J500, A2 would be the impute cell where you would
type the lookup value
then you can copy the formula across as many rows as needed and it will pull
the different values from each column in the table
you might want to add an if function if A2 is empty

=IF(A2="","",VLOOKUP($A2,[Workbook_with_database.xls]Sheet1!$A$2:$J$500,COLUMNS($A:B),0))


you can also use

=IF(A2="","",VLOOKUP($A2,[Workbook_with_database.xls]Sheet1!$A$2:$J$500,2,0))

for the first lookup


=IF(A2="","",VLOOKUP($A2,[Workbook_with_database.xls]Sheet1!$A$2:$J$500,3,0))

for the second and so on, the COLUMNS part will do that automatically if you
copy across the first
formula


"kare9" wrote in message
...
I would like to import data about one specific person from one Excel
'database' workbook into another workbook.
One workbook should contain a "database" containing the names, DOBs, phone
numbers, addresses etc. of several persons.
In another workbook I would then like to be able to lookup and import all
information about one specific person (for example defined by that
person's
DOB or phone number) from the "database" workbook into specific cells of
the
"new" workbook.
Is this feasible?



Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
loosing data from excel file in shared workbook Gai Excel Discussion (Misc queries) 0 November 16th 06 01:58 AM
Importing data for CSV into Excel using VBA Basu Excel Discussion (Misc queries) 2 August 9th 06 02:06 PM
Excel references change when importing data jimithing1980 Excel Discussion (Misc queries) 1 July 17th 06 05:02 PM
Importing Data from unopened Workbook into an open Workbook GrayesGhost Excel Discussion (Misc queries) 0 March 5th 05 11:25 PM
Extract specific data into its own workbook via macro? Adrian B Excel Discussion (Misc queries) 2 February 24th 05 06:09 AM


All times are GMT +1. The time now is 02:59 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"