98.7% Of all customers recommend us, we're so confident about our results we publish all reviews and stats
View Live Stats View ReviewsForum home » Delegate support and help forum » Microsoft Excel Training and help » excel course tate modern - Data Validation
excel course tate modern - Data Validation
Resolved · Low Priority · Version Standard
Carolyn has attended:
Excel Advanced course
Data Validation
How do you restrict the format to be entered into a particular cell? For Example if the data entered must be one letter (between A and D) followed by 3 numbers
eg. A123
D4823
C357
Many thanks
RE: Data Validation
Hi Carolyn, thank you for the post, After much searching I have to report that I cannot find an option which can only be related to Access's "Input Mask" validation. This operation which is quite straightforward in Access does not seem to have a related operation in Excel.
I am putting my reputation on the line here, but I dont think that there is a way of doing what you ask, possibly this could be achieved by writing a VBA routine, if any one else has a solution I for one would be pleased to hear from you. best regards, Pete.
RE: Data Validation
Dear Carolyn
I did some research and believe that this might help you in what you want to acheive.
Step 1: Select the cells or may be the entire column where you want this data Validation to be applied.
Step 2: Choose Data > Validation...
Step 3: From the drop down list in the Allow section choose Custom and then copy and paste this in the box :
=AND(LEN(A1)=4,ISNUMBER(--MID(A1,2,3)),NOT(ISNUMBER(LEFT(A1))))
LEN is for length of characters which in your case is 4
MID returns the characters from the middle of the text string, giving starting position and length.
ISNUMBER ensures that the data is a restricted as a number and not text.
Combined with the MID it ensure that the last three digits are restricted to Numbers
And the First one is resticticed to Text as it is NOT a NUMBER.
Hence getting your result.
Hope this helps
[b]If this posting has helped in answering your query then I would request you to mark the posting as Resolved. If, however, it hasn
RE: Data Validation
Dear Carolyn
Sorry I forgot to mention something which is quite crucial.
Once you have performed the steps mentioned in my previous post you might want to put the appropriate text in the Input Message Box (what the users will see in a yellow box when they click on the cell that contains the validation rule). You can even have the Error Alert message appears when they eter the invalid data to remind them what format you are expecting them to enter!!
I hope this helps!! :)
Kindest Regards
Rajeev Rawat
MOS Master Insturctor 2000 and 2003
Training information:
See also:
Welcome. Please choose your application (eg. Excel) and then post your question. Our Microsoft Qualified trainers will then respond within 24 hours (working days). Frequently Asked Questions
Any suggestions, questions or comments? Please post in the Improve the forum thread. |
Excel tip:Freeze Rows and Columns to keep lables displayedYou can freeze rows and columns in your worksheet so they don't move. |