decimal time convertor

Hi

I want to create a simple form or calculator that will sit in an exsisting spredsheet that will allow user to enter a time that will display the decimal time so they can update a value in the same sheet
Hope that makes sense
Thanks
Walker85Asked:
Who is Participating?
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.

Nurul Furqon Rohmat SyahMaintenance PlannerCommented:
What do you need exactly please send an example file


br

Nurul
0
Walker85Author Commented:
Think you I will dig  one out as soon as I can
0
David Johnson, CD, MVPOwnerCommented:
by decimal time do you mean 8:15 = 8.25 or do you want the internal time value that is stored in a datetime field?
0
Introducing Cloud Class® training courses

Tech changes fast. You can learn faster. That’s why we’re bringing professional training courses to Experts Exchange. With a subscription, you can access all the Cloud Class® courses to expand your education, prep for certifications, and get top-notch instructions.

Walker85Author Commented:
Yes. So 25 50 75 etc
0
Robberbaron (robr)Commented:
I suspect you want the 'form' to be floating , so it can be used anywhere on the sheet ?

would a split screen work ?  that way you can use a simple formula formatted as number ?
=(B1-INT(B1))*24

Open in new window

timeout.xlsx
0
Walker85Author Commented:
Hi sorry about delay in replying I have been away this looks like the answer it will be used to monitor lateness so for example if some was 36 mins late it would convert to decimal
0
Martin LissOlder than dirtCommented:
If a person was supposed to be somewhere at 8AM and they arrive at 8:15, what should the answer be?
0
Walker85Author Commented:
The card would be updated with Late 0.25,
0

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
Martin LissOlder than dirtCommented:
Assuming that the expected time (like 8:00) is in A1 and the arrival time (like 8:15) is in B1 then this will give the decimal difference.
=MOD(B1-A1,1)*24

The MOD portion of the formula allows the calculation to work if the expected time and the arrival time cross midnight.

Note that the column where the formula resides needs to be formatted as a number with 2 (or however many you want) decimal places.
0
Martin LissOlder than dirtCommented:
If you want to take into account that someone could be early then use this

=IF(A1>B1,MOD(A1-B1,1)*-24,MOD(B1-A1,1)*24)

which will show the difference with a negative sign.
0
aikimarkCommented:
You can simplify the calculation thusly:
=((B1-A1)*1440)/60

Open in new window

0
Walker85Author Commented:
I have not selected my comment
0
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.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.