Results 1 to 1 of 1

Excel Date Function Error

Threaded View

  1. #1
    Registered User
    Join Date
    08-21-2009
    Location
    Ames, Iowa
    MS-Off Ver
    Excel 2007
    Posts
    5

    Excel Date Function Error

    I'm trying to display the total number of hours worked. The values are coming from Access. When I preform the query in Access, it displays around 1.3 hours, which relates into 1 day and 7 hours. I want Access to display 31:00.

    The query returns the value of 1.3 into a date variable named sup_hours

    using the immediates window I did

    ? sup_hours
    12/31/1899 7:00:00 AM

    if I try to do

    ? format(sup_hours, "[h]:mm")
    :12

    I don't know what :12 means at all, all time values are in full hours, so there should be no minutes at all. Hopefully someone is able to help me, I've been all around the internet looking for a solution to this problem.
    Last edited by huck2isu2; 08-21-2009 at 01:21 PM.

Thread Information

Users Browsing this Thread

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

Tags for this Thread

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