We’d like to remind Forumites to please avoid political debate on the Forum.
This is to keep it a safe and useful space for MoneySaving discussions. Threads that are – or become – political in nature may be removed in line with the Forum’s rules. Thank you for your understanding.
📨 Have you signed up to the Forum's new Email Digest yet? Get a selection of trending threads sent straight to your inbox daily, weekly or monthly!
The Forum now has a brand new text editor, adding a bunch of handy features to use when creating posts. Read more in our how-to guide
Another excel question
foshank
Posts: 28 Forumite
in Techie Stuff
I have been trying to add and display duration time in excel. I want to be able to add and display total time in minutes and seconds only. I have been formatting the cells under custom using [h]:ss. But when I enter data, the resulting figure is wrong. Am I entering the data incorrectly or am I missing a step?
0
Comments
-
So what result are you entering and what result are you expecting?=MOD((E14-D14),1)*24 will show you the difference between the end time (in E14), and the start time in D14.(remember to apply appropriate formatting) so if you enter 9:30 in D14 and 17:00 in E14, the formula should show you 7.5. It should work (in theory) for any denomination assuming you set the filter up correctly.0
-
My wife has to undertake a set of different exercises every day and has to record the time elapsed in minutes and seconds. I wish to enter say for example 35mins and 20 secs today. Tomorrow may be 33 min and 49 sec. I wish to add the total time for a month and then display the average daily time in mins and secs. Is that possible in excel?Neil_Jones said:So what result are you entering and what result are you expecting?=MOD((E14-D14),1)*24 will show you the difference between the end time (in E14), and the start time in D14.(remember to apply appropriate formatting) so if you enter 10:00 in D14 and 17:00 in E14, the formula should show you 7.0 -
You say you used custom format [h]:ss, surely you want [m]:ss for minutes and seconds?Formatting cells in a particular way for display purposes doesn't always mean the input is interpreted how you would like it to be. Excel will interpret input of 33:22 as 33 hours and 22 minutes, even if the cells are custom formatted [m]:ss, you need to input as 0:33:22 to get the correct result.
If you have durations greater than one hour, e.g. 70 minutes and 5 seconds you can enter either as 0:70:05 or as 1:10:05, with cell formatted as [m]:ss both will display as 70:05
You can sum and average these values just as you would any other numbers in excel - just make sure the result cells are also formatted [m]:ss1 -
Many thanks @double_dutchy. I did have [m]:ss on my spreadsheet; my original post contained a typo. As there is a separate [h]:mm:ss option I did not realise that I still needed to include the extra 0: to account for the missing hour. At least everything is now up and running smoothly0
Confirm your email address to Create Threads and Reply
Categories
- All Categories
- 353.5K Banking & Borrowing
- 254.1K Reduce Debt & Boost Income
- 455K Spending & Discounts
- 246.6K Work, Benefits & Business
- 602.9K Mortgages, Homes & Bills
- 178K Life & Family
- 260.5K Travel & Transport
- 1.5M Hobbies & Leisure
- 16K Discuss & Feedback
- 37.7K Read-Only Boards