General discussion

Time in Excel

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 hh.mm.ss
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
Follow
Reply to: Time in Excel
PLEASE NOTE: Do not post advertisements, offensive materials, profanity, or personal attacks. Please remember to be considerate of other members. If you are new to the CNET Forums, please read our CNET Forums FAQ. All submitted content is subject to our Terms of Use.
Reporting: 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.
Comments
- Collapse -
Re: times 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.

Kees

- Collapse -
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.
Cyberslick

CNET Forums