View Single Post
  #2  
Old May 27th, 2010, 11:47 PM posted to microsoft.public.excel.misc
Bob Phillips[_3_]
external usenet poster
 
Posts: 489
Default sum of timesheet

Try

=IF(COUNTIF(A1:A4,"off")=4,"off",SUM(A1:A4))

--

HTH

Bob

"nidabland" wrote in message
...
Let's say A1: 9 am
A2: 12 pm
A3: 12:30 pm
A4: 3 pm
I need the total in A5 to calculate how many hours worked, but also if I
write "off" in A1:A4, I need A5 to say "off", so basically I need either
the
total hours worked or the word "off" in A5. Is this possible? Thanks for
any help,