Home » Questions » Computers [ Ask a new question ]

Making Excel formulas only evaluate once

Making Excel formulas only evaluate once

Is there any way to embed the result of a formula evaluation in a cell, such that the evaluation only happens once?

Asked by: Guest | Views: 368
Total answers/comments: 2
Guest [Entry]

"In some cases where you want to get a static answer from a formula you can do what you want without using a formula.

In your example Excel doesn't know whether TODAY() was meant to mean today's date or the date that it was entered in the spreadsheet.

You can, however insert the current date and/or time in a cell:
You can select a cell and press CTRL+; or CTRL+SHIFT+; for current date and current time respectively (for both CTRL+; then SPACE then CTRL+SHIFT+;).

In other cases, I tend to copy and then paste special as value."
Guest [Entry]

"The best way to solve this issue that I have discovered is to put your changeable equation in one cell and link a data validation ""list"" to that cell from a different cell. Hide the cell with the equation in it, use the drop down to select a single value. This avoids typos, speeds entry, and keeps the chosen value static no matter how many times the equation it links to gets updated in the future.

For the date example given, put =today() in cell A1, this will be the cell that has the equation in it. Then select cell B1, and go into the ribbon and select data>data validation> data validation. Select ""List"" from the drop down menu, and in source put =A1.

Now hide cell A1. When you select cell B1, there will be a drop down arrow on the right side. When you click the drop down arrow, your only choice should be the date displayed in cell A1.

I am using this functionality to aid data entry in log sheets. I have cells with formulas that automatically calculate the values that (being true today) should go into the log, and I have cells with data validation linking to the equation cells that allow the user to choose those automatically calculated values from a very short drop down list. Tomorrow, all the equation cells will change but the logged values will not change until someone purposefully changes them. I have simply hidden the columns with equation cells in them so the user cannot see these."