Validation Rule

johnbird1988

Board Regular
Joined
Oct 6, 2009
Messages
199
Hello

I would like to create a validation rule in the table design view that will only let you enter a vaule if it meets the specific format below.

I need it always to start with "HWE" and then contain 6 numbers only. for example:


HWE123456
HWE654321

How can I created this in the validation rule box. I have tryed
Like "IRC??????"

This works but i can add text after the IRC and i need this only to be a number.

Please Help

Many Thanks

John
 

Excel Facts

Test for Multiple Conditions in IF?
Use AND(test, test, test, test) or OR(test, test, test, ...) as the logical_test argument of IF.
You can put this in the InputMask property:

"HWE"000000

and it will automatically add the HWE (they don't have to type it) and it won't let any other letters in and it will require 6 numbers.
 
Upvote 0

Forum statistics

Threads
1,224,520
Messages
6,179,267
Members
452,902
Latest member
Knuddeluff

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