P
Phil C
Hi All
With some help from people in this NG I have managed (using data validation)
to trap an error where the user does not use the correct time format
(hh:mm). Basic setup: time values (format hh:mm) in A1 and A2. A3 (formatted
as number) contains formula: =A1-A2. OK, but if user types too quickly and
enters 1400 in A1 instead of 14:00, A3 displays "rubbish". The program
(graph based in part on value in A3) doesn't fail because the user is forced
to retry, but the rubbish in A3 is still visible alongside the data
validation dialogue box, so looks untidy.
Is there a way to put something in A3 to the effect: =IF(format of A1 not
hh:mm, "wrong format", A1-A2)?
Thanks for your help
Phil
With some help from people in this NG I have managed (using data validation)
to trap an error where the user does not use the correct time format
(hh:mm). Basic setup: time values (format hh:mm) in A1 and A2. A3 (formatted
as number) contains formula: =A1-A2. OK, but if user types too quickly and
enters 1400 in A1 instead of 14:00, A3 displays "rubbish". The program
(graph based in part on value in A3) doesn't fail because the user is forced
to retry, but the rubbish in A3 is still visible alongside the data
validation dialogue box, so looks untidy.
Is there a way to put something in A3 to the effect: =IF(format of A1 not
hh:mm, "wrong format", A1-A2)?
Thanks for your help
Phil