Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
ktjohn
 
Posts: n/a
Default Looking for a function that will add value to another cell

Basically I am trying to check for the value of one cell and if it is true
then add/subtract one from another cell.

if A1 is "true" then B1 equals B1+1

Any ideas?

Thanks
  #2   Report Post  
JulieD
 
Posts: n/a
Default

Hi

because this a circular reference you have two choices, you can tick the
Interation check box in tools / options / calculations tab (and set the max
to 1) (i don't know the full implications of doing this) or you can use code
e.g.

Private Sub Worksheet_Change(ByVal Target As Range)
Application.EnableEvents = False
If Range("A1") = True Then
Range("B1") = Range("B1") + 1
End If
Application.EnableEvents = True
End Sub

- to use this code, right mouse click on the sheet tab where you want the
code and choose view code
copy & paste the code there

Cheers
julieD

"ktjohn" wrote in message
...
Basically I am trying to check for the value of one cell and if it is true
then add/subtract one from another cell.

if A1 is "true" then B1 equals B1+1

Any ideas?

Thanks



  #3   Report Post  
JE McGimpsey
 
Posts: n/a
Default

Take a look he

http://www.mcgimpsey.com/excel/accumulator.html

In article ,
ktjohn wrote:

Basically I am trying to check for the value of one cell and if it is true
then add/subtract one from another cell.

if A1 is "true" then B1 equals B1+1

Any ideas?

Thanks

  #4   Report Post  
Peo Sjoblom
 
Posts: n/a
Default

That will popup a circular reference error, one possible solution

http://www.mcgimpsey.com/excel/accumulator.html


Regards,

Peo Sjoblom

"ktjohn" wrote:

Basically I am trying to check for the value of one cell and if it is true
then add/subtract one from another cell.

if A1 is "true" then B1 equals B1+1

Any ideas?

Thanks

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
Using the MAX function with "constant increment" cell references John Dwyer Excel Worksheet Functions 3 December 10th 04 03:37 PM
copy a cell value not its function KC Mao Excel Discussion (Misc queries) 2 December 4th 04 04:30 AM
GET.CELL Biff Excel Worksheet Functions 2 November 24th 04 07:16 PM
Function to return colour of formatted cell ExcelMonkey Excel Worksheet Functions 3 November 1st 04 05:54 PM
continuous cell function milljaso Excel Worksheet Functions 1 October 27th 04 10:21 PM


All times are GMT +1. The time now is 09:09 AM.

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

About Us

"It's about Microsoft Excel"