VLOOKUP and Data Validation in same cell

fosterlib1

New Member
Joined
Apr 4, 2014
Messages
2
Hello!

I have a data validation list in cell A2 with four options. They correspond with one of four responses and are presented with a VLOOKUP function in cell B2. Although choosing one of the four options in cell A2 provide a "preferred" VLOOKUP response in cell B2, this response is not mandatory. I would then also like to allow the end user to choose one of the other three responses if they choose in cell B2. The problem I am running into is that I can't have both a VLOOKUP function and data validation list in cell B2.

Does anyone have a nice work around for this?

I would be comfortable with both a VBA or non VBA solution.

Thank you in advance.
 

Excel Facts

Select a hidden cell
Somehide hide payroll data in column G? Press F5. Type G1. Enter. Look in formula bar while you arrow down through G.
You're not going to able to leave a formula in-tact in a cell and write over it with another choice. I would suggest simply using C2 as a "final decision" of sorts.
 
Upvote 0
Do you basically want the drop down options in cell B2 to be predicated upon the selection in A2? If so, this can be done using some named ranges for the data validation.

A few questions to determine how hairy this would need to get:

  1. How many options are there in the Data Validation for A2?
  2. Will the drop down options in A2 need to grow (add more options at some point in the future)
  3. Will the number of options for each A2 selection (the options in B2 that are predicated on A2) need to grow/change, or are these static?
 
Upvote 0

Forum statistics

Threads
1,214,415
Messages
6,119,382
Members
448,889
Latest member
TS_711

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