Go к данным> проверка данных, затем выберите пользовательский и добавьте эту формулу:
=AND(LEN(A1)=8, LEFT(A1,1) = "B", ISNUMBER(NUMBERVALUE(MID(A1,2,2))), MID(A1,4,1) = "-", ISNUMBER(NUMBERVALUE(MID(A1,5,1))), MID(A1,6,1) = "V", ISNUMBER(NUMBERVALUE(MID(A1,7,2))))
Разбивка формулы:
=AND(
LEN(A1)=8, 8 characters in length
LEFT(A1,1) = "B", first character is the letter B
ISNUMBER(NUMBERVALUE(MID(A1,2,2))), characters 2&3 are numeric
MID(A1,4,1) = "-", character 4 is a dash -
ISNUMBER(NUMBERVALUE(MID(A1,5,1))), character 5 is a numeral
MID(A1,6,1) = "V", character 6 is the letter V
ISNUMBER(NUMBERVALUE(MID(A1,7,2))) characters 7&8 are numerals
)