masud8956
Board Regular
- Joined
- Oct 22, 2016
- Messages
- 163
- Office Version
- 2016
- 2011
- 2007
- Platform
- Windows
Hi all!
I have a range of cells, say A1:F30 where I want the users to be able to enter the characters 0 to 9 a colon [:] only. The cells are formatted as [h]:mm and the colon will always appear in between the numeric values e.g. 1:15, 2:45, 10:05 etc
I tried Data Validation with the following formula:
Problem is, the cells now accept nothing but numeric value but do not accept the colon while I am trying to insert some durations at those cells.
What modification do I need to make?
Thanks.
I have a range of cells, say A1:F30 where I want the users to be able to enter the characters 0 to 9 a colon [:] only. The cells are formatted as [h]:mm and the colon will always appear in between the numeric values e.g. 1:15, 2:45, 10:05 etc
I tried Data Validation with the following formula:
Code:
=IF(A1="",TRUE,IF(ISERROR(SUMPRODUCT(SEARCH(MID(A1,ROW(INDIRECT("1:"&LEN(A1))),1),"0123456789:"))),FALSE,TRUE))
Problem is, the cells now accept nothing but numeric value but do not accept the colon while I am trying to insert some durations at those cells.
What modification do I need to make?
Thanks.
Last edited: