How to Read Excel without losing the formula

Hi I have different excel that contains different Formula

Please see the diff formula below

An Excel sheet tabulates various hours, rates, and totals with a focus on calculating regular and overtime rates. (Captioned by AI)

any advise, will the high appreciated
Thank you

Hie @Vincent_Nuestro try to enable the preserve format in the activity …
like this

@singh_sumit

i tried this but after Write Range lose every formula

That’s because you’re writing values to Excel instead of writing the formulas.

any recommendation? or sample workflow?

use read cell to read each cell to preserve it formula and also use the write cell activity to write data that way you can do… use the loop method to iterate the data one by one
cheers Happy Automation…

You shouldn’t be writing to columns that use formulas, if you can avoid it.

If you can’t avoid it…

https://forum.uipath.com/search?q=write%20formula%20to%20excel

That’s an extremely inefficient and tedious suggestion. There are much better ways to handle it.

1 Like

Itried this method

But it returns as a Plain String.

“=”+rowOT_Savings(13).ToString +“/”+ in_Config(“OT_Savings”).ToString.Replace(“$”, “”)

You’re using Write Range Workbook. You need to use the Excel activities.

Also your Write Range should not be inside the loop. You should loop through all the data and make the necessary changes, then after the loop you write to Excel.