Alpha numeric excel data validation

taliapaw

New Member
Joined
Sep 14, 2016
Messages
16
Hi when I was checking my data validation formula I found it failed terribly.
The format I'm trying to obtain is: AA##AA####A
A is alpha a-z and does not need to be case sensitive
# is numeric 0-9

the formula I was using =AND(ISTEXT(LEFT(D1,2)),ISNUMBER(MID(D1,3,2)*1),ISTEXT(MID(D1,5,2)),ISNUMBER(MID(D1,7,4)*1),ISTEXT(LEFT(D1,11,1)),LEN(D1)=11)

it failed when I tried the following
aa123a1234a
aa12341234a
aa12aa12345
1a12aa1234a

<colgroup><col width="113" style="mso-width-source:userset;mso-width-alt:4132;width:85pt"> </colgroup><tbody>
</tbody>

I also just stopped testing at that point. Any help would be greatly appreciated. Thank you in advance.
 

Excel Facts

Which came first: VisiCalc or Lotus 1-2-3?
Dan Bricklin and Bob Frankston debuted VisiCalc in 1979 as a Visible Calculator. Lotus 1-2-3 debuted in the early 1980's, from Mitch Kapor.

Forum statistics

Threads
1,216,075
Messages
6,128,662
Members
449,462
Latest member
Chislobog

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