data validation rule? For Google Sheets.

jesskidn

New Member
Joined
Feb 27, 2023
Messages
5
Platform
  1. MacOS
Is there a way to create a rule on the data validation so that based on the the option chosen from the dropdown in the "division" column, only one option is available to choose in the "division code" column?
Screenshot 2023-02-27 at 8.13.03 PM.png
 

Excel Facts

What does custom number format of ;;; mean?
Three semi-colons will hide the value in the cell. Although most people use white font instead.
Hi,
You request is pretty much standard ... dependent drop-down lists
e.g. see :
 
Upvote 0
What version of Excel are you using?
I suggest that you update your Account details (or click your user name at the top right of the forum) so helpers always know what Excel version(s) & platform(s) you are using as the best solution often varies by version. (Don’t forget to scroll down & ‘Save’)

If you only want one a single option for the Division code, why not use a formula rather than data validation?
 
Upvote 0
I suggest using Excel Tables which will make things a lot easier:
Book1
ABCDE
1Table1Divisions
2DivisionCodeDivisionsCode
3New JerseyNJMNew YorkNYM
4DelewareDEMNew JerseyNJM
5New JerseyNJMDelewareDEM
6 
7 
8 
9 
10 
11 
Sheet1
Cell Formulas
RangeFormula
B3:B11B3=XLOOKUP([@Division],Divisions[Divisions],Divisions[Code],"")
Cells with Data Validation
CellAllowCriteria
A3:A11List=$D$3:$D$5

As Table1 grows, the Data Validation list will be replicated in new rows, as will the XLOOKUP formula. As the Divisions table grows, so will the Data Validation list. All automatically.
 
Upvote 0
Solution
thank you all for the replies!

NOTE: I am using google sheets, and i have updated my profile "about me section" as that isnt an option to choose in the list provided.
 
Upvote 0
thank you all for the replies!

NOTE: I am using google sheets, and i have updated my profile "about me section" as that isnt an option to choose in the list provided.
I have very little experience with Sheets, but I imported the tables above, and the Data Validation and XLOOKUP both translated. Unfortunately Sheets doesn't appear (at first glance) to provide the utility of an Excel Table. That is the things that happen automatically with Excel Tables doesn't happen automatically with Sheets. However, if your source Data Validation list is static, and you have an idea of how much data (how many rows) you'll need, it looks like it could be set up well.
 
Upvote 0
I'd be happy to use a formula, I was already using data validation (which is when i ran into the issue of needing a dependent list). Do you have a suggestion of an easier / more efficient way to do this?
 
Upvote 0
I'd be happy to use a formula, I was already using data validation (which is when i ran into the issue of needing a dependent list). Do you have a suggestion of an easier / more efficient way to do this?
Not using Sheets.
 
Upvote 0
You can create a "lookup table" & then use Vlookup (or similar) to get the correct value.
 
Upvote 0

Forum statistics

Threads
1,223,937
Messages
6,175,518
Members
452,650
Latest member
Tinfish

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