+ Reply to Thread
Results 1 to 3 of 3

Excel VBA Beginner problem in time calculations

  1. #1
    Registered User
    Join Date
    02-22-2020
    Location
    london
    MS-Off Ver
    2007
    Posts
    2

    Post Excel VBA Beginner problem in time calculations

    Hi, Experts.

    I'm looking for a excel vba time calculation solution for a small project. I want to subtract the estimated time of work completion of certain cells with a running local current time. I did manage to subtracted it from current local time in another cell but i want to stop the calculation when it reaches the estimated time of work completion.

    For example

    A = 23:00:00 (Current local time which is updated accordingly as system time every second)
    B = 10:05:00 (Fixed estimated time for work completion in next day)
    C = 9:55:00 (calculated result of time variation between A & B in C cells which keep changes according to the current local time with =MOD((BX-AX), 1)


    Result of C is ok and keep changing accordingly with the current local time. But, i want to stop the calculation of C cells once the current time value (A) = (B) in C cells and stop it from recalculation with display of "00:00:00" once the calculation result reach to the fixed value of B. I know, its only possible with VBA. Pls, help me out.

    Thanking you all in advance
    Last edited by Excel 22; 02-22-2020 at 04:10 PM.

  2. #2
    Registered User
    Join Date
    01-04-2020
    Location
    Hull, UK
    MS-Off Ver
    2016
    Posts
    60

    Re: Excel VBA Beginner problem in time calculations

    Here's one option



    Please Login or Register  to view this content.
    Attached Images Attached Images
    Attached Files Attached Files
    Last edited by juddaaaa; 02-22-2020 at 05:10 PM.

  3. #3
    Registered User
    Join Date
    02-22-2020
    Location
    london
    MS-Off Ver
    2007
    Posts
    2

    Re: Excel VBA Beginner problem in time calculations

    Thank u , Juddaaaa, It worked very well once i inserted > sign in front of if command = sign. I really appreciate your help and your knowledge to share it with me. Thanking you from heart.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Problem with Userform working - maybe calculations are to big to do it by Excel?
    By jaryszek in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 08-23-2016, 06:25 AM
  2. [SOLVED] Excel VBA beginner problem
    By Branko123 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 03-14-2015, 04:31 PM
  3. [SOLVED] Excel formula for subtracting time. (Beginner here)
    By icetoken in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 03-09-2015, 03:51 PM
  4. Time calculations in Excel
    By One Strange Guy in forum Excel General
    Replies: 1
    Last Post: 08-04-2014, 02:58 AM
  5. Hi Guys, am facing problem while doing some excel calculations
    By navneetvyas in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 04-25-2013, 04:57 AM
  6. beginner's problem
    By fidley in forum Excel General
    Replies: 2
    Last Post: 04-10-2009, 05:46 AM
  7. Calculations in Time Problem
    By scottymelloty in forum Excel General
    Replies: 6
    Last Post: 11-29-2005, 12:10 PM

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