Selective Data Validation

apgmin

Board Regular
Joined
Mar 1, 2010
Messages
150
Office Version
  1. 2013
Platform
  1. Windows
Consider the below table
In the first table, adjacent to the subject knowledge 1 name cell, I make the students to choose any from the list of subjects ( Physics... English ). this can be easily done through Data Validation list

the issue is in the next cell, i.e. adjacent to the subject knowledge 2 name cell, If I do the same validation, The student can choose for both the cells say English. This is the issue

I need a formula for the data validation in the second cell such that if the student chooses say the subject English in the first cell, then here he cannot choose English as an option

SUBJECT KNOWLEDGE 1 NAME
PHYSICS​
SUBJECT KNOWLEDGE 2 NAME
CHEMISTRY​
BIOLOGY​
GEOGRAPHY​
HISTORY​
ECONOMICS​
MATHS​
ENGLISH​

Please help
 

Excel Facts

Bring active cell back into view
Start at A1 and select to A9999 while writing a formula, you can't see A1 anymore. Press Ctrl+Backspace to bring active cell into view.
In D2 copy down up to D9
Excel Formula:
=IFERROR(INDEX($C$2:$C$9,AGGREGATE(15,6,ROW($C$2:$C$9)/ISERROR(MATCH($C$2:$C$9,$A$2,0)),ROWS($D$2:$D2))-ROW($C$1)),"")
In D1
Excel Formula:
="Sheet1!D2:D"&1+COUNTIF($D$2:$D$9,"?*")
For DV in A3
Data validation --> List
In Data apply this formula
Excel Formula:
=INDIRECT(D1)
Sheet1!D2:D8
PHYSICSPHYSICSCHEMISTRY
MATHSCHEMISTRYBIOLOGY
BIOLOGYGEOGRAPHY
GEOGRAPHYHISTORY
HISTORYECONOMICS
ECONOMICSMATHS
MATHSENGLISH
ENGLISH
 
Upvote 0

Forum statistics

Threads
1,221,310
Messages
6,159,176
Members
451,543
Latest member
cesymcox

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