Time input error

Tomwhite

New Member
Joined
Apr 3, 2015
Messages
36
Office Version
  1. 365
I have a spreadsheet where I record employees time clock punch in and punch out times. Occasionally I will have a typo where I enter 8;00 instead of 8:00. This creates a problem in another part of the workbook that is dependent on this data. I'm looking for a way to flag this so I know it is an error. Maybe with conditional formatting where the color changes. Any other method may work; I just need it to stand out.

Thanks,
Tom
 

Excel Facts

When did Power Query debut in Excel?
Although it was an add-in in Excel 2010 & Excel 2013, Power Query became a part of Excel in 2016, in Data, Get & Transform Data.
Would something like this work for you?
1660755872093.png
 
Upvote 0
Do you mean why doesn't the value of "5;15" in column D highlight?
It is because your formula locks it down to only look at column A.

Remove the column lock in ($) your formula:
Excel Formula:
=FIND(";",A1,1)
 
Upvote 0
That works well in my sample file. When I put it into the actual working file it doesn't. And I have one empty cell that turns red. M28

1660770625488.png
 
Upvote 0
And I'd like to use a cell other than A1.
Yes, that is just the example based on the original image posted.
You change it to match whatever range you are applying it to.
Whenever you write a Conditional Formatting formula to a multi-cell range, you write the formula as it applies to the very first cell in the range you are applying it to.

Since you are applying that condition to the range E7:BF30, the formula you type in to that rule should be:
Rich (BB code):
=FIND(";",E7,1)
 
Upvote 0
Solution
Note: If it were me, I might take a different approach, such as using VBA to not allow them to enter anything that is not a valid time.
As long as you don't want to allow them to enter anything other than a valid time in the range, we can prevent any entries that are not valid times/dates.
 
Upvote 0
I think we'll stay with this. You have been awesome and your previous reply has solved my problem. Thank you for the help and thank you for doing so quickly!
Tom
 
Upvote 0
You are welcome!
Glad we were able to help!
:)
 
Upvote 0

Forum statistics

Threads
1,214,853
Messages
6,121,935
Members
449,056
Latest member
denissimo

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