Validation To Force Cell Format On Entry

Feb 9, 2007

I have a spreadsheet that I add to daily with 3 Columns that are always the same. Name, ID number and Phone Number.

Is there a way to make it so that when other people in my department use this that no matter how they enter the name, it is always formatted the same. No matter they enter the ID number and phone number they are always formatted the same. I've tried some variations of data validation but couldn't get to where I need to be.

Attached is a simple example.
I'd like the name to always be formatted as Smith, Bob
I'd like the ID Number to always be formatted as xxx xx xxx
I'd like the Phone Number to always be formatted as xxx xxx xxxx

View 9 Replies


ADVERTISEMENT

Force Date Format Entry In Text Box

Sep 5, 2007

A form loads and the first thing the user is to do is enter a specific date in a text box (preferably in, "mm/dd/yyyy" format.)

Is there any way to set up the text box so that when the form loads, the, "/"'s (slashes) are already in place? And can I set it up so that if the user enters in the date in any other manner aside from, "mm/dd/yyyy", that it will give them an error?

Finally, I want the user's date input to store on a worksheet (in row, "G".) So the first time the user uses the form, they type in a date and it stores the date in the FIRST AVAILABLE CELL IN ROW, "G." (example: "G1") The next time they use the form and type in a date, it is to store in, "G2", then in, "G3", ect. Each time they fill out the form, the new entry is to save in the next row beneath the previous entry.....

For other text boxes and combo boxes I have been using the following code to do this:

Sheets("Sheet1").Range("A" & intRow) = Text.Value (or Combobox.Value - depending on whether it was a text box or a combo box.)

Unfortunately I have NO idea how to apply this logic in regards to text boxes that are to store dates.

View 9 Replies View Related

Force Entry In Cell

May 30, 2008

I have an Excel sheet which serves as an input form. I would like to set something up where if the user inputs any value into the cell range B12:B100 then they are forced to also enter a value in column J of that same row.

Maybe something could be done where if they enter a value in B12, then they cannot enter a value in B13 before entering a value in cell J12?

View 9 Replies View Related

Force Data Entry In Cell In Order

Dec 30, 2007

I found the following code which works fine until I start to select multiple cells in cell B for deletion etc. At this point it throws up a run-time error 13 type mismatch, which will cause problems when other people start to use the spreadsheet.

Private Sub Worksheet_Change(ByVal Target As Range)
If Target.Column <> 2 Then Exit Sub
If Target.Offset(0, -1) = "" Then
Target.Select
Application.EnableEvents = False
Target = ""
Application.EnableEvents = True
MsgBox ("You must enter Atlas Part No. first")
End If
End Sub

View 2 Replies View Related

Force Cell Entry Based On A Condition

Jul 31, 2008

I need to force our salespeople to enter information in a cell based on a condition. This is the condition: If I5=3, then I need to move the user to cell I3 with a message that says "Enter miles to site" -- I don't want them to be able to move from the cell until they enter the information. If I5 does not equal 3, then I don't need anything to occur. I need to apply this code to four separate worksheets in the same workbook. Also, they will be entering a number in cell I3, so is okay to leave I3 formatted for Number or General Number? Note: This question is also posted at the following link, but has not yet been answered by that group: http://database.ittoolbox.com/groups...dition-2270643.

View 2 Replies View Related

Cell Entry Validation

Jul 7, 2008

I am trying to force a user to enter a value (any value at all) into a cell once they have selected it.

So the cell is blank, then they click on it... then they can't move to the next cell until the enter some text.

View 13 Replies View Related

Force Entry In Multiple Cells

Jan 16, 2009

I have a spreadsheet in which has many different cells that need to be completed if another cell has data.

Examples

If the user inputs a name into A3, they must complete cells B3 thru D3. Cells B3:D3 contain different entry methods including a drop down list.

On the same sheet, if the user chooses GTD from a drop down list in cell U3, cells BA:BJ must be completed. And if they choose GCI from the drop down list in U3, they must complete cells BK:BR

View 9 Replies View Related

Force User Form Entry Only

Dec 30, 2007

I want to change data through a user form and disable users from going around my form. I want users to see the underlying spreadsheet as the form manipulates data.

If I enable a form in Modal mode users can bypass the form. If I use it without modal form I can't change data from my form. I seem to be in a catch 22.

View 5 Replies View Related

Drop-down To Suggest Entry Not Force

Mar 20, 2008

I'm designing a spreadsheet for users to enter the length of journeys that they've claimed on their expenses. In order to ensure consistency between users, I want to add two drop-down boxes or listboxes that will offer a list of common locations (eg. office A, office B, office C, customer A): one for the start point, and one for the finish point. These will be referenced by a lookup table that will automatically fill in the journey distance.

However, users will also need to be able to input other locations themselves (ie. if a journey starts at home, not at the office). If I use data validation to create the drop-down box, it will only allow the values on the list; is there something that functions like validation in offering the user a range of options, but also allows other values?

View 4 Replies View Related

Force ComboBox List Entry Only

Jun 30, 2008

I am using Control Tool box combobox in worksheet.How to change the Combobox to Non Editable combobox?

View 3 Replies View Related

Force Data Entry If Another Cell Contains Data

Aug 21, 2007

I've been searching but I can't find an answer that fits. Here's the closest I've come. Force Date Entry on Particular Condition. What I need is if A10 has any data in it then I want a box to pop up that instructs the user to input data into B10 they click OK and then enter the data. Once the user inputs data into B10 then the error should be cleared. If they don't enter data then the error should keep coming back.

View 3 Replies View Related

Force Upper Or Proper Case On Entry

Feb 16, 2007

Below is the existing code that I'm working with and would like to be able to make the ' name' column either Upper or Proper case on entry. I haven't decided which I'm going to use yet.

Set r = Sheet1.Range("A2:C65536")
If Not Intersect(Target, r) Is Nothing Then
sTgt = Trim(Target.Value)
If sTgt = "" Then Exit Sub

Select Case Target.Column
Case NmCol
If InStr(sTgt, ",") = 0 Then
iSpc = InStrRev(sTgt, " ")
Target.Value = Mid(sTgt, iSpc + 1) & ", " & Left(sTgt, iSpc - 1)
End If

View 3 Replies View Related

Using Data Validation To Limit Entry Of Number Of Characters In A Cell

Jan 24, 2014

When you want to use Data Validation to limit the entry of the number of characters to a cell does this apply only to the cell that you are entering the characters or can it also apply to a cell that contains a LEN(A1) formula, for instance? Also,does the Data Validation limitation function includes spaces as well? Will the message appear while you are entering the characters (when it has reached the limit) or will it wait until you have hit Enter?

View 1 Replies View Related

Force Users To Choose One Of Items And Not Allow Blank Entry To Be Entered

Dec 14, 2011

I have a list box in a user form using R2:R3 as Row source.

I need to force the users to choose one of the items and not allow a blank entry to be entered.

I used the code below for the entries however it still allows for a blank to be entered into the Cell.

This part of the code works for Me.sapor = "" Or Me.jobna = "" Or Me.ordernu = "" But not for the next (2) list boxes it allows blanks Or Me.snd = "" Or Me.mcode = ""

Me.Snd and Me.mcode are list boxes.

Code:

If Me.sapor = "" Or Me.jobna = "" Or Me.ordernu = "" Or Me.snd = "" Or Me.mcode = "" MsgBox ("Feilds SAP Number, Job Name, Price, Code and Month Code Must be Completed")
Exit Sub

Code:

Private Sub CommandButton1_Click()
Dim rNextCl As Range
' Row count = where the select cell finishes and window box moves to rows over
' offset = howmany cells up or down from the row count

[Code]....

View 2 Replies View Related

Data Validation: Restrict The Value Entered On A Sales Sheet To Force The Value To Be Over 15% Margin

Mar 12, 2009

I want to restrict the value entered on a sales sheet to force the value to be over 15% margin. In column M you enter a value in column N it report the margin. I want to force the value in M to give a minimum 15% in column N or report an error.

View 3 Replies View Related

Force A Date Format

Mar 15, 2007

I don't why the following code is not working. I am trying to force a date format when a user is trying to enter a date in anycell

Private Sub Workbook_SheetChange(ByVal Sh As Object, ByVal Target As Range)
If IsDate(Target.Value) Then
Application.EnableEvents = False
new_date = Format(Target.Value, "dd/mm/yyyy")
Target.Value = new_date
'MsgBox new_date
Application.EnableEvents = True
End If
End Sub

View 9 Replies View Related

Force TextBox To Be Date Format?

Apr 30, 2008

I'd like to import some dates into some textboxes on a userform.

I'm also going to let the user edit these, however... what i'd like is for the user to be forced to:

1) enter a date in the format dd/mm/yy
2) Enter a valid date (eg, not feb 30th)

View 9 Replies View Related

Validation On Entry

Jan 19, 2010

Hi I have a column where a cheque number can be entered I need to check on entry that the cheque number has not been used before further up the column.

View 7 Replies View Related

VBA - Distinguishing When Cell Is Edited By Data Validation List Or Free Format Text

Mar 20, 2014

VBA code which can distinguish whether a cell has been edited by:

selecting an option from a data validation list (DVL)
or
manually editing the text in a cell?

The ""Show error alert after invalid data is entered"" option is unticked to allow both selection from the DVL as well as free format text entries.

The problem arises when using the code below which makes an edited cell within a range display the new value as well as the prior value(s). This works well when using the DVL but not when editing the cell.

Is there any code which can distinguish between the 2?

[Code] ....

View 5 Replies View Related

Data Validation With Indirect For More Than 1 Entry

Aug 13, 2014

I am trying to arrange a dependent drop-down list and have the basic listing working. My problem however is that when i pull data from sheet "Mon" for column C using indirect it works but when I try to do the same thing for column D i get the same data as column C. How do i get indirect (or offset if it works better) to allow me to reference the alternate data 1 column over?

View 3 Replies View Related

Data Validation For 5 Digit Alpha Entry Only

Dec 3, 2008

I require a formula for custom data validation to permit entry 5 digit aplha characters only.

No spaces, or numbers permitted.

View 2 Replies View Related

Custom Data Validation For Alphanumeric Entry

May 18, 2009

I require a custom formula for in cell data validation of an 5 digit alphanumeric entry. The valid format is ANNNN (1 x alpha & 4 x numeric). Case of the aplha is not an issue.

View 3 Replies View Related

Data Validation To Limit Entry - Two Criteria

Aug 30, 2012

I need cell H18 to look at cell F4, and if the value in cell F4 is 'CFB', I need validation to limit the entry in cell H18 to the values in a named range 'pripro' to populate. That part I know how to do. (=pripro)

But if the value in F4 is CCP, I need H18 to allow anything. I'm having trouble adding this to the first part.

View 3 Replies View Related

Data Validation: Automatically Add An Entry Into Its Database

Dec 5, 2007

How do I get data validation to automatically add an entry into its database.

Ex.
If a cell if formated for data validation and I make an entry thats not currently in its database, it enters it into its database.

View 9 Replies View Related

Update Data Validation Entry Automatically

Nov 19, 2009

I already have various dependent validation lists established using the INDIRECT function.

Now I want to figure out how I can automatically change the selected values given the selected list. For example:

Cell D11 is a validation list with options: Boat/Car

Cell D15 is a validation list where if D11 = Boat the options are Catamaran/Sailboat/Tugboat. If D11=Car the options are Convertible/Sedan/Midsize.

The problem is that if D15 is preselected as Sailboat, for example, and you go back and change D11 to equal Car, cell D15 remains an option from the Boat validation list. I would like it to automatically update as the 1st item on the car validation list.

View 9 Replies View Related

Force Choice From List: Data Validation List

Oct 18, 2006

is there a way to force so that a cell value can be only of what a validation droplist offers, hence users can not enter their own values and have to use the droplist for cell content selection.

View 2 Replies View Related

Getting Entry In One Cell To Cause Entry In Another Based On Entry In 3rd

Mar 20, 2014

I have a percentage in R3.

If I make an entry in D13 then I want the R3 to be duplicated into C27 otherwise C27 should be 0.

View 4 Replies View Related

Format Time Entry With Colons

Oct 9, 2009

I want to be able to type a 24 hour time into the column and have it format with colons - for example: I want to type 123456 and have it show up as 12:34:56

View 5 Replies View Related

Code To Format Date Entry

Jun 9, 2006

I have a macro which is designed to collect information and then assign each piece of information to a defined cell. I have Dim statements for each piece of information i.e.

Dim Info1 = Surname
Dim Info2 = Initials And so on.
Dim Info11 = Date of entry

This is working perfectly but the date when entered is reversing to american format. 08/05/2006 becomes 05/08/2006. Type into the cell manually and it works perfectly let the macro put the date in and it changes format. Can anyone supply a line of code that would format the date to dd/mm/yyyy? Then I could insert it after the part of my code which basically says go to this cell and put in the date.

View 3 Replies View Related

Macro To Force Format And Check Barcode Check Digit

Nov 27, 2009

My company uses 4 types of barcodes 8, 12, 13, & 14 number barcodes for our products my problem is that I can't figure out how to force the barcode to format properly no matter how somebody enters it if they don't use spaces or put them in the wrong spots, I can't use custom formats because there is 4 different layouts

8 digit should be "#### ####"
12 digit should be "###### ######"
13 digit should be "# ###### ######"
14 digit should be "# ## ##### ######"

these barcodes are in columns L, M, & N also right now 'm using a formula in another cell to verify the barcodes by calculating the check digit and comparing it to the check digit typed the formula i'm using is

View 9 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved