Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
Thank you so much. It works! You are very smart. Wondering where did you
learn all this. I noticed that "--" before "RIGHT(A1,6)" is a must, why is that. Thanks, -- Aline Yiu "Bernard Liengme" wrote: Try =AND(LEFT(A1)="R",ISNUMBER(--RIGHT(A1,6))) I hope I read your question correctly (you seem to want an R not an S) Not my formula will accept lower case r. This accepts only uppercase =AND(EXACT(LEFT(A1),"R"),ISNUMBER(--RIGHT(A1,6))) -- Bernard V Liengme www.stfx.ca/people/bliengme remove caps from email "Aline Yiu" wrote in message ... 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 |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Data validation | Excel Worksheet Functions | |||
data validation | Excel Worksheet Functions | |||
Dependent Validation in SharePoint-synchronised list | Excel Discussion (Misc queries) | |||
Data validation with hyperlinks | Excel Worksheet Functions | |||
Data Validation Window? | Excel Discussion (Misc queries) |