Alpha numeric excel data validation

taliapaw

New Member
Joined
Sep 14, 2016
Messages
16
Hi, I'm trying to restrict the entry of data into a cell so it follows this format 1234AA12345 however after trying many formulas I can't get it to work any help would be greatly appreciated.
 

Excel Facts

Wildcard in VLOOKUP
Use =VLOOKUP("Apple*" to find apple, Apple, or applesauce
try
=AND(ISNUMBER(LEFT(A1,4)*1),ISTEXT(MID(A1,5,2)),ISNUMBER(MID(A1,8,5)*1),LEN(A1)=11)
 
Last edited:
Upvote 0
correction
=AND(ISNUMBER(LEFT(A1,4)*1),ISTEXT(MID(A1,5,2)),ISNUMBER(MID(A1,7,5)*1),LEN(A1)=11)
 
Upvote 0
Awesome thank you Wayne :) the second one works prefect! I was stuck on this for two days using formulas way more complex. Have a lovely day and thanks again!
 
Upvote 0
Is there any way to modify the formula so that it forces uppercase for the text?
=AND(ISNUMBER(LEFT(A1,4)*1),ISTEXT(MID(A1,5,2)),ISNUMBER(MID(A1,7,5)*1),LEN(A1)=11)

I've tried something along the lines of this but it still allows for lowercase text
=AND(ISNUMBER(LEFT(A1,4)*1),UPPER(ISTEXT(MID(A1,5,2))),ISNUMBER(MID(A1,7,5)*1),LEN(A1)=11)
 
Upvote 0

Forum statistics

Threads
1,213,494
Messages
6,113,972
Members
448,537
Latest member
Et_Cetera

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