Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Cell Value Depends on Other Cell Value

Hi,
I created a worksheet that contains a list cell (from Data - Validation -
List (List Name = City))
The list is on another worksheet (named Data) and is called City (range
A2:A27) that contains city names
On the same worksheet, I have another list called Miles (range B2:B27) that
contains the mileage from my town to the towns listed in City.
How can I display the mileage depending on what city is selected in the list
cell?
Thanks,
John


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,123
Default Cell Value Depends on Other Cell Value

You can use Vlookup John
with in a1 the data validation cell

=VLOOKUP(A1,Sheet2!A2:B27,2)

--
Regards Ron de Bruin
(Win XP Pro SP-1 XL2002 SP-2)
www.rondebruin.nl



"Grease" wrote in message ...
Hi,
I created a worksheet that contains a list cell (from Data - Validation -
List (List Name = City))
The list is on another worksheet (named Data) and is called City (range
A2:A27) that contains city names
On the same worksheet, I have another list called Miles (range B2:B27) that
contains the mileage from my town to the towns listed in City.
How can I display the mileage depending on what city is selected in the list
cell?
Thanks,
John




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
Add Rows depends on the number in a cell Elton Law[_2_] Excel Worksheet Functions 1 April 11th 09 12:04 PM
Can I create a custom header that depends on cell contents? Fred Excel Discussion (Misc queries) 3 June 3rd 08 04:16 PM
Formula depends on which cell contains max. Len B Excel Worksheet Functions 4 April 16th 07 01:48 PM
Can Excel send automaticaly e-mails depends on cell value Booker Excel Discussion (Misc queries) 2 November 9th 05 08:26 AM
Validation depends on cell value SteveT Excel Worksheet Functions 2 January 31st 05 06:17 PM


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