Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 37
Default Dynamic Data Validation List

I want to be able to enter a Post Code (Zip Code) in a cell and then using
the Vlookup function find the first occurence of that in the post code list
(sorted by code), then find the last occurence, and use these two values as
the start end end points for a data validation list so that the user can
select the desired location from the list of locations having the same post
code.


  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2,979
Default Dynamic Data Validation List

You can use an OFFSET formula to create the data validation list. For
example, if Post Codes are in column A, and locations are in column B,
select to Allow: List, the enter this formula in the Source box:

=OFFSET($A$1,MATCH(D2,$A:$A,0),1,COUNTIF($A:$A,D2) ,1)

where the selected Post Code is in D2

Ken G. wrote:
I want to be able to enter a Post Code (Zip Code) in a cell and then using
the Vlookup function find the first occurence of that in the post code list
(sorted by code), then find the last occurence, and use these two values as
the start end end points for a data validation list so that the user can
select the desired location from the list of locations having the same post
code.



--
Debra Dalgleish
Contextures
http://www.contextures.com/tiptech.html

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 15,768
Default Dynamic Data Validation List

Assume your table is in the range A1:B15

D1 = zip code

Source for the drop down list:

=OFFSET(B$1,MATCH(D$1,A$1:A$15,0)-1,,COUNTIF(A$1:A$15,D$1))

Biff

"Ken G." wrote in message
...
I want to be able to enter a Post Code (Zip Code) in a cell and then using
the Vlookup function find the first occurence of that in the post code
list
(sorted by code), then find the last occurence, and use these two values
as
the start end end points for a data validation list so that the user can
select the desired location from the list of locations having the same
post
code.




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
Manual control of link updating for downloaded quotes? dk_ Excel Discussion (Misc queries) 9 November 15th 06 01:04 PM
data validation invalid in dynamic validation list ilia Excel Worksheet Functions 0 November 7th 06 12:54 PM
Data Validation List Length Alex Mackenzie Excel Worksheet Functions 4 November 1st 05 01:27 AM
Printing data validation scenarios SJC Excel Worksheet Functions 14 July 24th 05 12:43 AM
named range, data validation: list non-selected items, and new added items KR Excel Discussion (Misc queries) 1 June 24th 05 05:21 AM


All times are GMT +1. The time now is 08:25 PM.

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"