I'm creating a LibreOffice calc spreadsheet but I can also use Excel if this will make things easier.
The spreadsheet is based around a scientific formula with 3 variables, let's call them a, b and c. To be honest, there is also a 4th variable, d. However, d is just c in a different representation (like in d=1/c). Sometimes, it's more intuitive to enter c, sometimes d.
OK, I end up with 4 variables. It is necessary for the user to enter 2 of them, the missing 2 can be calculated easily (except if the user enters c and d, this will not work of course).
Let's say column A, B, C and D are for entering the variables a, b, c and d. I want my spreadsheet to calculate the missing two values. That's no problem. Each cell is prefilled with the necessary formula.
However, imagine the user to enter a and b. c and d will now be calculated and displayed. But by entering a and b, the formulas for calculating a and b are overwritten! It's now not possible to clear b and enter c instead. If the user want to enter different variables he has to copy the formulas from "backup cells".
To make it short: I want the cell to contain their formulas even if a value is entered. Is this possible without macros? I can think of a solution using helper cells...