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

Why are there 1,048,576 rows in Excel?
The Excel team increased the size of the grid in 2007. There are 2^20 rows and 2^14 columns for a total of 17 billion cells.
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,223,885
Messages
6,175,187
Members
452,616
Latest member
intern444

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