+ Reply to Thread
Results 1 to 5 of 5

Starting and stopping equations in specific cells in excel

  1. #1
    Registered User
    Join Date
    11-01-2017
    Location
    London
    MS-Off Ver
    2013
    Posts
    5

    Starting and stopping equations in specific cells in excel

    Hi Guys,

    I have a number of equations within a table in excel which calculate using the current time, and I would like to be able to stop one equation running, and start a second equation, but without loosing the final value displayed within the cell from the first equation.
    I have seen that you can stop all calculations from being automatic within "calculation Options" but I have other equations simultaneously running which i need to keep going throughout as this other column of equations starts and stops. Hope that makes sense.

    thank you in advance,

    regards,

    Gareth

  2. #2
    Forum Expert ben_hensel's Avatar
    Join Date
    01-26-2012
    Location
    Northeast USA
    MS-Off Ver
    Office 365
    Posts
    2,043

    Re: Starting and stopping equations in specific cells in excel

    Fundamentally what NOW() does, is whenever the function runs, the function goes and asks the motherboard what the current clock-time is, and uses that.

    It doesn't have any way to "remember" what the cell was, it will recalculate every time you tell the sheet to recalculate.

    You're probably better off instead making it a reference a cell, and using that cell to hold a timestamp. Fill the timestamp using CTRL+SHIFT+: (that's control, plus shift, plus the colon key all at once, as a keyboard shortcut); another option is to bind a tiny little macro (Allen Wyatt explains it) and bind that to a button or something, which you click to reset the timestamp.
    Click the [* Add Reputation] Button to thank people for help!
    Post Attachment: Click [Go Advanced] under the reply box; then click [Manage Attachments] to launch the attachments dialogue.
    Mark Thread Solved: Go to the top of the first post; Select [Thread Tools] dropdown; Pick the [Mark thread as Solved] option.

  3. #3
    Registered User
    Join Date
    11-01-2017
    Location
    London
    MS-Off Ver
    2013
    Posts
    5

    Re: Starting and stopping equations in specific cells in excel

    Hi Ben,

    Thank you for your reply, Essentially what i am trying to do is show the volume of fluid remaining over an unspecified time, when knowing the volume loss per minute and the initial starting volume. What i have is in cell A1, I have a clock with the current time, in cell F12 i have a static time of when the equation started, and in cell G12 i have the equation which counts down the volume remaining as a live value from the specified initial volume, using the difference between the start and current time and the volume loss per minute. Ideally i would be able to stop the equation "at the push of a button" and the cell would remain the shown value when the equation stops. I hope that makes sense with what i am trying to achieve.
    thank you

    Gareth

  4. #4
    Forum Expert ben_hensel's Avatar
    Join Date
    01-26-2012
    Location
    Northeast USA
    MS-Off Ver
    Office 365
    Posts
    2,043

    Re: Starting and stopping equations in specific cells in excel

    Are you using VBA to keep it "animated" instead of just updating calculations when the workbook's state changes or what? Then click the button to tell the VBA to stop updating. It really depends on the specifics of how you're getting Excel into making a video for you.



    Also this is not relevant to the question precisely (it's something I just happen to know from IRL), but flow rate will probably not be constant over time -- if it's emptying from gravity it will be dependent on height, and if it's pumped it will be dominated by the pump curve. I mean if it's something like a small change in net height over the time interval it might be a negligible change in flow rate (maybe if you're, like, slowly draining a pool or something), so you might get away with approximating it as constant, but maybe not?

  5. #5
    Registered User
    Join Date
    11-01-2017
    Location
    London
    MS-Off Ver
    2013
    Posts
    5

    Re: Starting and stopping equations in specific cells in excel

    yeah using vba to keep the clock "ticking" to show a live time reading, and the application is to predict fuel usage in a race car, so the fuel is being pumped out at a constant flow rate over time, the flow rate will differ depending what Calibration mode the engine is in, fuel saving, yellow flag, pit ect, but i can account for that within another piece of code, but essentially trying to predict the fuel remaining in the car as a live value.

+ 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. Replies: 4
    Last Post: 07-30-2015, 11:28 AM
  2. [SOLVED] Extract Text Elements in a Cell providing stnd Starting/Stopping point.
    By Miskondukt in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 02-13-2014, 02:48 PM
  3. SUM row starting at marker, stopping at threshold, return corresponding date
    By dukeofperl in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 02-19-2012, 02:07 PM
  4. Stopping Formula at a value? Then starting again?
    By cherabella in forum Excel General
    Replies: 1
    Last Post: 01-11-2012, 07:24 PM
  5. [SOLVED] Starting and stopping Ontime
    By EW in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 04-12-2006, 09:10 PM
  6. Starting/Stopping Worksheet Event Code
    By Paul987 in forum Excel General
    Replies: 1
    Last Post: 03-20-2006, 12:45 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