Excel Validation Formula

ownbypss

New Member
Joined
May 24, 2018
Messages
2
Hi All,


Can anyone help me frame a Data Validation formula for Specific string in a column? The data structure is 4 Alphabets 10 numbers (i.e. field length is 14).Starting 4 will be aphabets and rest 10 are numeric.


Thanks in advance.
 

Excel Facts

Excel Joke
Why can't spreadsheets drive cars? They crash too often!
Checks for non-numerics rather than 4 alpha

Code:
=[COLOR=#ff0000][/COLOR](ISNUMBER(VALUE(RIGHT(A2,[COLOR=#ff0000]10[/COLOR]))))[COLOR=#000080]+[/COLOR](ISNUMBER(VALUE(MID(A2,[COLOR=#ff0000]1[/COLOR],1)))=FALSE)[COLOR=#000080]+[/COLOR](ISNUMBER(VALUE(MID(A2,[COLOR=#ff0000]2[/COLOR],1)))=FALSE)[COLOR=#000080]+[/COLOR](ISNUMBER(VALUE(MID(A2,[COLOR=#ff0000]3[/COLOR],1)))=FALSE)[COLOR=#000080]+[/COLOR](ISNUMBER(VALUE(MID(A2,[COLOR=#ff0000]4[/COLOR],1)))=FALSE)[COLOR=#000080]=5[/COLOR]

Explanation
The last 10 characters must be numeric
Each of the first 4 characters must be non-numeric

Each conditions must evaluate to TRUE
Each TRUE evaluates to 1
There are 5 conditions
 
Last edited:
Upvote 0

Forum statistics

Threads
1,224,823
Messages
6,181,181
Members
453,022
Latest member
Mohamed Magdi Tawfiq Emam

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