Data Validation using whole numbers from formulas

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

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(B2>40,"problem,"
") This formula will show the word problem when it is over 40, and nothing
if it is under 40.
 
Your suggestion didn't work until I tried to remove the <=--"40:00", then the
validation messages would pop up. Strange. Also, just as an FYI, the totals
display in whole numbers, not in a time format.
 
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.
 
Back
Top