Results 1 to 5 of 5

How to accumulate total in one cell from another if input changes

Threaded View

  1. #1
    Registered User
    Join Date
    11-01-2014
    Location
    New Zealand
    MS-Off Ver
    dffe
    Posts
    2

    How to accumulate total in one cell from another if input changes

    Hi,

    I am trying to create a roulette excel game.

    I have a cell with how much I want to bet and if I win then money is added to a cell, if I lose money is taken away.

    So basically I have cell B8 which is where I enter how much money total I want use during the game, but not bet total, there will be other cells where I enter how much of that total I want to bet.

    I then have a cell C8 which shows how much I won and adds that to cell D8. This cell D8 is what I want to accumulate. Im guessing I need a macro of some sorts.

    I have use the below macro:
    
    Private Sub Worksheet_Change(ByVal Target As Range)
    If Target.Address = ["D8"] Then
    [D8] = [C8] + [B8]
    
    End If
    End Sub
    This works if I manually put a value in C8 but if I put a formula it does not work:
    
    =B8 + IF(ISBLANK(C8),0,IF(E11=C3,C11*36,0))
    when E11=C3 it shows in cell C8 but does not accumulate.

    Any advice?

    Thanks
    Last edited by gigaplatinum; 11-01-2014 at 04:50 AM.

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Replies: 1
    Last Post: 02-10-2014, 11:42 PM
  2. Accumulate a value into one cell if...
    By lovethepirk in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 12-16-2012, 11:33 AM
  3. A running total using one input cell
    By threedeesix in forum Excel General
    Replies: 2
    Last Post: 02-25-2007, 02:29 AM
  4. Macro to input total copies from a cell value
    By Vic in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 08-21-2006, 06:05 AM
  5. [SOLVED] Accumulate weekly time to total time in Excel.
    By delve in forum Excel General
    Replies: 0
    Last Post: 05-04-2005, 04:06 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