how can I return to my last position in a document?

When using something a feature like find and replace and the word is not found you often arrive at the beginning of your document or spreadsheet. How can I return to the last position I was at?

A simple solution is to press ‘undo’ (and then ‘redo’ if you have just undone an edit).