View Single Post
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Per Jessen Per Jessen is offline
external usenet poster
 
Posts: 1,533
Default Figuring total # of hours between multiple times

Hi

If text is only entered in K3, M3 or O3, try this:

=IF(ISNUMBER(K3),K3-J3,0)+IF(ISNUMBER(M3),M3-L3,0)+IF(ISNUMBER(O3),O3-N3,0)

Regards,
Per

"R P Wilson" <R P skrev i meddelelsen
...
I am creating a work schedule template that will total the number of hours
an
individual is scheduled to work for the week. The template will reflect
the
work schedule for two weeks for a number of individuals. I have entered a
formula that will calculate the total if the cell contents are all time
values. My problem is that any given day can have "OFF", "VAC" or "HOL"
in
one of the cells. This returns a "#VALUE!" error. Is there any way to
imbed
an additional formula to ignore any cells with text or even with the
specific
values listed above. Here is a copy of the information I am working with:
15-Jul 16-Jul 17-Jul Hours
06:00 16:00 07:00 16:00 OFF #VALUE!

The formula enter is: =((K3-J3)*24)+((M3-L3)*24)+((O3-N3)*24)