close

I have a spreadsheet that our different locations used for scheduling. For
each day of the week, the manager selects a start time and an end time. The
total hours then calculates in the last column using a SUM formula. What has
been requested is that an error pop up when that SUM forumula calculates
hours that are greater than 40. I've tried every variation in data
validation that I can think of but I can't get anything to work. Any
suggestions welcome. I am working in Excel 2002. Thanks!

You could try using an If statement in the column next to the sum column that
will show if the amount is over 40 hours: Example.......if(B2gt;40,quot;problem,quot;
quot;) This formula will show the word problem when it is over 40, and nothing
if it is under 40.

quot;brodiemacquot; wrote:

gt; I have a spreadsheet that our different locations used for scheduling. For
gt; each day of the week, the manager selects a start time and an end time. The
gt; total hours then calculates in the last column using a SUM formula. What has
gt; been requested is that an error pop up when that SUM forumula calculates
gt; hours that are greater than 40. I've tried every variation in data
gt; validation that I can think of but I can't get anything to work. Any
gt; suggestions welcome. I am working in Excel 2002. Thanks!

=SUM($A$1:$A$5)lt;=--quot;40:00quot;

I assume you apply it in the cell where the end time is entered

of course if you are not using time values use lt;=40 instead--

Regards,

Peo Sjoblom

nwexcelsolutions.comquot;brodiemacquot; gt; wrote in message
...
gt;I have a spreadsheet that our different locations used for scheduling. For
gt; each day of the week, the manager selects a start time and an end time.
gt; The
gt; total hours then calculates in the last column using a SUM formula. What
gt; has
gt; been requested is that an error pop up when that SUM forumula calculates
gt; hours that are greater than 40. I've tried every variation in data
gt; validation that I can think of but I can't get anything to work. Any
gt; suggestions welcome. I am working in Excel 2002. Thanks!
Your suggestion didn't work until I tried to remove the lt;=--quot;40:00quot;, then the
validation messages would pop up. Strange. Also, just as an FYI, the totals
display in whole numbers, not in a time format.

quot;Peo Sjoblomquot; wrote:

gt; =SUM($A$1:$A$5)lt;=--quot;40:00quot;
gt;
gt; I assume you apply it in the cell where the end time is entered
gt;
gt; of course if you are not using time values use lt;=40 instead
gt;
gt;
gt; --
gt;
gt; Regards,
gt;
gt; Peo Sjoblom
gt;
gt; nwexcelsolutions.com
gt;
gt;
gt; quot;brodiemacquot; gt; wrote in message
gt; ...
gt; gt;I have a spreadsheet that our different locations used for scheduling. For
gt; gt; each day of the week, the manager selects a start time and an end time.
gt; gt; The
gt; gt; total hours then calculates in the last column using a SUM formula. What
gt; gt; has
gt; gt; been requested is that an error pop up when that SUM forumula calculates
gt; gt; hours that are greater than 40. I've tried every variation in data
gt; gt; validation that I can think of but I can't get anything to work. Any
gt; gt; suggestions welcome. I am working in Excel 2002. Thanks!
gt;
gt;
gt;

I need to clarify a bit. For each day, when a start and end time is entered,
a third column in that day calculates the total hours for that day. The
final total sums all the daily hours column to get the total hours. The
final total is when I want to use the validation so that a pop up window
shows when the total sum of hours is greater than 40.

quot;brodiemacquot; wrote:

gt; I have a spreadsheet that our different locations used for scheduling. For
gt; each day of the week, the manager selects a start time and an end time. The
gt; total hours then calculates in the last column using a SUM formula. What has
gt; been requested is that an error pop up when that SUM forumula calculates
gt; hours that are greater than 40. I've tried every variation in data
gt; validation that I can think of but I can't get anything to work. Any
gt; suggestions welcome. I am working in Excel 2002. Thanks!

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

    software

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