I want to be able to put the string “1 – 2” in an excel cell. I would be using this string later for other purposes. As of now if I input “1 – 2” (or “1-2”) it turns into “2-Jan” and the cell formatting changes from “General” to “Custom”. If I input “=1-2” I get “-1”. I don’t want either of these answers. I want the string to stay as “1 – 2” and the formatting of the cell to not change.
Is there a way to do make sure the formatting does not change? Use of VBA code is fine.
Format the cell as Text, not General.