View Single Post
  #7   Report Post  
Posted to microsoft.public.excel.misc
help4me help4me is offline
external usenet poster
 
Posts: 5
Default Limiting text entries

In data validation for cell A1, I selected "Custom" and then pasted your
formula. Unfortunately, it did not work and I got the validation error
message. Did I do something wrong?

"Joerg Mochikun" wrote:

As a start for column 1:

For A1 apply the custom validation formula
=MID(A1,LEN(A1)-1,1)=","

This will allow only entries where the second from last character is a
comma.
You can use the AND function to combine more criteria in your formula and
make it as sophisticated as you like.

Joerg



"Help4me" wrote in message
...
I have two columns in which I would like to limit the way text is input:

1) Lastname,First initial with no spaces (i.e., Smith,R)
2) One capital letter followed by five digits (i.e., D12345)

I do not have any ideas for column 1.

I can use the Limited Text validation feature for column 2, but that only
limits the number of characters, not the type of characters input.

Thank you so much.