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

excel course tate modern - data validation

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

excel course tate modern - Data Validation

ResolvedVersion 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

Excel tip:

Reconciling a list to correspond with another

May have a list that needs to make but on another sheet one list seems to be out, eg. product list one sheet contains all product and inventory data, while the other contains pricing data. Both need to match with all products but there is more products in one list than the other. To find the disparaging product compare data in the two columns that need to match Make sure that order the same way.
Create another column in the sheet that has the most items and type in the first cell


=Exact(text1,text2) text1 being the cell that you want compared with text2 cell reference. Drag to filldown and your first false will give you for first cells that does not match. Correct insert the row with data in other sheet and continue the process until all the data returns true. Delete the column inserted.

View all Excel hints and tips

Connect with us:

0207 987 3777

Call for assistance

Request Callback

We will call you back

Server loaded in 0.14 secs.