excel course tate modern - data validation

Public Schedule Face-to-Face & Online Instructor-Led Training - View dates & book

Forum home » Delegate support and help forum » Microsoft Excel Training and help » excel course tate modern - Data Validation

excel course tate modern - Data Validation

resolvedResolved · 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

Many thanks for your help Pete - if you should stumble across a solution in the future I'd be glad to know - thanks for your help in any case! Regards
Caz

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 courses

 

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
What does 'Resolved' mean?

Any suggestions, questions or comments? Please post in the Improve the forum thread.


 

Excel tip:

Freeze Rows and Columns to keep lables displayed

You can freeze rows and columns in your worksheet so they don't move.

This allows you to keep row and column labels displayed on your screen as you move through a large worksheet.

Click below and/or to the right of the cell(s) you want to freeze. (NB. Excel freezes ALL the rows above and ALL the columns to left of the selected cell)

Click on the 'Windows' menu and selct 'Freeze Panes'.

Lines appear in your worksheet. The required rows and columns are frozen and remain on your screen as you move through your worksheet.

To unfreeze rows and columns, click on 'Window' menu and select 'Unfreeze Panes'.

View all Excel hints and tips


Server loaded in 0.15 secs.