Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1
Default help with data validation

I am making a sheet where for example 'the cell A1 has a data validation
list' and depending on the selection in A1 cell the data validation list in
cell B1 will change.
for example:-cell A1 contains the list of team leaders depending on the
selection of the team leader from the list in A1 i should get a list of his
team members in cell B1.

Is that possible using data validation or do i need to use macros to get
that functionality. can anyone help me with that.
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 180
Default help with data validation

This is possible without using a macro. You will have to use INDIRECT and IF
of for this

here's how this will work
Assume that you have col A, B and C for 3 different teamleaders
in cell D1 you have TL name
in cell E1 you have team member drop down
now, for on the validation screen for cell E1 type =INDIRECT(Z1)
in cell Z1 type in IF formula such as =IF(D1="abc","A1:A20","B1:B20")
change the IF formula as per your need.

How does this work???

Depending on TL name selected a range constant will be stored in cell Z1
which represnts the list of team members
For the drop down validation INDIRECT will repturn this cell address and the
values in A1:A20 will be used.

hope this helps!!!

--
Pranav Vaidya
VBA Developer
PN, MH-India
If you think my answer is useful, please rate this post as an ANSWER!!


"gabbar singh" wrote:

I am making a sheet where for example 'the cell A1 has a data validation
list' and depending on the selection in A1 cell the data validation list in
cell B1 will change.
for example:-cell A1 contains the list of team leaders depending on the
selection of the team leader from the list in A1 i should get a list of his
team members in cell B1.

Is that possible using data validation or do i need to use macros to get
that functionality. can anyone help me with that.

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1
Default help with data validation

thanks prannav. that helped. also found an option to use named lists for the
same issue.
but if i use named lists with the indirect function i cannot use spaces in
team leader names. i need to specify each team leaders members in each team
leadrs group as a named list by team leaders name.

is there a work around to this.

"Pranav Vaidya" wrote:

This is possible without using a macro. You will have to use INDIRECT and IF
of for this

here's how this will work
Assume that you have col A, B and C for 3 different teamleaders
in cell D1 you have TL name
in cell E1 you have team member drop down
now, for on the validation screen for cell E1 type =INDIRECT(Z1)
in cell Z1 type in IF formula such as =IF(D1="abc","A1:A20","B1:B20")
change the IF formula as per your need.

How does this work???

Depending on TL name selected a range constant will be stored in cell Z1
which represnts the list of team members
For the drop down validation INDIRECT will repturn this cell address and the
values in A1:A20 will be used.

hope this helps!!!

--
Pranav Vaidya
VBA Developer
PN, MH-India
If you think my answer is useful, please rate this post as an ANSWER!!


"gabbar singh" wrote:

I am making a sheet where for example 'the cell A1 has a data validation
list' and depending on the selection in A1 cell the data validation list in
cell B1 will change.
for example:-cell A1 contains the list of team leaders depending on the
selection of the team leader from the list in A1 i should get a list of his
team members in cell B1.

Is that possible using data validation or do i need to use macros to get
that functionality. can anyone help me with that.

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
Validation Data using Validation Table cell range..... Dermot Excel Discussion (Misc queries) 16 January 5th 10 09:35 PM
Data Validation Update Validation Selection PCreighton Excel Worksheet Functions 3 September 11th 07 03:32 PM
data validation invalid in dynamic validation list ilia Excel Discussion (Misc queries) 0 November 7th 06 12:54 PM
data validation invalid in dynamic validation list ilia Excel Worksheet Functions 0 November 7th 06 12:54 PM
Data validation with validation lists and combo boxs Keith Excel Discussion (Misc queries) 1 October 12th 06 11:08 AM


All times are GMT +1. The time now is 12:48 PM.

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"