View Single Post
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Aline Yiu Aline Yiu is offline
external usenet poster
 
Posts: 10
Default validation with two specific formats

Hi there,

How do you make sure certain character will be showing up on Excel cell,
e.g. R123456. The first letter must be S and followed by 6 numbers?

I have come up with formula: =AND(LEFT(A1, 1)="R", LEN(A1)=7), which is not
perfect because it will accept, e.g. R65432S.

Any advice?

--
Aline Yiu