Data validation

yahozna

New Member
Joined
Mar 28, 2011
Messages
12
Is it possible to use data validation to ensure that data is entered in the specific format of mm:ss.00
I would like to generate an error message if a different format is used.
 

Excel Facts

Create a Pivot Table on a Map
If your data has zip codes, postal codes, or city names, select the data and use Insert, 3D Map. (Found to right of chart icons).
In Excel 2003, on the Data Validation dialog box, there's an option for Time, which you can then refine (if you want) by setting upper and lower limits.

You can also specify an appropriate Input Message, and a separate Error Alert message.

BUT, this won't actually control the format as such.
Users will still be able to enter a value between the specified limits, and format it as something else (for example currency).

To stop this, you'll want to format the cell as time, and consider protecting the worksheet to prevent changes to formats.
 
Upvote 0
It's a Sports Day spreadsheet so times entered will range from 00:12.5 to 10:00.0 in other words 12 and a half seconds up to 10 minutes or so.

problem is if someone entered 14.5 rather than 00:14.5 for 14 and a half seconds it would register as 12:00.00
 
Upvote 0
problem is if someone entered 14.5 rather than 00:14.5 for 14 and a half seconds it would register as 12:00.00

OK, so you can get round this specific problem to a certain extent by setting upper and lower limits in the data validation.

Set the upper limit to, say, 20 minutes, and the lower limit to 0, or some other low number.
 
Upvote 0

Forum statistics

Threads
1,224,598
Messages
6,179,818
Members
452,946
Latest member
JoseDavid

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top