Subtract a time from a time amount in a cell using a formula in another cell.

I have a spreadsheet to calculate time worked in a week.
The daily times are added together.
Then an amount of 45 hours should be deducted from the weekly time to calculate the overtime.
I get the weekly total time (R8), but cannot create the formula to subtract 45 hours from R8 in U8.
Put differently: How do I write a formula in U8 that gives me the total time in R8 minus 45 hours?
Picture below and worksheet attached.
The example worksheet picture.Time.xlsx
Fritz PaulAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Kyle AbrahamsSenior .Net DeveloperCommented:
u8 = R8 - time(45, 0, 0)
Rodney EndrigaData AnalystCommented:
You can use this formula in Cell U8:

Open in new window

This is the normal format for the TIME function. You can also include minutes and seconds in the appropriate sections, if needed.

TIME ( hours, minutes, seconds)
Saurabh Singh TeotiaCommented:
You need to use this formula in U8


Open in new window


Time(45,0,0) Won't go more then 24 hours and the answer will be 0.88 rather 1.88 which is the correct answer in this case...

Enclosed your file for your reference...


Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Kyle AbrahamsSenior .Net DeveloperCommented:
I stand corrected, good to know.
Fritz PaulAuthor Commented:
Thanks. Superb.
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Microsoft Excel

From novice to tech pro — start learning today.