Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 74
Default Insert a specific address from a list if the contents of cell A1=x

Cell A1 is for school name. Used Data Validation to provide a drop down list
to choose school name. Cell A2 is for school address. Would like a school's
address (from a list) to be inserted when that school's name is selected in
A1.
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 964
Default Insert a specific address from a list if the contents of cell A1=x

=IF(A1="","",VLOOKUP(A1,School_address_table,2,0))

where School_address_table is a table with the school's name in the leftmost
column and the address in column 2

For instance if you put all the school names in Sheet2 column A and their
respective addresses in column B it would look like

=IF(A1="","",VLOOKUP(A1,Sheet2!A:B,2,0))


Lookup VLOOKUP in help


--


Regards,


Peo Sjoblom

"Anne" wrote in message
...
Cell A1 is for school name. Used Data Validation to provide a drop down
list
to choose school name. Cell A2 is for school address. Would like a
school's
address (from a list) to be inserted when that school's name is selected
in
A1.



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
Comparing cell contents, know cell address molsansk Excel Discussion (Misc queries) 4 December 10th 07 04:44 PM
Insert Cell Contents in middle of web address Jetheat Excel Discussion (Misc queries) 2 March 5th 06 07:18 PM
How do I use cell contents as an address in a formula tomeck Excel Worksheet Functions 1 December 20th 05 05:46 PM
How do i insert a Address Bar kind of drop down list within MS Exc Swiftcode Excel Discussion (Misc queries) 3 June 17th 05 12:46 AM
How do I find the contents of a cell using the "ADDRESS" function. sweeney Excel Worksheet Functions 2 April 5th 05 03:23 AM


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