When you click a cell in Excel, you see a formula like =A1+B1. That is the formula with the cell references. I want to see the formula with the cell values, for example: =10+20.
A1 =10 //Cell A1 has the value 10
A2 =20 //Cell A2 has the value 20
C2 =A1+B1 //Cell C2 has the value A1 + A2
D2 =10+20 //I want Excel to derive this.
I don’t want the formula displayed in the cell or anything. I still want C2 to display 30. I just want it so that if I click on C2, I can see =10+20 in the formula bar.
Alternatively, if C2 displayed a comment where it showed the calculations (so clicking on C2 would display the comment “=10+20”, that would work too.
That’s not how Excel works; if you have a formula in a cell, that is what is going to show up in the formula bar.
EDIT
You can use VBA (from
Tools > Macros > Visual Basic Editor), however, to write code that will update the contents of the C cells with the the values of A + B, like this:EDIT 2
If you want to replace the contents of a C cell with the values in the formula, you can use the
.Formulavalue to find its formula, and go from there: