May i know what exactly you are trying to achieve??
You can right click on the Cell -> Format Cell -> General -> Display -> Read Cell Content as HTML
Then you can just put drag any Variable into the cell and it should work without any issues
="<HTML><Marquee>"+[VARIABLE]) +"</MARQUEE></html>"