We're building a Timesheet process and table rows as a few "Time In" and "Time out" entries with totals that we'd like to write a formula for that will add the differences in the times. What we have so far work but only for fields that keep a value in all the rows the calculation is being done, blank values error the field. We'd like any field, including at least 2 extra Time In/Out's to be able to be blank. Does anyone know the best way to fix this? We were having trouble getting SUMIF to work.
=SUM(ROUND(((TIMEVALUE(INDEX(Pay_Period.time_out_lunch,ROW())))-TIMEVALUE(INDEX(Pay_Period.time_in_work,ROW())))*24,2),ROUND(((TIMEVALUE(INDEX(Pay_Period.time_out_work,ROW())))-TIMEVALUE(INDEX(Pay_Period.time_in_lunch,ROW())))*24,2),INDEX(Pay_Period.PTO,ROW()),INDEX(Pay_Period.Holiday,ROW()),INDEX(Pay_Period.Misc_,ROW()))