Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1
Default Populating multiple fields from existing data

I have 1 worksheet with 3 columns: (ID, Name, City) which holds 1000 records.
I have another worksheet with the same columns but are left blank until a
user enters a ID.
What I would like is that when the user enters a ID on the 2nd worksheet,
then it would automatically fill-in the Name and City fields based on the
information from the 1st worksheet.

Thanks.
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1,316
Default Populating multiple fields from existing data

Use a VLOOKUP for doing that.

Assuming the table is in Sheet 1, and the lookup formulas are in columns B &
C of Sheet 2:

The ID is entered in Column A of Sheet2 and Column B has the following
formula:

=IF(ISBLANK($A$1),"",VLOOKUP($A$1,Sheet1!$A$1:$C$1 000,2,TRUE))

The formula in column C of sheet 2 would be:

=IF(ISBLANK($A$1),"",VLOOKUP($A$1,Sheet1!$A$1:$C$7 ,3,TRUE))

The formulas look at the value in column A and if blank return nothing,
otherwise it looks down column 1 of the table in sheet1 until it finds a
match. It returns the value in columns B & C in the table from the row with
the matching ID.

Hope this is of some help.
--
Kevin Backmann


"dwalsh77" wrote:

I have 1 worksheet with 3 columns: (ID, Name, City) which holds 1000 records.
I have another worksheet with the same columns but are left blank until a
user enters a ID.
What I would like is that when the user enters a ID on the 2nd worksheet,
then it would automatically fill-in the Name and City fields based on the
information from the 1st worksheet.

Thanks.

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
Adding multiple data fields from time based data. JMK Excel Discussion (Misc queries) 1 July 27th 07 10:59 PM
Populating sequentialcombo's or fields Jeff[_6_] Excel Worksheet Functions 1 July 22nd 07 01:33 PM
Data sheet populating into multiple sheets Shaun New Users to Excel 5 February 28th 07 01:31 PM
Data Sheet populating to multiple sheets Shaun Excel Worksheet Functions 1 February 22nd 07 04:35 PM
Auto populating fields Mark Excel Worksheet Functions 2 September 15th 05 08:46 PM


All times are GMT +1. The time now is 01:38 AM.

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

About Us

"It's about Microsoft Excel"