is there any way to make data validation doesn't contain empty or duplicates items

Mussala

Board Regular
Joined
Sep 28, 2022
Messages
61
Office Version
  1. 2019
Platform
  1. Windows
Hi guys

I have three data validations in OUTPUT sheet in columns B,C,D , linked with columns B,C,D for INVOICE sheet like this

=INVOICE !$B$2:$B$100,=INVOICE !$C$2:$C$100,=INVOICE !$D$2:$D$100

what I look for when shows any data validation should not show any empty and any duplicates items , also I want populate the items into data validation dynamically without increase the range manually when I need add more items more than row 100 for each column .

thanks
 

Excel Facts

Can you sort left to right?
To sort left-to-right, use the Sort dialog box. Click Options. Choose "Sort left to right"
If you're willing to use an add-in, you can try a free Excel add-in called "Search deList". You'll get a unique, sorted & non-blank data validation list & and it's also searchable.
You can find it here:
 
Upvote 1
Solution
@Akuini
thank you ,but this step
  1. In any cell that has data validation, pressing ALT+RIGHT will open a Userform with a combobox. doesn't work for me , I'm not sure if my laptop needs different keys or there is mistake I make it !
 
Upvote 0
@Akuini
thank you ,but this step
  1. In any cell that has data validation, pressing ALT+RIGHT will open a Userform with a combobox. doesn't work for me , I'm not sure if my laptop needs different keys or there is mistake I make it !
Make sure the file is not blocked.
Try this:

Please check this article on how to deal with this problem:

OR

In windows explorer: Right-click the file, and select Properties from the menu. On the General tab of the file properties dialog, place a check mark for the Unblock option.
 
Upvote 0
thanks for the article and I follow all of the steps and made sure is added, but unfortunately doesn't show anything !:rolleyes:
11.PNG
 
Upvote 0
thanks for the article and I follow all of the steps and made sure is added, but unfortunately doesn't show anything !:rolleyes:
A user reported similar problem, and I still don't know what caused it.
Could you try activating the combobox by double-clicking the cell?

Here’s how:
Copy-paste this code into Thisworkbook code window of your workbook:

VBA Code:
Private Sub Workbook_SheetBeforeDoubleClick(ByVal Sh As Object, ByVal Target As Range, Cancel As Boolean)
If TypeName(Selection) = "Range" Then
    Dim v
    On Error Resume Next
        v = ActiveCell.Validation.Type
    On Error GoTo 0
    'if activecell has data validation type 3
    'run "Search deList" add-in by doubke-clicking a cell
    If v = 3 Then Cancel = True: Application.Run ("toShow__dheeDAV")
End If
End Sub


Save, close then reopen your workbook.
Now try double-clicking any cell that has data validation (with List type), it should open the combobox.
If it does open the combobox then the problem probably about the keyboard shortcut which is "%{RIGHT}" or Alt+Right.
 
Upvote 0

Forum statistics

Threads
1,215,375
Messages
6,124,592
Members
449,174
Latest member
chandan4057

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