Custom data validation formula

sdc83

New Member
Joined
Nov 26, 2020
Messages
14
Office Version
  1. 365
Platform
  1. Windows
I'm trying to set a custom formula in data validation to only allow the words "clean" "residues" or also to allow any number in a specific column. I'm still quite new to excel and struggling to find the correct formula to make it work with both specific words and also numbers. I'm ready to pull my hair out because I think it should be easy but cant quite figure it out.
 

Excel Facts

What is the shortcut key for Format Selection?
Ctrl+1 (the number one) will open the Format dialog for whatever is selected.
Welcome to the MrExcel board!

Say for D2, try
Excel Formula:
=OR(D2="clean",D2="residues",ISNUMBER(D2))
 
Upvote 0
Welcome to the MrExcel board!

Say for D2, try
Excel Formula:
=OR(D2="clean",D2="residues",ISNUMBER(D2))
Thanks for the fast reply Peter. still having trouble, sorry to be a pest. i need the data validation to be applied from cell J5 to J300 if thats possible. still cant get it to work.
 
Upvote 0
applied from cell J5 to J300 if thats possible. still cant get it to work.
Remove any existing DV from that range
Select J5:J300 so that J5 is the active cell
Apply the DV custom formula =OR(J5="clean",J5="residues",ISNUMBER(J5))
 
Upvote 0
Remove any existing DV from that range
Select J5:J300 so that J5 is the active cell
Apply the DV custom formula =OR(J5="clean",J5="residues",ISNUMBER(J5))
Seems so obvious now you say it. That’s worked perfectly. Thanks very much for the help that’s brilliant.
 
Upvote 0

Forum statistics

Threads
1,215,409
Messages
6,124,730
Members
449,185
Latest member
ekrause77

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