Tracking Change on the Formula Bar


New Member
Jul 3, 2009
Hey Guys

I was having some troubles with my excel coding. Let me brief you on my excel workbook first

1. I have a cell in which a value is inputted by the user, cell A5
2. Cell A6 has the formula "=200+300"

The problem
1. If i enter a number in cell A5, this number should be put directly in the formula bar of cell A6

for example: on entering 10 in cell A5, formula bar for cell A6 should become ="200+300+10"

then if i just keep changing the number in cell A5, it should be reflected in the above manner in cell A6. So now inputting 20 in cell A5, cell A6 should show me = "200+300+10+20"

and so on.

The idea is that i want to track the changes i am making to that particular cell over a number of days.

Is there a way by using VBA codes to achieve this?

Thanks a lot for your help.

Some videos you may like

Excel Facts

What is the shortcut key for Format Selection?
Ctrl+1 (the number one) will open the Format dialog for whatever is selected.


Well-known Member
Jan 18, 2005
Maybe try this:

Private Sub Worksheet_Change(ByVal Target As Range)
If Target.Count > 1 Then Exit Sub
If Target <> Range("A5") Then Exit Sub
Range("A6").Formula = Range("A6").Formula & "+" & Range("A5").Value
End Sub
Right click on the worksheet tab and select View Code and paste the above.


Watch MrExcel Video

Forum statistics

Latest member

This Week's Hot Topics

  • Finding issue in If elseif else with For each Loop
    Finding issue in If elseif else with For each Loop I have tried this below code but i'm getting in Y column filled with W005. Colud you please...
  • MsgBox Error
    Hi Guys, I have the below error show up when i try and run my macro in File1 but works fine if i copy and paste the same code into file2. [ATTACH...
    My Cell Format is [B]""0.00" Cr". [/B]But in the cell, it is showing 123.00 for editing. (123 is entry figure). (Data imported from other...
  • Show numbers nearly the same
    Is this possible. I have a number that can change very time eg 0.00001234 Then I have a lot of numbers 0.0000001, 0.0000002, 0.00000004...
  • Please i need your help to create formula
    I need a formula in cell B8 to do this >>if b1=1 then multiply ( cell b8) by 10% ,if b1=2 multiply by 20%,if=3 multiply by 30%. Thank you in...
  • Got error while adding column and filter
    Got error while adding column and filter In column Z has some like "Success" and "Error". I want to add column in AA if the Z cell value is...