+ Reply to Thread
Results 1 to 6 of 6

A formula for accruing values that are regularly deleted?

  1. #1
    Registered User
    Join Date
    01-08-2015
    Location
    Maine, USA
    MS-Off Ver
    2010
    Posts
    3

    A formula for accruing values that are regularly deleted?

    My apologies for the vagueness, but I was limited on space.

    Basically, I'd like to have two different cells, one that can have values continuously added and deleted while having the total of all values added accrued into the second cell. This is for business purposes so that employees can continuously add their values for the day, then delete it so the next one can enter theirs.

    Any help would be greatly appreciated.

  2. #2
    Registered User
    Join Date
    09-14-2004
    Location
    Jämtland, Sweden
    Posts
    16

    Re: A formula for accruing values that are regularly deleted?

    OK, not 100% sure that I understand but here's an attempt
    There's a small piece of VBA code in the ThisWorkbook object that performs the calculation.
    The two cells are named "Value" and "Result" so that they can be placed anywhere on any sheet in the workbook.
    Attached Files Attached Files

  3. #3
    Registered User
    Join Date
    01-08-2015
    Location
    Maine, USA
    MS-Off Ver
    2010
    Posts
    3

    Re: A formula for accruing values that are regularly deleted?

    How did you make it? How did you do this?

    I'm not too experienced with Excel. Only had one class with Office in general.

  4. #4
    Registered User
    Join Date
    09-14-2004
    Location
    Jämtland, Sweden
    Posts
    16

    Re: A formula for accruing values that are regularly deleted?

    Is it what you wanted?

    Press Alt+F11 to open the Visual Basic Editor (VBE). To the left you will see a tree structure. Expand it and double click the ThisWorkbook object. Now you will see the code.
    To name a cell or a range, simply select the desired cells and type the desired name in the little box to the left of the formula bar where the address of the cell is shown. To edit your names, select Formulas toolbar and then click Name Manager.

    I recommend a visit to this site if you want an introduction to macros: http://www.excel-vba.com/excel-vba-s...-beginners.htm

  5. #5
    Registered User
    Join Date
    01-08-2015
    Location
    Maine, USA
    MS-Off Ver
    2010
    Posts
    3

    Re: A formula for accruing values that are regularly deleted?

    Yes, that's exactly what I wanted, though I'm still having issues with getting the code to work for multiple cells.

    Thanks for your help so far.

  6. #6
    Registered User
    Join Date
    09-14-2004
    Location
    Jämtland, Sweden
    Posts
    16

    Re: A formula for accruing values that are regularly deleted?

    What's the problem?

+ 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. Date of Hire and accruing vacation
    By DallasARM in forum Excel General
    Replies: 5
    Last Post: 11-05-2014, 02:32 PM
  2. trasnferring values of a variable and putting it in another regularly
    By Abhie in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 05-19-2013, 03:40 AM
  3. Make and regularly update a list of all combinations of two lists of unique values
    By Sherelle in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 11-19-2012, 07:21 PM
  4. Help with IF statement for accruing sick time
    By Bree in forum Excel General
    Replies: 0
    Last Post: 12-29-2011, 04:20 PM
  5. accruing interest
    By scarnohan in forum Excel General
    Replies: 1
    Last Post: 02-04-2006, 11: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