# Dividing af formula for elapsed time with a fixed(static) time

1. ## Dividing af formula for elapsed time with a fixed(static) time

Hi all,

First post here, and in a bit of a tight spot.
I have a formula:
=NOW()-TIME(8;0;0) to calculate time elapsed at work
that I want to divide by hours we are open at work; a fixed value of 12:00:00 (hrs)

When I divide them and want it in percent, I get a huge number (8388459,8% e.g.)

If I plot the formula's result in manually I get the correct percentage out. Both cells are the same format in time.

Could you help me out? I've searched as much as I could, and the only thing I find is a macro to plot the result of =NOW()-TIME(8;0;0) in another cell.

Thanks!

Christopher  Register To Reply

2. ## Re: Dividing af formula for elapsed time with a fixed(static) time

Instead of using NOW() use NOW()-INT(NOW()).

NOW() returns the date plus the time.  Register To Reply

3. ## Re: Dividing af formula for elapsed time with a fixed(static) time

Try:
Formula:  `Please Login or Register  to view this content.`

or
Formula:  `Please Login or Register  to view this content.`  Register To Reply

4. ## Re: Dividing af formula for elapsed time with a fixed(static) time

Thanks guys it worked! I used the =NOW()-INT(NOW())-TIME(8;0;0) which worked. The two formulas you mentioned, Olly, gave me some erroneous times.
Thanks again   Register To Reply

5. ## Re: Dividing af formula for elapsed time with a fixed(static) time

You're welcome. Thanks for the feedback!   Register To Reply

There are currently 1 users browsing this thread. (0 members and 1 guests) 