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 [TABLE="width: 85"]
<colgroup><col width="113" style="mso-width-source:userset;mso-width-alt:4132;width:85pt"> </colgroup><tbody>[TR]
[TD="width: 113"]aa123a1234a[/TD]
[/TR]
[TR]
[TD]aa12341234a[/TD]
[/TR]
[TR]
[TD]aa12aa12345[/TD]
[/TR]
[TR]
[TD]1a12aa1234a[/TD]
[/TR]
</tbody>[/TABLE]

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

Excel Facts

How to show all formulas in Excel?
Press Ctrl+` to show all formulas. Press it again to toggle back to numbers. The grave accent is often under the tilde on US keyboards.

Forum statistics

Threads
1,223,234
Messages
6,170,891
Members
452,366
Latest member
TePunaBloke

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