Looking up a drop down list entry in a range defined by another drop down list

AlanClark

New Member
Joined
Jan 20, 2014
Messages
3
Hi,

I'm working on a spreadsheet that we use to record Supervisor safety contacts (when Supervisors have a "safety moment" with an employee). The contacts fall into different categories/topics (ie: PPE, egonomics, etc.).

Each department (packaging, production, etc.) has a different list of safety contact topics that they consider to be High Risk Topics.

What I'm trying to do is write a function that determines if the topic selected from the drop down list of available topics qualifies as a High Risk Topic, based on the Department selection (another drop down list).

Here is a mock-up of the relevant section:

Employee DepartmentTopicHigh Risk Topic?
Drop down list (A)Drop down list (B)Yes/No

<tbody>
</tbody>

I have lists of the high risk topics, sorted by department, located on a separate tab.

For example, these are some of the high risk topics for the Packaging department:
Packaging (department)
Ergonomics
Use of PPE

<tbody>
</tbody>

I get that I could use a COUNTIF or maybe a ISNUMBER(MATCH) function to look up the topic in a list of high risk topics. My issue is how do I change the lookup range based on the department selection.

Essentially I'm trying to write a function that says 'look for topic (B) in the range defined by department (A) and enter yes if there is a match or no if there isn't'.

Thanks for reading my post.
 

Excel Facts

How can you turn a range sideways?
Copy the range. Select a blank cell. Right-click, Paste Special, then choose Transpose.
I think you can do that with a formula like this...

=IF(COUNTIF(INDIRECT(A2),B2),"YES","NO")

Where the Employee Department (value in A2) is a NAMED RANGE and that named range contains the list of "High Risk" items for that department.

So you would have two named ranges (in your shortened example) of Ergonomics and Use of PPE.

They would look like this:
Ergonomics
Use_of_PPE

The under_score is needed to accommodate the spaces in the later.

Howard
 
Upvote 0

Forum statistics

Threads
1,221,527
Messages
6,160,342
Members
451,638
Latest member
MyFlower

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