Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
extract data fr. one worksheet to anothe
 
Posts: n/a
Default Extract data from one Worksheet to another

Dear All,

I have 2 worksheets. 1 is the destination sheet and the other 1 is the data
sheet where I want information from. I want to extract the following data
from the data sheet. These are the personnel id, employee name and cost
center account. What I want is if I fill in the personnel id number in a
particular cell, that the employee name and cost centre is also extracted in
to 2 seperate cells respectively.
  #2   Report Post  
CLR
 
Posts: n/a
Default

The feature that wil help you is called VLOOKUP.

You've left out a lot of information about your workbook, but assuming the
following, maybe you can get the idea from this.......

Your Sheets are named Sheet 1 for destination sheet, and Sheet 2 for your
database.
On your database sheet, Employee ID are in column A, Names in column B and
CostCenter in column C.

Then, in cell b6 of your destination sheet, you enter the Employee ID number.
Then, in the cell where you want the Employee name to appear, put
=VLOOKUP(B6,Sheet2!A:C,2,false)

Then in the cell where you want the CostCenter to appear, put
=VLOOKUP(b6,Sheet2!A:C,3,false)

You can see, the formulas are exactly the same except for the number 2 being
changed to 3. This is the difference to lookup the Name, or the CostCenter,
either 2 or 3 columns to the right of the column with the Employee ID.

Modify the formulas as necessary to fit your application......

Vaya con Dios,
Chuck, CABGx3



"extract data fr. one worksheet to anothe" wrote:

Dear All,

I have 2 worksheets. 1 is the destination sheet and the other 1 is the data
sheet where I want information from. I want to extract the following data
from the data sheet. These are the personnel id, employee name and cost
center account. What I want is if I fill in the personnel id number in a
particular cell, that the employee name and cost centre is also extracted in
to 2 seperate cells respectively.

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
Data From One Worksheet To Be Used In A Cell In A Different Worksheet ratt Excel Worksheet Functions 5 August 16th 05 03:13 AM
extract from worksheet alisonmacd New Users to Excel 6 June 21st 05 10:24 AM
Excel 2002 chart does not update when worksheet data changes proquant Charts and Charting in Excel 1 June 15th 05 12:23 AM
Sort pages? David Excel Discussion (Misc queries) 15 May 13th 05 11:33 PM
How do I collect data from an interactive web worksheet and impor. worksheetmom Excel Discussion (Misc queries) 3 February 20th 05 12:38 AM


All times are GMT +1. The time now is 12:18 PM.

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"