How to Apply complex formulas in excel using uipath

keep this as input in the write cell activity
“=IFERROR(DATE([@[Attended From Year]],MONTH(DATEVALUE(P2&” + “”“1"”" + “)),1),” + “”“”“” +“)”

that is surround double quotes with two double quotes on either side

Cheers @AshLearnUI