Results 1 to 6 of 6

VBA to calculate the amount of time that falls between the time recorded in two cells.

Threaded View

  1. #1
    Forum Contributor jonvanwyk's Avatar
    Join Date
    06-28-2010
    Location
    Iowa, USA
    MS-Off Ver
    Excel 2010
    Posts
    452

    VBA to calculate the amount of time that falls between the time recorded in two cells.

    I am trying to create a formula that calculates the following:

    "If C5 = X then calculate how much time between B5 and B6 is from 0700 to 1500?"

    Whereas, If B5 = 0300, and B6 = 1100, then the formula above should return an answer of 4.00 because out of 0300 to 1100, 4 hours falls between 0700 to 1500. Any assistance with this is greatly appreciated!
    Last edited by jonvanwyk; 07-17-2012 at 01:20 PM.

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