Time Validation

Passman

Board Regular
Joined
May 23, 2007
Messages
103
I am trying to validate times entered into a range of cells. Most of the users are not used to using excel and will enter time as 15.30 and not as 15:30 format. I can't use data validation as it does not recognise the hh.mm format.

Is their a way to use a vba routine to achieve inputs of 15.30 and 3.30pm to show as 15:30 in the inputted cell.

Thanks in advance
 

Excel Facts

Workdays for a market open Mon, Wed, Friday?
Yes! Use "0101011" for the weekend argument in NETWORKDAYS.INTL or WORKDAY.INTL. The 7 digits start on Monday. 1 means it is a weekend.
Try Data Validation > Allow > Time. Set the low value to 0:00 and the high value to 23:59.
 
Upvote 0
Thanks for your fast reply but the problem I have with your solution is that it prompts the user for the correct format.

I was hoping for a solution that would automatically make the adjustment without another user input.

If it's not possible then I will have to accept this option but I would rather not!
 
Upvote 0
You can set the Input Message to "You must enter in the format hh:mm" or similar.
 
Upvote 0

Forum statistics

Threads
1,196,484
Messages
6,015,469
Members
441,898
Latest member
kofafa

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