Data Validation List or text

Tempfor

New Member
Joined
Jun 19, 2015
Messages
2
First Post -

I'm trying to fill Column C with a disposition for a request.

Right now, if the ship date is more than 45 days from today, column B supplies "N". If B is "N", I'd like to populate C with "Decline". If column B is "Y", provide a list for a table. Data Validation doesn't seem to like it.


Data Validation is =if(B2="N","Decline",List)

Ship DateWithin 45 Days?Accept/Decline
1/1/1988N
6/19/15Y

<tbody>
</tbody>


Thanks for your ideas!
 

Excel Facts

Repeat Last Command
Pressing F4 adds dollar signs when editing a formula. When not editing, F4 repeats last command.
ok, but you cant put a list in a cell. What do you want in the cell? A hyperlink to the list?
 
Upvote 0
First Post -

I'm trying to fill Column C with a disposition for a request.

Right now, if the ship date is more than 45 days from today, column B supplies "N". If B is "N", I'd like to populate C with "Decline". If column B is "Y", provide a list for a table. Data Validation doesn't seem to like it.


Data Validation is =if(B2="N","Decline",List)

Ship DateWithin 45 Days?Accept/Decline
1/1/1988N
6/19/15Y

<tbody>
</tbody>


Thanks for your ideas!
Hi Tempfor, I don't know of a way to make it happen automatically, but it is possible to build data validation based on either the Y or N being in column B.

First, somewhere you need to create a table with the possible values for both Y and N as my example below:


Excel 2010
AB
1YN
2List1Decline
3List2
4List3
5List4
Sheet2




With the list in place, (using my example as reference), select A2:A5 then in the name box to the left of the formula bar type in Y and press enter.
Next select B2, then in the name box to the left of the formula bar type in N and press enter.

You now have 2 validation lists, Y and N.

Now go you column C, select Data Validation, select List, then enter the following formula:

=IF($B8="N",N,IF($B8="Y",Y,""))

This can be drag-filled down to copy the validation rule down the column.

What it basically does is

IF Column B = "N" display the "N" data validation list (only has decline as an option)
IF Column B = "Y" display the "Y" data validation list (whatever options you put in your Y list)
IF Column B = "" no options are available


Excel 2010
BC
7Your Column BOutcome
8
9NDecline
10YList3
11YList4
12NDecline
Sheet2


I do not know of a way to make this automated as you cannot have formulas AND data validation lists in the same cells (as far as I am aware)
 
Last edited:
Upvote 0
ok, but you cant put a list in a cell. What do you want in the cell? A hyperlink to the list?

Sorry, "List" actually is an indirect reference to a list of possible options.

What I'm trying to do is a bit like the solution given to the first example here, but instead of "partial-list-range", I'm looking to provide "Decline" automatically.

Thanks.
 
Upvote 0

Forum statistics

Threads
1,216,028
Messages
6,128,390
Members
449,445
Latest member
JJFabEngineering

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