#1   Report Post  
Posted to microsoft.public.excel.misc
jrrbama
 
Posts: n/a
Default Data Validation

My scenario is below. I have three columns of dependent validation.

1. Select a value from dropdown list in A1. €“ O.K.
2. Dropdown list in B1 becomes dependent on selected value in A1. €“ O.K.
3. Select a value from list in B1. €“ O.K.
4. When there is a value in B1, A1 list is reduced to the single value
which was selected in step 1. €“ O.K.
5. Dropdown list in C1 becomes dependent on selected value in B1. €“ O.K.
6. Select a value from list in C1. €“ O.K.
7. When there is a value in C1, I need the same to occur here as in step 4,
B1 list is reduced to the single value which was selected in step 3.

The validation code for the dropdown cells is:

A1 - =IF(B1="",AList,INDEX(AColumn,MATCH(A1,AColumn,0)) )

B1- =OFFSET(AStart,MATCH(A1,AColumn,0)-1,1,COUNTIF(AColumn,A1),1)

C1- =OFFSET(BStart,MATCH(B1,BColumn,0)-1,1,COUNTIF(BColumn,B1),1)


  #2   Report Post  
Posted to microsoft.public.excel.misc
Debra Dalgleish
 
Posts: n/a
Default Data Validation

There's a sample file here that may help you:

http://www.contextures.com/excelfiles.html

Under Data Validation, look for 'Limit Data Validation Selection'

jrrbama wrote:
My scenario is below. I have three columns of dependent validation.

1. Select a value from dropdown list in A1. €“ O.K.
2. Dropdown list in B1 becomes dependent on selected value in A1. €“ O.K.
3. Select a value from list in B1. €“ O.K.
4. When there is a value in B1, A1 list is reduced to the single value
which was selected in step 1. €“ O.K.
5. Dropdown list in C1 becomes dependent on selected value in B1. €“ O.K.
6. Select a value from list in C1. €“ O.K.
7. When there is a value in C1, I need the same to occur here as in step 4,
B1 list is reduced to the single value which was selected in step 3.

The validation code for the dropdown cells is:

A1 - =IF(B1="",AList,INDEX(AColumn,MATCH(A1,AColumn,0)) )

B1- =OFFSET(AStart,MATCH(A1,AColumn,0)-1,1,COUNTIF(AColumn,A1),1)

C1- =OFFSET(BStart,MATCH(B1,BColumn,0)-1,1,COUNTIF(BColumn,B1),1)




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

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
From several workbooks onto one excel worksheet steve Excel Discussion (Misc queries) 6 December 1st 05 08:03 AM
Data Validation Kosta S Excel Worksheet Functions 2 July 17th 05 11:38 PM
data validation lists [email protected] Excel Discussion (Misc queries) 5 June 25th 05 07:44 PM
named range, data validation: list non-selected items, and new added items KR Excel Discussion (Misc queries) 1 June 24th 05 05:21 AM
Pulling data from 1 sheet to another Dave1155 Excel Worksheet Functions 1 January 12th 05 05:55 PM


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