Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
dlashley
 
Posts: n/a
Default Need help with two cell accumulator


Hello,

I am trying to do a two cell accumulator and I am having trouble
getting it to work. It keeps coming back with an circular reference
error and it's not adding up when I put in a value. I would like to
place a number in say cell C13 and have it add to cell G13. G13 is
where I want to keep my running total. I entered a macro in cell G13
that states (=C13+G13) and also I have entered a vba script that
states:

( Private Sub Worksheet_Change(ByVal Target As Range)
If Target.Cells.Count 1 Then Exit Sub
If Target.Column = 1 Then
Target(1, 2).Value = Target(1, 2).Value + Target.Value
End If
End Sub)

Can someone please help me out with this I am at a total loss! Thanks
in advance

Dawn


--
dlashley
------------------------------------------------------------------------
dlashley's Profile: http://www.excelforum.com/member.php...o&userid=34369
View this thread: http://www.excelforum.com/showthread...hreadid=541466

  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
 
Posts: n/a
Default Need help with two cell accumulator

You are confusing macros and formulas - the formula in G13 is a
circular reference as it adds it's own value to itself. The sub itself
is fine from a coding point of view

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
why a reference to an empty cell is not considered empty Nicoscot Excel Discussion (Misc queries) 10 March 10th 06 05:36 AM
Adding a row to worksheet does not update cell references in another. blausen Excel Worksheet Functions 5 February 25th 06 09:14 PM
Urgent date/scheduling calc needed jct Excel Worksheet Functions 3 February 24th 06 01:36 AM
Dates of a Day for a month & year cell formulas mikeburg Excel Discussion (Misc queries) 2 December 29th 05 10:14 PM
copying cell names Al Excel Discussion (Misc queries) 12 August 11th 05 03:01 PM


All times are GMT +1. The time now is 10:02 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"