How to write Excel formula inside foreach loop

Hi I am trying to apply excel formula inside foreach loop. But i cant figure it out.

as you can see the formula above and under “Particulars” is the expected output


Here is my sample code but it didnt work

Thank you in advance


You have to place = inside the quote as below

"=X - MB

Hope this may help you


Hi @Vincent_Nuestro,

It just required the double quotes to be included. Hope this helps.