Select drop down list based on cell result

monkeyharris

Active Member
Joined
Jan 20, 2008
Messages
358
Office Version
  1. 365
Platform
  1. Windows
Not sure how to explain what i need but here goes.
In cell F6, i want it to look at what's in cell F5, if F5 says "SMAT", i want F6 to have a drop list showing cells U2-U6, if F5 says "Hazard", i want F5 to have a drop down list showing cells V2-V6, if F5 says "Near Miss", i F6 to have a drop down list showing cells W2-W6.

Is this possible??
 

Excel Facts

How to change case of text in Excel?
Use =UPPER() for upper case, =LOWER() for lower case, and =PROPER() for proper case. PROPER won't capitalize second c in Mccartney
Yes, if you use a helper column and use that as your data validation source. In this case, I used column X to hold a lookup formula to pick which column U:W should be the source of the dropdown in F6.

Book1
FGHIJKLMNOPQRSTUVWX
1SMATHAZARDNEAR MISS
2U1V1W1W1
3U2V2W2W2
4U3V3W3W3
5NEAR MISSU4V4W4W4
6W3U5V5W5W5
Sheet11
Cell Formulas
RangeFormula
X2:X6X2=XLOOKUP($F$5,$U$1:$W$1,$U$2:$W$6,"",0)
Dynamic array formulas.
Cells with Data Validation
CellAllowCriteria
F6List=$X$2:$X$6
 
Upvote 0
Solution
OK, so i've made a mistake. I was supposed to have the formula so it could be copied down in the column. What you sent worked for that one cell only.
This is what i meant to ask for.
User enters either SMAT, HAZARD or NEAR MISS in E6, E7, E8 and so on in column E. I want the corresponding cells from F6, F7, F8 and so on to lookup the bottom table. So if SMAT is in E6, F6 should have a dropdown list for the user to select: Safety, Environment, Observation, Hazard, Near Miss


2024 - Branch Monthly EHS Reports.xlsx
EF
5TypeClassification
6SMAT
7Hazard
8SMAT
Branch Reporting Log
Cells with Data Validation
CellAllowCriteria
E6:E300List=$AF$3:$AF$5
F6:F8List=$AM$2:$AM$10


2024 - Branch Monthly EHS Reports.xlsx
AJAKAL
1SMATHAZARDNEAR MISS
2SafetyContact with moving machineryContact with moving machinery
3EnvironmentFall from heightFall from height
4ObservationInvolving FLTInvolving FLT
5HazardManual handlingManual handling
6Near MissSlips, trips or fallsSlips, trips or falls
7 Struck against stationary objectStruck against stationary object
8 Struck by flying objects/debrisStruck by flying objects/debris
9 Struck by moving vehicle (not FLT)Struck by moving vehicle (not FLT)
10 OtherOther
Branch Reporting Log
 
Upvote 0
So in F6, add your data validation using the lookup formula as the source.

Excel Formula:
=XLOOKUP($F6,$AJ$1:$AL$1,$AJ$2:$AL$10,"",0)

Then you can drag and copy the data validation down as far as you need.
 
Upvote 0

Forum statistics

Threads
1,215,096
Messages
6,123,074
Members
449,093
Latest member
ripvw

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