+ Reply to Thread
Results 1 to 3 of 3

How can one zero out or drop the seconds in a time format?

  1. #1
    Registered User
    Join Date
    07-06-2011
    Location
    North Dakota, USA
    MS-Off Ver
    Excel 2010
    Posts
    4

    How can one zero out or drop the seconds in a time format?

    Hello - 1st off, I just want to say that this forum has been a great source of information when dealing with excel help - GREAT JOB.

    I have been having an issue I just can not seem to get to work correctly. I am not even sure if I am going about it the right way or if I am just missing one little detail.

    Over all picture, I am trying to create a time sheet that will automatically import the time stamp activity: Shift Start, Lunch Start, Lunch End, & Shift End from an updated pivot table spreadsheet. The information in the pivot table is text only data.

    I have been able to figure out how to import the time stamp from the pivot table + converting from text to time format. The problem I am having is, I want to drop the seconds off the time so it is just hh:mm. I have tried changing the cell format to time hh:mm format, but when I start doing the calculations/converting to decimal to figure out how many hours worked, it still figuring the seconds (that are not showing in hh:mm cell format).

    The sample I uploaded contains the time sheet I have created with a small sample of the pivot table.

    fyi: the pivot table is structured so only the design can be changed, but none of the data.

    Basically I just want to the hours and minutes to be either imported over or have the seconds dropped/zeroed out before or during the conversion/calculations.

    Can someone please help me out and see if there is anyway this can be achieved?

    I am sure you guys can figure it out in 5 minutes or less. I am know just enough to know I do not know enough about excel

    Thank You
    Attached Files Attached Files
    Last edited by Boon; 07-06-2011 at 04:12 AM.

  2. #2
    Forum Expert sweep's Avatar
    Join Date
    04-03-2007
    Location
    Great Sankey, Warrington, UK
    MS-Off Ver
    2003 / 2007 / 2010 / 2016 / 365
    Posts
    3,454

    Re: How can one zero out or drop the seconds in a time format?

    Hi,

    In E6 and copied where required, try this

    Please Login or Register  to view this content.
    Rule 1: Never merge cells
    Rule 2: See rule 1

    "Tomorrow I'm going to be famous. All I need is a tennis racket and a hat".

  3. #3
    Registered User
    Join Date
    07-06-2011
    Location
    North Dakota, USA
    MS-Off Ver
    Excel 2010
    Posts
    4

    Re: How can one zero out or drop the seconds in a time format?

    Sweep - you are the excel formula guru. Thank you so much.

    I noticed the 'Time' function, but never thought to look at the options for that function.

    Thanks again, my hat is off to you.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1