Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Michelle Dean via OfficeKB.com
 
Posts: n/a
Default Obtaining information from a database for a worksheet

I have a seperate datebase set up. What I need to do is ... in a seperate
worksheet obtain information for a certain cell and the row that corralates
to be able to feed into a seperate worksheet.


Example:

From Database

Need information that corrolates with column A Row 2 which would be a
registration number. I need the information from ColumnB row 2 (last Name),
Column C row 2 (first name), ColumnG Row 2, (street address) Column H row 2
(city), Colum I row 2 ( State), Column J row 2 (zip Code) , to be
automatically linked to another file so that we do not have to do a copy
paste. I do know of Vlookup but dosen't that only work for picking up info
in the column left of the one you are looking for.

Thanks,
Michelle
  #2   Report Post  
Anne Troy
 
Posts: n/a
Default

As a matter of fact, no. Vlookup works only to the right. Otherwise, you
must use Index & Match. How to do Vlookup:

http://www.officearticles.com/excel/...soft_excel.htm

*******************
~Anne Troy

www.OfficeArticles.com
www.MyExpertsOnline.com


"Michelle Dean via OfficeKB.com" wrote in message
...
I have a seperate datebase set up. What I need to do is ... in a seperate
worksheet obtain information for a certain cell and the row that

corralates
to be able to feed into a seperate worksheet.


Example:

From Database

Need information that corrolates with column A Row 2 which would be a
registration number. I need the information from ColumnB row 2 (last

Name),
Column C row 2 (first name), ColumnG Row 2, (street address) Column H row

2
(city), Colum I row 2 ( State), Column J row 2 (zip Code) , to be
automatically linked to another file so that we do not have to do a copy
paste. I do know of Vlookup but dosen't that only work for picking up

info
in the column left of the one you are looking for.

Thanks,
Michelle



  #3   Report Post  
Michelle Dean via OfficeKB.com
 
Posts: n/a
Default

Okay - if I understand this correctly - I can only get the value of the cell
at the right. I am needing the other cells information. Can you help w/ the
formula. I am not really following the index or match.

Database
EX.
Column Column Column Column Column
A B C D E
USAS # Last Name First Name Street Address City
34 Garcia Nicholas Marylou 1500 Oak Drive Lake Clarke
394 Suswal Tom PO Box 2372 Acworth
718 Barnhart Shane 523 Lee Road 412 Phenix City
749 Gray Hank 7031 Bill St Ft Benning
848 Litz Stephanie 5958 Dearborn Ave. Columbus


Seperate file Worksheet
Column
A B C D E
Last First USAS # Address City


I am needing all the information corlated with the USAS# to automatically
update. Again, can you please help me with a formula for that? What would
be for formula for column a, column b, column D and column e for the seperate
file worksheet?

Michelle

--
Message posted via http://www.officekb.com
  #4   Report Post  
Fred
 
Posts: n/a
Default

Michelle,

Sort your database file by USAS# then

In A1 (lookup Last Name) =VLOOKUP(C1,Database!$A$2:$E$999,2,False)
In B1 (lookup First Name) =VLOOKUP(C1,Database!$A$2:$E$999,3,False)
In D1 (lookup Address) =VLOOKUP(C1,Database!$A$2:$E$999,4,False)
In E1 (lookup City) =VLOOKUP(C1,Database!$A$2:$E$999,5,False)

where 'Database!$A$2:$E$999' will be the range of cells that contains the
database values.

Copy down all rows in 'separate workfile' - job done. If USAS# is present
in database, values will be returned otherwise an error condition will be
returned.

HTH

"Michelle Dean via OfficeKB.com" wrote:

Okay - if I understand this correctly - I can only get the value of the cell
at the right. I am needing the other cells information. Can you help w/ the
formula. I am not really following the index or match.

Database
EX.
Column Column Column Column Column
A B C D E
USAS # Last Name First Name Street Address City
34 Garcia Nicholas Marylou 1500 Oak Drive Lake Clarke
394 Suswal Tom PO Box 2372 Acworth
718 Barnhart Shane 523 Lee Road 412 Phenix City
749 Gray Hank 7031 Bill St Ft Benning
848 Litz Stephanie 5958 Dearborn Ave. Columbus


Seperate file Worksheet
Column
A B C D E
Last First USAS # Address City


I am needing all the information corlated with the USAS# to automatically
update. Again, can you please help me with a formula for that? What would
be for formula for column a, column b, column D and column e for the seperate
file worksheet?

Michelle

--
Message posted via http://www.officekb.com

  #5   Report Post  
Michelle Dean via OfficeKB.com
 
Posts: n/a
Default

Thanks Fred

It worked for me. This will help a bunch!!!

Michelle

--
Message posted via http://www.officekb.com
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
how do I set up a database for client information Insurance Tracie Excel Discussion (Misc queries) 1 May 13th 05 05:11 PM
How do I export information from excel to word, ie database of na. Harry Gill Excel Worksheet Functions 1 April 4th 05 02:25 PM
Database Information Nick Excel Worksheet Functions 1 March 7th 05 02:52 PM
Excel as a database and sorting information [email protected]##### Excel Discussion (Misc queries) 1 February 27th 05 09:50 PM
PLEASE HELP!? Creating a simple database with excel, minor setback Pre-construction Manager & Excel !? Excel Worksheet Functions 1 November 30th 04 08:59 PM


All times are GMT +1. The time now is 08:18 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"