#VALUE! Sometimes excel puts the error message #VALUE! in a cell. This message spreads to all cells of a finite difference model in a second. You can solve this by resetting all values in the model. The following text needs to be added to each cell. IF($A$1=1;1; .... ) For example, D7=IF($A$1=1;1;(px*a*a/E/t +D5/2+C6/2-E6/2+B7+F7-C8/2+E8/2+D9/2)/3) In words this line means: Put in cell D7 the value 1 if the value of cell A1 is 1, Put in cell D7 the displacement value computed with the molecule if the value of cell A1 is anything but not 1. This solution has been proposed by Zihong Xie.