Office & Productivity Software forum

General discussion

Time in Excel

by brakewell / August 28, 2009 5:14 AM PDT

Hi Everybody
Does anybody know how to take one time away from another ie 17.18.00 away from 18.00.00 = 42mins.
The cells concerned are formated in Time
Taking the 17.18.00 from the 18.00.00 leaves me with a #VALUE!
Also how do you show the time without the seconds.
I've looked in format cells but all formated time seems to have the seconds included.
Many Thanks in antisipation of your replies.
Tony B.

Discussion is locked
You are posting a reply to: Time in Excel
The posting of advertisements, profanity, or personal attacks is prohibited. Please refer to our CNET Forums policies for details. All submitted content is subject to our Terms of Use.
Track this discussion and email me when there are updates

If you're asking for technical help, please be sure to include all your system info, including operating system, model number, and any other specifics related to the problem. Also please exercise your best judgment when posting in the forums--revealing personal information such as your e-mail address, telephone number, and address is not recommended.

You are reporting the following post: Time in Excel
This post has been flagged and will be reviewed by our staff. Thank you for helping us maintain CNET's great community.
Sorry, there was a problem flagging this post. Please try again now or at a later time.
If you believe this post is offensive or violates the CNET Forums' Usage policies, you can report it below (this will not automatically remove the post). Once reported, our moderators will be notified and the post will be reviewed.
Collapse -
Re: times in Excel
by Kees Bakker / August 28, 2009 6:09 AM PDT
In reply to: Time in Excel

How I did it!

I entered 18:00 in A1, 17:18 in B1 and =A1-A2 in C1. And guess what, C1 showed 0:42. That's what you want?

If I were you, I shouldn't use a decimal point. 17.18.00 isn't a valid number, nor a valid time, so it's interpreted as text. And you can't subtract texts (try: "John Doe" minus "Barrack").

As for formatting without seconds, try custom format (last choice in the box). Then hh:mm

It's as simple as it can be, once you know it.


Collapse -
Times in Excel
by Cyberslick / September 8, 2009 9:55 AM PDT
In reply to: Re: times in Excel

I agree. Excel can be very finicky about the formats of dates and time, so always use the colon as a separator when writing time values.
Regarding formatting time without seconds, again I agree! If you aren't familiar with the custom formatting facility, DO spend some time playing with it. You can create formats for just about anything you want to see.

At the top of your Excel display, click FORMAT, then Cells..., then the Number tab, then Custom. In the slot at the top that says General, type in the format you want, and it will stay in the custom list until you delete it. (Don't forget to delete the formats you create but don't like. I think there's a limit to how many you can create.)

To delete the seconds, type hh:mm in the input slot, then assign that format to your cell. This doesn't delete the seconds from the stored value, but it does remove them from the display of the value.

Really, look into custom formatting ... you'll love it once it becomes familiar. Use the Excel help facility to give you some pointers.

Popular Forums
Computer Newbies 10,686 discussions
Computer Help 54,365 discussions
Laptops 21,181 discussions
Networking & Wireless 16,313 discussions
Phones 17,137 discussions
Security 31,287 discussions
TVs & Home Theaters 22,101 discussions
Windows 7 8,164 discussions
Windows 10 2,657 discussions


Help, my PC with Windows 10 won't shut down properly

Since upgrading to Windows 10 my computer won't shut down properly. I use the menu button shutdown and the screen goes blank, but the system does not fully shut down. The only way to get it to shut down is to hold the physical power button down till it shuts down. Any suggestions?