Perhaps one of the entries is not a number but text. Select the menu View -> Value Highlighting. Are both M17 and N17 blue? If they are being produced by formulas, what are the formulas.
OpenOffice 4.1 on Windows 10 and Linux Mint
If your question is answered, please go to your first post, select the Edit button, and add [Solved] to the beginning of the title.