Validation for list of different numbers

ehs

New Member
Joined
Feb 13, 2003
Messages
15
I need to validate data entry in a column where the valid entries are number from 0 to 39 and "00" (text 00). There are 6 of these columns beside each other where the user must enter the data on each sheet. The column is about 72 rows long, and there are 12 monthly sheet tabs. Thanks in advance.
 

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"
I would use "data validation". Select the cell that you want validated, go to data, validation. Change the allow to list, enter the valid entries seperated by a comma. Click on Error Alert and key in an approriate message for the user.

Hope that helps.
 
Upvote 0
Instad of using a list for validation, you can also use the following formula for Data|Validation|Settings|Allow|Custom then

Formula ... =OR(AND(B1>=0,B1<=39),B1="00")

Please post back if it works for you -- otherwise explain a little further and let us take it from there.
 
Upvote 0
To Yogi Anand.
Thank you very much!! Works great.
I played with AND and OR for a couple of hours and couldn't get it. From what I can see, the "AND" selects from 1-39, and then the "OR" allows the "00" as a second condition.
Your help is appreciated.
ehs
 
Upvote 0
To: nwamcnamara

I hadn't considered a list. I tried this as well, and it works great.

Thank you for your help!

ehs
 
Upvote 0

Forum statistics

Threads
1,213,513
Messages
6,114,064
Members
448,545
Latest member
kj9

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