A family of Microsoft spreadsheet software with tools for analyzing, charting, and communicating data.
Hi,
Yes we can do that with a formula. Select A2 then drag to select as many cells in column A as you want to validate. Then:-
Data tab | Data validation | Data Validation | In the 'Allow' dropdown select 'Custom' and paste this formula in:-
=AND(LEN(A2)=14,ISNUMBER(-MID(A2,ROW(INDIRECT("3:6")),1)),FIND(MID(A2,ROW(INDIRECT("1:2")),1),"ABCDEFGHIJKLMNOPQRSTUVWXYZ"),FIND(MID(A2,ROW(INDIRECT("7:8")),1),"ABCDEFGHIJKLMNOPQRSTUVWXYZ"),ISNUMBER(-MID(A2,ROW(INDIRECT("9:14")),1)))
Ok out. As written the letters in your string must be upper case but if you want to allow mixed case then change the FIND in the formula (2 places) to SEARCH