#1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1
Default Creat table list

How can I set up table list with doctor's last name first , with first name
initials and with their tittles. So that when you enter in a name of a doctor
their GP practice code comes up automatically within the adjacent cell?
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 11,501
Default Creat table list

Hi,

1 way. Create a simple table like this
A B C
Doc Halliday 123 Doc Halliday
Doc Crippen 456
Doc Doolittle 789

In another cell type the formula

=VLOOKUP(C1,A1:B3,2,FALSE)

This looks for a name in C1 and returns the number next to that name from
the table.

Mike

"Learners of excel, access and databases" wrote:

How can I set up table list with doctor's last name first , with first name
initials and with their tittles. So that when you enter in a name of a doctor
their GP practice code comes up automatically within the adjacent cell?

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 4,339
Default Creat table list

Something like this ....say on Sheet2


A B C D E
Last name First Name Initial Title GP practice Code
Smith John M Dr 12345

IF the last names are unique, you could use VLOOKUP to get other information
from the table:

Assume Surnames in drop down list (see Data Validation) in column A, startin
row 2:

in B2:

=VLOOKUP(A2,Sheet2!A:E,5,0) will return the Practice Code for Surname in A2

If Last Names are NOT unique, you will need to match on two (or more) fields
e.g Last Name, First Name so these need to be provided in the selection.

HTH

"Learners of excel, access and databases" wrote:

How can I set up table list with doctor's last name first , with first name
initials and with their tittles. So that when you enter in a name of a doctor
their GP practice code comes up automatically within the adjacent cell?

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
Creat Filter List Nasir Naqvi New Users to Excel 3 December 28th 06 10:14 AM
Creat dsanita Excel Discussion (Misc queries) 0 July 25th 06 10:01 PM
How can I creat NYExcel Excel Discussion (Misc queries) 2 April 17th 06 04:39 PM
Pivot Table Q: Creat using fieldA valueB OR fieldC valueD? Jan K Excel Discussion (Misc queries) 2 February 20th 06 02:34 PM
Creat a new worksheet lashio Excel Discussion (Misc queries) 4 April 25th 05 03:40 AM


All times are GMT +1. The time now is 10:19 AM.

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"