# Convert Total OT Hour Conditionally?

#### xlmaniac

##### Well-known Member
Dear All,
I have the following sample Monthly OT Hour(Aggregated) which I need to covert as follows:-
Could somebody help me out with the formula pls?
Sample data set along with the desired results as follows:-

30:50:00=31:00
30:29:00=30:00

Regards

### Excel Facts

What is the fastest way to copy a formula?
If A2:A50000 contain data. Enter a formula in B2. Select B2. Double-click the Fill Handle and Excel will shoot the formula down to B50000.

#### Special-K99

##### Well-known Member
Re: How To Convert Total OT Hour Conditioallly?

What are you trying to do?

#### xlmaniac

##### Well-known Member
Re: How To Convert Total OT Hour Conditioallly?

What are you trying to do?

I need to convert the aggregated monthly OT hours based on 30 Min division.
For example if the OT hour is 40:20,it should convert the same to 40:00 hours
if the OT hour is 40:50, it should convert the same to 41 hours.
Like the formula should be able to convert all OT Hours based on this logic.
Thanks

#### Special-K99

##### Well-known Member
Re: How To Convert Total OT Hour Conditioallly?

Try

=MROUND(A1,"0:30:00")

#### Special-K99

##### Well-known Member

Re: How To Convert Total OT Hour Conditioallly?

Nope, doesnt work with your recent example

#### Special-K99

##### Well-known Member
Re: How To Convert Total OT Hour Conditioallly?

This works, test for some other examples

=MROUND(A1,"1:00:00")

#### xlmaniac

##### Well-known Member

Re: How To Convert Total OT Hour Conditioallly?

Nope, doesnt work with your recent example

I have checked but it is not yielding the desired result.
Could you pls suggest some other formula?
Thanks

#### xlmaniac

##### Well-known Member
Re: How To Convert Total OT Hour Conditioallly?

I tried with MROUND before(with 1:00) but it is populating the incremental Hour over and above 24 Hours.
Pls help.

#### Special-K99

##### Well-known Member
Re: How To Convert Total OT Hour Conditioallly?

I tried with MROUND before(with 1:00) but it is populating the incremental Hour over and above 24 Hours.
Pls help.

Am not sure what you mean.
It works for the examples you gave, hence my comment of trying other examples.

#### xlmaniac

##### Well-known Member
Re: How To Convert Total OT Hour Conditioallly?

Am not sure what you mean.
It works for the examples you gave, hence my comment of trying other examples.

It is now working.
It was an formatting error which after correction is yielding desired result.
Thanks a lot for your support & time.
Really appreciate the same.
Regards

Replies
9
Views
40
Replies
3
Views
50
Replies
2
Views
52
Replies
1
Views
396
Replies
0
Views
105