+ Reply to Thread
Results 1 to 12 of 12

Determining maximum time value in mm:ss

  1. #1
    Forum Contributor
    Join Date
    06-22-2010
    Location
    Sydney, Australia
    MS-Off Ver
    Excel 2003
    Posts
    152

    Determining maximum time value in mm:ss

    Hi, I have an excel report into which I paste the maximum wait time for a number of queues, where the last column is the maximum value. Excel does not appear to like mm:ss (it turns the seconds into the minutes column and makes all the seconds zeroes) so I have managed to make this work using hh:mm but yesterday we had a call wait over 24 mins and now the value 24:41 appears as 0:41, presumable because you cannot have more than 24 hours in a day. The MAX value for the day no longer works and appears as 0:00.

    What format can I use for these cells to make them appear as duration in mm:ss (and not a point in time) and that will allow me to get the maximum value for the rows above? I'm going quietly crazy with this so any help much appreciated.

    Max Delay
    16:36
    13:28
    5:28
    7:39
    24:41
    11:38
    12:30
    :00
    15:39
    6:06
    00:00
    Last edited by greyscale; 12-13-2010 at 09:53 PM.

  2. #2
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: Determining maximum time value in mm:ss

    post a sample work book!
    "Unless otherwise stated all my comments are directed at OP"

    Mojito connoisseur and now happily retired
    where does code go ?
    look here
    how to insert code

    how to enter array formula

    why use -- in sumproduct
    recommended reading
    wiki Mojito

    how to say no convincingly

    most important thing you need
    Martin Wilson: SPV
    and RSMBC

  3. #3
    Forum Expert daddylonglegs's Avatar
    Join Date
    01-14-2006
    Location
    England
    MS-Off Ver
    2016
    Posts
    14,675

    Re: Determining maximum time value in mm:ss

    Formatting like mm:ss only affects the way the data is displayed, not how the data is interpreted. 12:45 will always be interpreted as 12 hours and 45 minutes however the cell is formatted.

    If you want Excel to interpret that as 12 minutes and 45 seconds then you need to input as 0:12:45....but if you can't change the value to be imported you might have to settle for hours and minutes to stand in for minutes and hours. You can use a format of [h]:mm (with square brackets) which would allow the display of more then 23....
    Audere est facere

  4. #4
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Determining maximum time value in mm:ss

    Actually, Excel deals with time values just fine. Perhaps you are entering them as hours/mins thinking you are entering min/sec.

    If you post an actual workbook where we can see what you're entering directly into the workbook and highlight the formulas that are giving you unwanted results, we can resolve it for you I'm sure.

    Click GO ADVANCED and use the paperclip icon to post up a desensitized copy of your workbook. Make sure it's clear where the errors are and what you'd prefer the answer(s) to be.
    _________________
    Microsoft MVP 2010 - Excel
    Visit: Jerry Beaucaire's Excel Files & Macros

    If you've been given good help, use the icon below to give reputation feedback, it is appreciated.
    Always put your code between code tags. [CODE] your code here [/CODE]

    ?None of us is as good as all of us? - Ray Kroc
    ?Actually, I *am* a rocket scientist.? - JB (little ones count!)

  5. #5
    Forum Contributor
    Join Date
    06-22-2010
    Location
    Sydney, Australia
    MS-Off Ver
    Excel 2003
    Posts
    152

    Re: Determining maximum time value in mm:ss

    Thanks for your quick replies. Company security prevents me from posting the entire document but on the attached file i have shown the column 'Max Delay' that I am having problems with and the picture of the report that I paste it from. It is pasted using the reports export function so i am only able to export in seconds or mm:ss. You can see that row 7 has not exported as per the picture and that the format of the cell is now different from the others and appears to have a date in front.
    Attached Files Attached Files

  6. #6
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Determining maximum time value in mm:ss

    I just changed the formatting of those cells to [h]:mm and I think it does exactly what you want.

  7. #7
    Forum Contributor
    Join Date
    06-22-2010
    Location
    Sydney, Australia
    MS-Off Ver
    Excel 2003
    Posts
    152

    Re: Determining maximum time value in mm:ss

    Ah yes. I tried that before but it was turning it into hours and this is mgmt report. If i change the custom format to remove seconds it does exactly what I need. Thank you!!!!!

  8. #8
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Determining maximum time value in mm:ss

    Don't misunderstand me, I've helped you resolve the DISPLAY problem. The data is incorrectly entered for what you need it to be.

    In the next column over, you could convert the values back to minutes with the formula:

    =B3/60

    ...then format that as mm:ss

  9. #9
    Forum Contributor
    Join Date
    06-22-2010
    Location
    Sydney, Australia
    MS-Off Ver
    Excel 2003
    Posts
    152

    Re: Determining maximum time value in mm:ss

    Thanks, Jbeaucaire. I can't easily change the layout of the reports without mgmt approval but I can simply change the format of the existing cells which would mean leaving it at [h]:mm without the additional column to convert the format back to mm:ss. What problems would it cause to leave it at [h]:mm?

  10. #10
    Valued Forum Contributor squiggler47's Avatar
    Join Date
    02-17-2009
    Location
    Littleborough, UK
    MS-Off Ver
    Excel 3.0 to 2007+2010! (couldnt get 2.1 working)
    Posts
    1,013

    Re: Determining maximum time value in mm:ss

    One "cludge!" you could do is to put 00:24:00 in a cell, copy it and paste special multiply over your data, you can then format as mm:ss, although you have to be aware of the ":00" type values!

    incidentally, your sheet gives the correct maximum in Excel 2010!
    Regards
    Darren

    Update 12-Nov-2010 Still job hunting!

    If you are happy with the results, please add to our reputation by clicking the blue scales icon in the blue bar of the post.

    Learn something new each day, Embrace change do not fear it, evolve and do not become extinct!


  11. #11
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Determining maximum time value in mm:ss

    Quote Originally Posted by greyscale View Post
    What problems would it cause to leave it at [h]:mm?
    The problems are that you are seeing one thing and it is actually another. The "problems" that could introduce are limited only by the universe and what unknown things you may try to do with the data later, or someone else.

    Nothing may ever go wrong, too. But if it does, my only worry is that you won't even know that it has happened, something all too possible with data that looks correct but secretly is not.
    Last edited by JBeaucaire; 12-14-2010 at 05:01 AM.

  12. #12
    Forum Contributor
    Join Date
    06-22-2010
    Location
    Sydney, Australia
    MS-Off Ver
    Excel 2003
    Posts
    152

    Re: Determining maximum time value in mm:ss

    Yes, that's my concern too, JBeaucaire. For now I will leave as is an highlight in red to remind the user who runs the report to manually check that data is updating OK. Thanks to everyone for their replies.

+ 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