More than One Data Validation In One Cell

adxox

New Member
Joined
Oct 25, 2017
Messages
4
Is there a way to have more than one Data Validation in one cell.

I have a drop down menu on the cell with about 20-30 names.

Now i want a error to pop up if they do not select who they are.
 

Excel Facts

What is the fastest way to copy a formula?
If A2:A50000 contain data. Enter a formula in B2. Select B2. Double-click the Fill Handle and Excel will shoot the formula down to B50000.
I'm not sure that you can force a user to select a non-blank value from a drop-down. Perhaps an alternative would be to set up conditional formatting on the cell, so highlight it if is blank, to draw attention to the fact they need to fill it in?
 
Upvote 0
Maybe this can work?

The Macro forces the user to put a Value in C4 before doing anything else.

Private Sub Worksheet_SelectionChange(ByVal Target As Range)

If Target.Address > [c4].Address Then
If IsEmpty([c4]) Then
MsgBox "Cell C4 Must Have A Value." _
, vbCritical, "There Is A Problem!"
[c4].Select
End If
End If

End Sub
Credit goes to Jaafar Tribak here in the forum.
Forum post:
https://www.mrexcel.com/forum/excel...ng-data-validation-post187607.html#post187607
 
Upvote 0

Forum statistics

Threads
1,224,823
Messages
6,181,177
Members
453,021
Latest member
Justyna P

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