I've just come across something that I feel is both stupid and dangerous in Excel, and I'm wondering just how many people know about it.
To illustrate the problem, type a 1 into cell A1, and type the formula =1+A1 into cell A2, so A1 contains 1, and A2 now contains 2. Now conduct a search and replace on the whole sheet to replace 1 by 5. You would expect A2 to contain 6, but it doesn't - it contains 5.
Why? Because the search and replace procedure has not only replaced the contents of A1 by 5, but it has ALSO changed the FORMULA in A2 from "=1+A1" to "=5+A5". A5 doesn't contain anything, so A2 now contains 5.
If you check the "Find entire cells only" box in the options of the Search and Replace procedure you will get the correct answer in A2, because the formula is left unchanged - but that isn't the default setting, at least not in my implementation of Excel. Also I hardly think that the instruction "Find entire cells only" is particularly informative to an inexperienced user.
This emerged because I was replacing every "99" in a data sheet by a missing value code. However, the data sheet also contained formulae to calculate the averages of the rows, one of which was in the 99th row...
So, if you've got formulae in your worksheet and fail to check that box before conducting a search and replace operation, every single formula in your sheet is likely to be corrupted - and in a relatively abstract workbook like a balance sheet or a profit-and-loss account you probably wouldn't realise that until it was far too late.
How many other people have come across this little banana skin? My impression is that it isn't many - and certainly not amongst people who use Excel almost exclusively for keyboarding into worksheets that have been created by other people, but who might just occasionally need to use the search-and-replace procedure to correct a coding error.
Cheers,
DQR