Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Annie
 
Posts: n/a
Default data validation - Drop Down Lists

I have set up a drop down in my first column lsiting 10 company departments.
In the second column I would like a drop down showing the employees for the
specific department selected in the first column.

I have looked at the info on the Contextures site, and I am certain I need
to do a Dynamic list since employees can change, but I I am still confused.
I would appreciate any help.
  #2   Report Post  
GallanH
 
Posts: n/a
Default

create a single column look up table for the company departments, and a
double column table for employees, showing the department in the first column
and the employees names in the second giving each table a name. To select the
department; using data validation, select from allow 'list' and in the source
type =department_list_name. For your second look up, again select list and in
the source, type =(INDIRECT(VLOOKUP(x,employyee_list_name,2,FALSE)) where x
is the cell reference of the result of the department lookup. This will then
only give the employees applicable to the selected department. The employee
list can be changed whenever the need arises. Hope this helps.

"Annie" wrote:

I have set up a drop down in my first column lsiting 10 company departments.
In the second column I would like a drop down showing the employees for the
specific department selected in the first column.

I have looked at the info on the Contextures site, and I am certain I need
to do a Dynamic list since employees can change, but I I am still confused.
I would appreciate any help.

  #3   Report Post  
Debra Dalgleish
 
Posts: n/a
Default

Did you try the instructions for dynamic lists?

http://www.contextures.com/xlDataVal02.html#Dynamic

If so, where are you getting confused?


Annie wrote:
I have set up a drop down in my first column lsiting 10 company departments.
In the second column I would like a drop down showing the employees for the
specific department selected in the first column.

I have looked at the info on the Contextures site, and I am certain I need
to do a Dynamic list since employees can change, but I I am still confused.
I would appreciate any help.



--
Debra Dalgleish
Excel FAQ, Tips & Book List
http://www.contextures.com/tiptech.html

  #4   Report Post  
Annie
 
Posts: n/a
Default

Yes, I have followed the infor for Dynamic Lists. I have my first drop down
for Departments (A1:A10) and I have named several columns (F,J,H,I) with
employees listed. I do not think I am entering the formula correctly.


"Debra Dalgleish" wrote:

Did you try the instructions for dynamic lists?

http://www.contextures.com/xlDataVal02.html#Dynamic

If so, where are you getting confused?


Annie wrote:
I have set up a drop down in my first column lsiting 10 company departments.
In the second column I would like a drop down showing the employees for the
specific department selected in the first column.

I have looked at the info on the Contextures site, and I am certain I need
to do a Dynamic list since employees can change, but I I am still confused.
I would appreciate any help.



--
Debra Dalgleish
Excel FAQ, Tips & Book List
http://www.contextures.com/tiptech.html


  #5   Report Post  
Debra Dalgleish
 
Posts: n/a
Default

The first cell in each column of employee names should be named for the
department. For example, cell F1 might be named "Accounting"

Each column of employee names should be named Dept&Col. For example,
column F would be AccountingCol

Then, in the dependent validation, you refer to the cell with the
department name (cell E2 in this example):

=OFFSET(INDIRECT($E2),0,0,COUNTA(INDIRECT($E2&"Col ")),1)

If your deparment names contain spaces, or some other characters, you'd
have to adjust the names and formulas.

Annie wrote:
Yes, I have followed the infor for Dynamic Lists. I have my first drop down
for Departments (A1:A10) and I have named several columns (F,J,H,I) with
employees listed. I do not think I am entering the formula correctly.


"Debra Dalgleish" wrote:


Did you try the instructions for dynamic lists?

http://www.contextures.com/xlDataVal02.html#Dynamic

If so, where are you getting confused?


Annie wrote:

I have set up a drop down in my first column lsiting 10 company departments.
In the second column I would like a drop down showing the employees for the
specific department selected in the first column.

I have looked at the info on the Contextures site, and I am certain I need
to do a Dynamic list since employees can change, but I I am still confused.
I would appreciate any help.



--
Debra Dalgleish
Excel FAQ, Tips & Book List
http://www.contextures.com/tiptech.html





--
Debra Dalgleish
Excel FAQ, Tips & Book List
http://www.contextures.com/tiptech.html



  #6   Report Post  
Annie
 
Posts: n/a
Default

Thank You for the help. I am still doing something wrong.

Column A has the drop-down for my departments.

I entered employee names in columns F, G, H.
I named the first line of each column the same as their department in the
drop down list and I named the columns Accountingcol, Transportationcol,
Purchasingcol.

Column B is where I want to see the drop down for my employee lists.
(highlight column B, DataValadationListRefer to:

=OFFSET(INDIRECT(
AT THIS POINT I AM NOT CERTAIN IF I SHOULD CLICK ON COLUMN A OR CLICK ON
CELL A-1 OF THE DEPARTMENT DROP DOWN LIST?

=OFFSET(INDIRECT(???),0,0,COUNTA(INDIRECT(
AT THIS POINT, I AM NOT CERTAIN WHICH FIELD TO CLICK?

&"COL"
I AM NOT CERTAIN WHAT TO ENTER AT THIS POINT. (NOTHING I ENTER IS CORRECT)

THANKS AGAIN FOR YOUR HELP!


"Debra Dalgleish" wrote:

The first cell in each column of employee names should be named for the
department. For example, cell F1 might be named "Accounting"

Each column of employee names should be named Dept&Col. For example,
column F would be AccountingCol

Then, in the dependent validation, you refer to the cell with the
department name (cell E2 in this example):

=OFFSET(INDIRECT($E2),0,0,COUNTA(INDIRECT($E2&"Col ")),1)

If your deparment names contain spaces, or some other characters, you'd
have to adjust the names and formulas.

Annie wrote:
Yes, I have followed the infor for Dynamic Lists. I have my first drop down
for Departments (A1:A10) and I have named several columns (F,J,H,I) with
employees listed. I do not think I am entering the formula correctly.


"Debra Dalgleish" wrote:


Did you try the instructions for dynamic lists?

http://www.contextures.com/xlDataVal02.html#Dynamic

If so, where are you getting confused?


Annie wrote:

I have set up a drop down in my first column lsiting 10 company departments.
In the second column I would like a drop down showing the employees for the
specific department selected in the first column.

I have looked at the info on the Contextures site, and I am certain I need
to do a Dynamic list since employees can change, but I I am still confused.
I would appreciate any help.


--
Debra Dalgleish
Excel FAQ, Tips & Book List
http://www.contextures.com/tiptech.html





--
Debra Dalgleish
Excel FAQ, Tips & Book List
http://www.contextures.com/tiptech.html


  #7   Report Post  
Debra Dalgleish
 
Posts: n/a
Default

In both places in your formula, you should refer to cell A1, which
contains the department name.

Annie wrote:
Thank You for the help. I am still doing something wrong.

Column A has the drop-down for my departments.

I entered employee names in columns F, G, H.
I named the first line of each column the same as their department in the
drop down list and I named the columns Accountingcol, Transportationcol,
Purchasingcol.

Column B is where I want to see the drop down for my employee lists.
(highlight column B, DataValadationListRefer to:

=OFFSET(INDIRECT(
AT THIS POINT I AM NOT CERTAIN IF I SHOULD CLICK ON COLUMN A OR CLICK ON
CELL A-1 OF THE DEPARTMENT DROP DOWN LIST?

=OFFSET(INDIRECT(???),0,0,COUNTA(INDIRECT(
AT THIS POINT, I AM NOT CERTAIN WHICH FIELD TO CLICK?

&"COL"
I AM NOT CERTAIN WHAT TO ENTER AT THIS POINT. (NOTHING I ENTER IS CORRECT)

THANKS AGAIN FOR YOUR HELP!


"Debra Dalgleish" wrote:


The first cell in each column of employee names should be named for the
department. For example, cell F1 might be named "Accounting"

Each column of employee names should be named Dept&Col. For example,
column F would be AccountingCol

Then, in the dependent validation, you refer to the cell with the
department name (cell E2 in this example):

=OFFSET(INDIRECT($E2),0,0,COUNTA(INDIRECT($E2&"Col ")),1)

If your deparment names contain spaces, or some other characters, you'd
have to adjust the names and formulas.

Annie wrote:

Yes, I have followed the infor for Dynamic Lists. I have my first drop down
for Departments (A1:A10) and I have named several columns (F,J,H,I) with
employees listed. I do not think I am entering the formula correctly.


"Debra Dalgleish" wrote:



Did you try the instructions for dynamic lists?

http://www.contextures.com/xlDataVal02.html#Dynamic

If so, where are you getting confused?


Annie wrote:


I have set up a drop down in my first column lsiting 10 company departments.
In the second column I would like a drop down showing the employees for the
specific department selected in the first column.

I have looked at the info on the Contextures site, and I am certain I need
to do a Dynamic list since employees can change, but I I am still confused.
I would appreciate any help.


--
Debra Dalgleish
Excel FAQ, Tips & Book List
http://www.contextures.com/tiptech.html




--
Debra Dalgleish
Excel FAQ, Tips & Book List
http://www.contextures.com/tiptech.html





--
Debra Dalgleish
Excel FAQ, Tips & Book List
http://www.contextures.com/tiptech.html

  #8   Report Post  
Annie
 
Posts: n/a
Default

Thank you for being so patient and helpful! My formula is still not correct -
I think iI may be the "Col" info I am entering. rong.

Column A - Drop Down allowing you to select the Department Name (A1 would be
the cell to use in the formula)

Column F - Named AccountingCol (F1 Accounting)
Column G - Named PurchasingCol (G1 Purchasing)
Column H - Named TransportaionCol (H1 Transportation)

=OFFSEET(INDIRECT(A1),0,0,COUNTA(INDIRECT(A1&?????

Am I entering this correctly to this point? What do I enter to indicate the
Columns?

Again, Thank You for being so helpful & patient!

Annie


"Debra Dalgleish" wrote:

In both places in your formula, you should refer to cell A1, which
contains the department name.

Annie wrote:
Thank You for the help. I am still doing something wrong.

Column A has the drop-down for my departments.

I entered employee names in columns F, G, H.
I named the first line of each column the same as their department in the
drop down list and I named the columns Accountingcol, Transportationcol,
Purchasingcol.

Column B is where I want to see the drop down for my employee lists.
(highlight column B, DataValadationListRefer to:

=OFFSET(INDIRECT(
AT THIS POINT I AM NOT CERTAIN IF I SHOULD CLICK ON COLUMN A OR CLICK ON
CELL A-1 OF THE DEPARTMENT DROP DOWN LIST?

=OFFSET(INDIRECT(???),0,0,COUNTA(INDIRECT(
AT THIS POINT, I AM NOT CERTAIN WHICH FIELD TO CLICK?

&"COL"
I AM NOT CERTAIN WHAT TO ENTER AT THIS POINT. (NOTHING I ENTER IS CORRECT)

THANKS AGAIN FOR YOUR HELP!


"Debra Dalgleish" wrote:


The first cell in each column of employee names should be named for the
department. For example, cell F1 might be named "Accounting"

Each column of employee names should be named Dept&Col. For example,
column F would be AccountingCol

Then, in the dependent validation, you refer to the cell with the
department name (cell E2 in this example):

=OFFSET(INDIRECT($E2),0,0,COUNTA(INDIRECT($E2&"Col ")),1)

If your deparment names contain spaces, or some other characters, you'd
have to adjust the names and formulas.

Annie wrote:

Yes, I have followed the infor for Dynamic Lists. I have my first drop down
for Departments (A1:A10) and I have named several columns (F,J,H,I) with
employees listed. I do not think I am entering the formula correctly.


"Debra Dalgleish" wrote:



Did you try the instructions for dynamic lists?

http://www.contextures.com/xlDataVal02.html#Dynamic

If so, where are you getting confused?


Annie wrote:


I have set up a drop down in my first column lsiting 10 company departments.
In the second column I would like a drop down showing the employees for the
specific department selected in the first column.

I have looked at the info on the Contextures site, and I am certain I need
to do a Dynamic list since employees can change, but I I am still confused.
I would appreciate any help.


--
Debra Dalgleish
Excel FAQ, Tips & Book List
http://www.contextures.com/tiptech.html




--
Debra Dalgleish
Excel FAQ, Tips & Book List
http://www.contextures.com/tiptech.html





--
Debra Dalgleish
Excel FAQ, Tips & Book List
http://www.contextures.com/tiptech.html


  #9   Report Post  
Debra Dalgleish
 
Posts: n/a
Default

You're welcome, and thanks for providing more information. Based on what
you've described, the formula would be:

=OFFSET(INDIRECT($A1),0,0,COUNTA(INDIRECT($A1&"Col ")),1)

If you select Accounting from the dropdown in cell A1, the formula above
would be interpreted as:

=OFFSET(Accounting,0,0,COUNTA(AccountingCol),1)

Annie wrote:
Thank you for being so patient and helpful! My formula is still not correct -
I think iI may be the "Col" info I am entering. rong.

Column A - Drop Down allowing you to select the Department Name (A1 would be
the cell to use in the formula)

Column F - Named AccountingCol (F1 Accounting)
Column G - Named PurchasingCol (G1 Purchasing)
Column H - Named TransportaionCol (H1 Transportation)

=OFFSEET(INDIRECT(A1),0,0,COUNTA(INDIRECT(A1&?????

Am I entering this correctly to this point? What do I enter to indicate the
Columns?

Again, Thank You for being so helpful & patient!

Annie


"Debra Dalgleish" wrote:


In both places in your formula, you should refer to cell A1, which
contains the department name.

Annie wrote:

Thank You for the help. I am still doing something wrong.

Column A has the drop-down for my departments.

I entered employee names in columns F, G, H.
I named the first line of each column the same as their department in the
drop down list and I named the columns Accountingcol, Transportationcol,
Purchasingcol.

Column B is where I want to see the drop down for my employee lists.
(highlight column B, DataValadationListRefer to:

=OFFSET(INDIRECT(
AT THIS POINT I AM NOT CERTAIN IF I SHOULD CLICK ON COLUMN A OR CLICK ON
CELL A-1 OF THE DEPARTMENT DROP DOWN LIST?

=OFFSET(INDIRECT(???),0,0,COUNTA(INDIRECT(
AT THIS POINT, I AM NOT CERTAIN WHICH FIELD TO CLICK?

&"COL"
I AM NOT CERTAIN WHAT TO ENTER AT THIS POINT. (NOTHING I ENTER IS CORRECT)

THANKS AGAIN FOR YOUR HELP!


"Debra Dalgleish" wrote:



The first cell in each column of employee names should be named for the
department. For example, cell F1 might be named "Accounting"

Each column of employee names should be named Dept&Col. For example,
column F would be AccountingCol

Then, in the dependent validation, you refer to the cell with the
department name (cell E2 in this example):

=OFFSET(INDIRECT($E2),0,0,COUNTA(INDIRECT($E2&"Col ")),1)

If your deparment names contain spaces, or some other characters, you'd
have to adjust the names and formulas.

Annie wrote:


Yes, I have followed the infor for Dynamic Lists. I have my first drop down
for Departments (A1:A10) and I have named several columns (F,J,H,I) with
employees listed. I do not think I am entering the formula correctly.


"Debra Dalgleish" wrote:




Did you try the instructions for dynamic lists?

http://www.contextures.com/xlDataVal02.html#Dynamic

If so, where are you getting confused?


Annie wrote:



I have set up a drop down in my first column lsiting 10 company departments.
In the second column I would like a drop down showing the employees for the
specific department selected in the first column.

I have looked at the info on the Contextures site, and I am certain I need
to do a Dynamic list since employees can change, but I I am still confused.
I would appreciate any help.


--
Debra Dalgleish
Excel FAQ, Tips & Book List
http://www.contextures.com/tiptech.html



--
Debra Dalgleish
Excel FAQ, Tips & Book List
http://www.contextures.com/tiptech.html




--
Debra Dalgleish
Excel FAQ, Tips & Book List
http://www.contextures.com/tiptech.html





--
Debra Dalgleish
Excel FAQ, Tips & Book List
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
Printing data validation scenarios SJC Excel Worksheet Functions 14 July 24th 05 12:43 AM
6 Data Validation lists depending on 1 cell value beel Excel Discussion (Misc queries) 9 June 10th 05 07:34 PM
Error Message with Data Validation Chet Hurd Excel Discussion (Misc queries) 2 June 9th 05 08:44 PM
Data Validation - Create dependent lists Little pete Excel Discussion (Misc queries) 1 May 23rd 05 12:04 PM
how do I add data validation dropdown lists to a Form SteveD.IFlora Excel Worksheet Functions 3 January 21st 05 04:48 PM


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