+ Reply to Thread
Results 1 to 20 of 20

Accumulate then Redeem (?)

Hybrid View

  1. #1
    Registered User
    Join Date
    08-04-2013
    Location
    Bristol, England
    MS-Off Ver
    Excel 2010
    Posts
    11

    Re: Accumulate then Redeem (?)

    Sorry I've just realised that macros just repeat a process you've taught them - so it wouldn't work as I mentioned above...

    I'm sure there must be a way around this - perhaps I could use a forumla that would only take into account values entered after a certain date (i.e. date of last fill up)?

  2. #2
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: Accumulate then Redeem (?)

    Quote Originally Posted by Tr1gg0R View Post
    Sorry I've just realised that macros just repeat a process you've taught them - so it wouldn't work as I mentioned above...

    I'm sure there must be a way around this - perhaps I could use a forumla that would only take into account values entered after a certain date (i.e. date of last fill up)?
    Hi,

    No you are incorrect. Whilst at their very simplest macros may simply play a recorded series of key strokes, most of the time macros perform much more powerful functionality than that. They can interact with the user, prompt for more information, perform logic tests and take different directions depending on the state of various conditions.

    The macro I gave you will do exactly as you have described. It will work out the next blank row and change the formula accordingly every time you click the button. You will of course need to choose to Enable Macros when prompted on opening the workbook.

    As I suggested you could use a formula but there needs to be some condition the formula can detect. You mention the date of the last fill up but your current example doesn't record any dates - or indeed any other factor which would indicate a fill up has taken place. That was exactly the point I was making in my previous post. If you want to change your workbook to record such a fact then upload another one. However since the macro version is straightforward and avoids the need to log a 'fill up' personally I'd stick with that.
    Richard Buttrey

    RIP - d. 06/10/2022

    If any of the responses have helped then please consider rating them by clicking the small star icon below the post.

+ 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. Accumulate a value into one cell if...
    By lovethepirk in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 12-16-2012, 11:33 AM
  2. Replies: 1
    Last Post: 06-01-2012, 06:07 PM
  3. How to accumulate time
    By michaelkwc in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 05-21-2008, 12:14 AM
  4. Accumulate
    By benthinkin in forum Excel General
    Replies: 1
    Last Post: 11-15-2007, 08:07 PM
  5. [SOLVED] accumulate
    By exhausted everything in forum Excel General
    Replies: 1
    Last Post: 03-14-2006, 11:30 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