I managed to solve this with tips from Alex K and onedaywhen.
The solution is to simply format the Excel cells (s) I want to update with the correct type (number, custom, etc.) before running my script.
The strange thing is that I'm sure I tried it a few days ago, and it didnβt work ... but I think it must have been at the end of the day!
source share