Don't want rounding if possible

philky001

Board Regular
Joined
Jun 8, 2005
Messages
129
I have an excel sheet which we use to calculate employees work schedules.
I have a formula which calculates hours, taking into account second shift times, some work 2-10 pm etc.

=IF(OR(D5=""|C5="")|""| IF(D5=C5|12|IF(ABS(D5-C5)<>0|IF((D5-C5+12)>12| D5-C5| D5-C5+12)|0)))

Now there is new group which schedules for instance 7.50am. The excel is showing this as 8.
I would like to calculate this as 7.50am.

Not only this but when i enter 7.50 it shows 8 but also doesnt do the total correctly. I have an ending time of 5 and it's showing the total as 10 not 9. or 9.10
 
Last edited:

Excel Facts

What does custom number format of ;;; mean?
Three semi-colons will hide the value in the cell. Although most people use white font instead.
The data looks like this. We have weekly totals and monthly. I enter all the days of the month. 8 is the starting time 8am till 2pm. I would like to be able to enter 7.50am.

Dept Month: Sept 2017 1 Total
In Out
Staff
0
Call Room Shaneice 8 2 6
Marsha 8
Christina 8 4 8
Jessica 8 4 8
 
Last edited:
Upvote 0

Forum statistics

Threads
1,224,824
Messages
6,181,186
Members
453,020
Latest member
Mohamed Magdi Tawfiq Emam

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top