• Hi All

    Please note that at the Chandoo.org Forums there is Zero Tolerance to Spam

    Post Spam and you Will Be Deleted as a User

    Hui...

  • When starting a new post, to receive a quicker and more targeted answer, Please include a sample file in the initial post.

Time computation

Hello Everyone,

May I seek assistance please for creating a formula in computing for a total number of hours given a set of days with number of hours in string of text with letters and numbers combined.
ex:
post = 5h 5m, pre = 2h 57m would give you a sum of 8h 3m
pre = 6h 15m would give you 6h 15m

please find attached file.

thanks in advance
 

Attachments

  • OT Computation.xls
    28.5 KB · Views: 4
Hi dieselkhan,

sorry for any confusion, i've re-attached a new file, highlighting where should the formula be from the data to be extracted.

pre = 2h 55m, post = 1h 15m pre columns should contain 2
and 55 on the hour and minute columns accordingly while 1 and 15 on the post, hour and minute accordingly.

hope this clarifies things and thanks for your help.
 

Attachments

  • OT Computation.xls
    30.5 KB · Views: 6
you may also check on the formula from other columns, should you think there may be some enhancement to be made, please do so. thanks once again
 
Hi Narayank991,

Thanks for the help and the file attached. But there is still some minor issue though, the data on the "post-hr" is being read also as "pre-hr", should there be no "pre-hr" data available, and therefore computes it twice in the end.

any help once again for adjustment please. thanks
i've re-attached the file, narayank991 sent.
 

Attachments

  • OT Computation (1).xlsx
    12.2 KB · Views: 3
Hi ,

Sorry , my mistake in thinking SUBSTITUTE accepts wildcards.

See the attached file.

Narayan
 

Attachments

  • OT Computation (1) (1).xlsx
    11.9 KB · Views: 10
Back
Top