In my working sheet, the column name is “Amount” and it holds number in positive as well as negative.
-I am trying to convert all the -ve numbers in that column to positive as I have to compare those data with another data.
-I am reading the full excel sheet and storing it in a DT, so how can I convert the value?
Use Read Range Actvity read your Excel File, Get Output Datatable, say DT
Use For Each Row Activity For that DT
Inside For Each use An Assign Activity and Assign row(“Amount”) = Math.Abs(Convert.ToDouble(row(“Amount”).ToString))
Use Write Range Activity and Write the DT back to the Same Excel File
For Clarification Purpose, I recommend to use a Different Excel File as Output
Hello @indrajit.shah
this is happening because of your excel sheets as the cells are formatted in Date so you get the date with time when you write it using Write Range Activity
Replace the String.Join(Query) in the code with this
See this excel sheet I need to change - to +
And + to - how can we acheive this
For writing query
I try your above query however - value is changed to + but + value is not at all changed