Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
Hi, having a problem with my timeshett system and wondering if anyone
can help?? I have the following in Cells.Range(A5:J8) Mon Tue Wed Thu Fri Sat Sun Total Start 08:30 08:30 08:30 08:30 08:30 for Lunch 01:00 01:00 01:00 01:00 01:00 Week Finish 17:30 17:30 17:30 17:30 17:30 Total 8.00 8:00 8:00 8:00 8:00 40.0 The following part is the timesheet part where hours are logged against projects: (Range(A11:L24) Project No. Work Code Mon Tues Wed Thu Fri Sat Sun Total Task Category Part Number 1000 08C 8.0 8.0 8.0 8.0 8.0 40.0 PRD 000-000-000 The following is the Totals of the hours done by column: (Range(A25:J25) Total For Week 8.0 8.0 8.0 8.0 8.0 40.0 The problem that I am having is that I have VBA that validates the 2 Totals (Range A9:J9) and (Range A25:J25) I have tried all the conversions from decimal to time and time to decimal and can not get the timesheet to validate it correctly - ie the VBA for validation is as follows: If Val(Sheets(sht).Range("C8").Value) < Val(Sheets(sht).Range("Total").Offset(0, 2).Value) Then err = 1 If err = 1 Then MsgBox ("The totals aren't all equal") Any help would be greatly appreciated - thanks |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
converting time to decimals | Excel Worksheet Functions | |||
converting decimals to fractions | Excel Discussion (Misc queries) | |||
converting decimals to fractions | Excel Discussion (Misc queries) | |||
converting decimals to fractions | Excel Discussion (Misc queries) | |||
Converting decimals into hh:mm | Excel Worksheet Functions |