Data Validation with multiple conditions

Serjape

New Member
Joined
Aug 12, 2022
Messages
15
Office Version
  1. 365
Platform
  1. Windows
I am needing to us data validation to exclude certain data being entered into cell such as " no ticket", "see ticket", "na", "N/A", etc .... I am trying to get users to enter ticket number and not be lazy
 

Excel Facts

Formula for Yesterday
Name Manager, New Name. Yesterday =TODAY()-1. OK. Then, use =YESTERDAY in any cell. Tomorrow could be =TODAY()+1.
Is the Ticket Number always an integer (no letters, spaces etc.) and if so, what are the lowest & highest possible numbers?
 
Upvote 0
The ticket number is always letter and numbers but never any spaces. I was trying to figure a way to accept anything BUT a certain list....
 
Upvote 0
Thank you for the examples. I'm afraid what you require is beyond my level of expertise, but hopefully someone else on this forum will be able to assist.
 
Upvote 0
Thanks Kevin.

It's basically data validation with multiple arguments for cell. Anyone?
 
Upvote 0
I was trying to figure a way to accept anything BUT a certain list....

Try:
Goto Data > Validation
Allow: Custom
Formula:
VBA Code:
=AND(A1<>{"no ticket", "see ticket", "na", "N/A"})

Another way:
you can put the list on a range then create a named range (refer to the range) then use the name in the formula.
Say the named range is "Exclude" then formula in data validation:
VBA Code:
=AND(A1<>Exclude)
 
Upvote 0

Forum statistics

Threads
1,214,649
Messages
6,120,728
Members
448,987
Latest member
marion_davis

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