close

How do I set up a cell in Excel to reject an in time if it is not equal to or
greater than 30 minutes?

Use Data Validation on the date entry cell.

gt;From the menus Data gt; Validation
Settings: Allow Decimal; Data Greater than or Equal to; 30

- John MichlThank you so much John. This does allow me to limit the entry to a great
then-equal to value. However what I am trying to accomplish is settting a
time within a timesheet which limits the employee to a meal break of at least
30 minutes. This procedure you describe only allows time to be 30 minutes, it
doesn't allow anything over, i.e, if they clock out at 12 noon it won't allow
them to clock back in unless it is 12:30. I only want it to stop them if they
are trying to return to work before their 30 minutes are up.

quot;John Michlquot; wrote:

gt; Use Data Validation on the date entry cell.
gt;
gt; gt;From the menus Data gt; Validation
gt; Settings: Allow Decimal; Data Greater than or Equal to; 30
gt;
gt; - John Michl
gt;
gt;

Change the data validation to:

Settings: Allow Time
Data Greater than or Equal to
Start Time: A1 1/48

Where A1 is the cell that contains the log out time. 30 minutes is
also 1/48 of a day so adding that to the log out time would give the
earliest log in time. Note this will be very picky. 29 minutes and 59
seconds would not be allowed.

- JohnThank you John, that did it :-)

quot;John Michlquot; wrote:

gt; Change the data validation to:
gt;
gt; Settings: Allow Time
gt; Data Greater than or Equal to
gt; Start Time: A1 1/48
gt;
gt; Where A1 is the cell that contains the log out time. 30 minutes is
gt; also 1/48 of a day so adding that to the log out time would give the
gt; earliest log in time. Note this will be very picky. 29 minutes and 59
gt; seconds would not be allowed.
gt;
gt; - John
gt;
gt;

arrow
arrow
    全站熱搜
    創作者介紹
    創作者 software 的頭像
    software

    software

    software 發表在 痞客邦 留言(0) 人氣()