+ Reply to Thread
Results 1 to 2 of 2

Problem with Time Output from Array.

  1. #1
    Registered User
    Join Date
    07-10-2009
    Location
    Malaysia
    MS-Off Ver
    Excel 2007
    Posts
    1

    Unhappy Problem with Time Output from Array.

    Hello,

    I hope someone can assist me with this macro, I'm fairly new to this stuff, and I'm trying to learn, but have hit a brick wall.

    The problem: I have the macro read a time on a different sheet - format is hh:mm:ss, and I'm trying to get a output in seconds. It has to be in an array as I have all kinds of data all over the place in the feeder sheet which the array searches, collects and then outputs..

    My problem is with either one (or both) of these 2 lines in the macro..

    Either:
    Please Login or Register  to view this content.
    or

    Please Login or Register  to view this content.
    If the input is 00:16:08, the output is suppose to be 986, however I get 1489 from one of the above lines (I'm not sure which line)..

    Can anyone assist please??

    Thank You

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

    Re: Problem with Time Output from Array.

    Assuming F10 is a variable (and not a misused cell address like it looks), then to convert from an Excel date/time to seconds,

    Please Login or Register  to view this content.
    Entia non sunt multiplicanda sine necessitate

+ 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