+ Reply to Thread
Results 1 to 4 of 4

using the display value, not the true value

  1. #1
    Registered User
    Join Date
    12-27-2009
    Location
    England
    MS-Off Ver
    Excel 2007
    Posts
    13

    using the display value, not the true value

    Hi

    I've got a cell to work out the difference in time between two time values. For example, 06:30 - 05:30 gives me a value of 60 minutes (all cells formatted to time). All good so far.

    The problem comes when I try to multiply a value against the 60. For example, 6 sessions * 60 minutes should = 360, but I keep getting 0.25. It's because it's converting the time to a number which gives 0.04.

    Is there a formula that says to use the value shown, not the value behind the workings?

    Hope this all makes sense!

    Thanks
    Richard

  2. #2
    Forum Expert teylyn's Avatar
    Join Date
    10-28-2008
    Location
    New Zealand
    MS-Off Ver
    Excel 365 Insider Fast
    Posts
    11,372

    Re: using the display value, not the true value

    Richard, how is your cell showing 60 formatted? What is the data type of that cell? If it's a time value, then you need to do something like

    =(A1-B1)*60*24

    and format to general. Then the result is the number 60 and you can use it for further calculations.

    hth

  3. #3
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678

    Re: using the display value, not the true value

    Or just format the result you have as h:mm, which will show 6:00 (6 hours)
    Entia non sunt multiplicanda sine necessitate

  4. #4
    Registered User
    Join Date
    12-27-2009
    Location
    England
    MS-Off Ver
    Excel 2007
    Posts
    13

    Re: using the display value, not the true value

    Quote Originally Posted by teylyn View Post
    Richard, how is your cell showing 60 formatted? What is the data type of that cell? If it's a time value, then you need to do something like

    =(A1-B1)*60*24

    and format to general. Then the result is the number 60 and you can use it for further calculations.

    hth
    Perfect, thanks!
    Richard

+ 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