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

I'm not sure if this is a VBA question or not, but here goes.
A workbook has a table on Sheet1 that consists of 2 columns and hundreds or
rows. Column A is Poject Name, and column B is Tasks.

On sheet 2 w have a timesheet template where employees must pick a project
and task to charge time to. We have data validation set up on both columns
with list pulldowns on each to make sure they pick a project & task that is
included in the list.

Can we narrow that Task pulldown based on their selection of project?

ie if someone picks project 12, then the Task pulldown will only include
tasks that are related to project 12. Possible?

Thanks in advance......

S


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 41
Default Data Validation

On Sheet1, Are your two columns independent of each other or are they row
wise pairs?

In other words, In column A you have projects. In Column B, do you have
Tasks or Tasks for the Project in Column A? Are there the Same task in
Column B for different projects?

If yes, then I think you have a fairly simple solution.

Have your Sheet1 sorted in order of Project. Tasks can be in any desired
order within the block for one project.

The pull down for Project will set the value in the Project field of the
form. Lets call this a range named: ProjectSelected.

On Sheet1, you have a range called ProjectFirstRow out of the way somewhere.
it has the formula =Match(Sheet1!$A:$A, ProjectSelected,0)

Define a Name called TaskBlock
=offset(Sheet1!$B$1, ProjectFirstRow-1,0, 30,1)
This will create a named range that starts column B at the first row of the
selected project and extends for 30 rows. You can change 30 to some other
number, like the maximum number of tasks for a project.

Make your form validation for Task refer to the named range TaskBlock

This simple technique at least starts the Task Pull down with the first task
listed for the project. The 30 rows can be made to change with the number
of Tasks in a project, but that is another level of sophistication. Maybe
you can do a CountIF() on the Project name.

Stephen Rasey
WiserWays, LLC
Houston, TX
http://excelsig.org



"Steph" wrote in message
...
I'm not sure if this is a VBA question or not, but here goes.
A workbook has a table on Sheet1 that consists of 2 columns and hundreds

or
rows. Column A is Poject Name, and column B is Tasks.

On sheet 2 w have a timesheet template where employees must pick a project
and task to charge time to. We have data validation set up on both

columns
with list pulldowns on each to make sure they pick a project & task that

is
included in the list.

Can we narrow that Task pulldown based on their selection of project?

ie if someone picks project 12, then the Task pulldown will only include
tasks that are related to project 12. Possible?

Thanks in advance......

S




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
custom data validation on cells with data validation values AKrobbins Excel Worksheet Functions 2 June 21st 11 04:20 PM
Validation Data using Validation Table cell range..... Dermot Excel Discussion (Misc queries) 16 January 5th 10 09:35 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 01:49 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"