I want to add the number in Cell B1 to the number in Cell A1, But have the result in Cell A1
i.e. A1=A1+B1
Excel Formula & Value In Same Cell
Share
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
You can’t do it with standard Excel formulas.
You can do it with Visual Basic code.
Right-click the name Tab of your worksheet and select View code.
In the Visual Basic window that opens enter this:
From the Visual Basic menu bar click File- Save
Click Alt+f11 (the Alt key and function key #11 clicked together) to return to the main Excel window.
Now when the value in cell B1 is changed, the value in cell A1 will be updated to its original value plus the new value in cell B1.
This is triggered by Excel’s ‘on change’ event. The code then tests that the changed cell was cell B1 and if it was it does the required addition.
Regards