Narrowed down data validation from previous selection

G Wiz

New Member
Joined
Jan 6, 2022
Messages
16
Office Version
  1. 365
Platform
  1. Windows
I am looking to use some predefined data to be able to select based on another cells selection.

So the document I have the following headings on columns.

StageTask TypeTask

I have under Stage data validation allowing me to select a Stage.

I have a tab for Task Type which lists all the Task Types across a single row, with the individual Tasks below running down the columns.

Back to my main tab Task Type has data validation to allow me select one of the Task Types from the other tab.

Essentially what I want to do is when selecting a particular Task Type, only the Tasks that are under the Task Type are selectable in the Task column.

Is this possible with a formula of some sort, or am I going to need to build the spreadsheet a bit differently?

Thanks
 

Excel Facts

Is there a shortcut key for strikethrough?
Ctrl+S is used for Save. Ctrl+5 is used for Strikethrough. Why Ctrl+5? When you use hashmarks to count |||| is 4, strike through to mean 5.
TaskTypes (TT1 - TT3)
And Tasks for each TaskType
Book3.xlsx
ABC
2TT1TT2TT3
3RunWakeBrush
4WalkEatFloss
5StandWorkWaterPik
Sheet1


Use the INDIRECT function for data validation lists for your tasks
the argument for the INDIRECT function is the value from the Cell that contains the selected Task Type

Note: when I created my Tasks Lists ("TT1", "TT2" and "TT3") the named range manager tacked on a "_" character at the end of the named range name. That is why I had to concatenate the underscore character to make my example work.

Book3.xlsx
ABC
10Select Task TypeTT1
11Select TaskRun
Sheet1
Cells with Data Validation
CellAllowCriteria
C10List=TaskTypes
C11List=INDIRECT(C10&"_")


So for your example
The data validation lists used could be
=StageList for the first column
=TaskTypes for the 2nd column
=INDIRECT(B2) - assuming Cell A2 = Stage; Cell B2 = TaskType; Cell = C2 (will be your tasks for the selected TaskType)
check your named range manager for the Excel assigned Name (it may include a trailing underscore character "_"
 
Last edited:
Upvote 0
Many thanks.

I'll try this later if I can work out what you've suggested!
 
Upvote 0
Stumped. I'm not really skilled enough to replicate this in my spreadsheet.
 
Upvote 0
Note: when I created my Tasks Lists ("TT1", "TT2" and "TT3") the named range manager tacked on a "_" character at the end of the named range name. That is why I had to concatenate the underscore character to make my example work.

Is this adding the "" to the title or every individual task?
 
Upvote 0
I've stripped my version down.

See below images.

Note, separate tabs for relevant data as I do not want this in the main sheet.

1691320219297.png



1691320320862.png


1691320350639.png


Note:

I am showing formulas on each tab, well the only one that has them is C2 in Time Report TEST.
 
Upvote 0
Is this adding the "" to the title or every individual task?
I don't think so, I just noticed that the underline character was tacked onto my 3 named lists. If you do not see it in the named list manager then you don't need it.
 
Upvote 0
I've stripped my version down.

See below images.

Note, separate tabs for relevant data as I do not want this in the main sheet.

View attachment 96636


View attachment 96637

View attachment 96638

Note:

I am showing formulas on each tab, well the only one that has them is C2 in Time Report TEST.
I have a dedicated worksheet for my Lists, Lookup Tables, etc. (and usually make all of these named ranges - see snapshot from the Named Range manager)

DynamicDataValidationLists.xlsm
ABCDE
1Stage 0TaskType_1TaskType_2TaskType_3
2Stage 1RunWakeBrush
3Stage 2WalkEatFloss
4Stage 3StandWorkWaterPik
5Stage 4.1
6Stage 4.2
7Stage 4.3
8Stage 5
9Stage 6/7
10Admin
11CPD
12
Lists


Here is my test worksheet
I hope this helps a bit more!

DynamicDataValidationLists.xlsm
ABC
1StageTask TypeTask
2Stage 3TaskType_3WaterPik
3Stage 0TaskType_1Stand
4Stage 6/7TaskType_2Work
5
Sheet3
Cells with Data Validation
CellAllowCriteria
A2:A4List=StagesList
B2:B4List=TaskTypes
C2:C4List=INDIRECT(INDIRECT("$B" & ROW()))


You need to create Data Validation Lists for the Stages, Task Types, and Tasks using the Data Validation menu


1691371562201.png

The =INDIRECT() formula will be the Data Validation List formula (not on a formula in a cell on your sheet)
If you plan to have multiple rows with different TaskTypes you will need a double INDIRECT function like
=INDIRECT(INDIRECT("$B" & ROW())) - we get the row and column address, use the inside INDIRECT to get the TaskType
the outer INDIRECT selects the Task list for the selected Task Type.

View attachment 96665

Here are the named lists that I created to test this functionality

1691371713908.png
 

Attachments

  • 1691372922674.png
    1691372922674.png
    13.7 KB · Views: 5
Upvote 0
Solution

Forum statistics

Threads
1,215,263
Messages
6,123,956
Members
449,135
Latest member
jcschafer209

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top