I need help to convert a column of negative numbers into positive number using excel for a project, ive looked on other forumns but their solutions doesnt work, im using the 2023.10.3 version.
Welcome to the UiPath Community
You can use Format Cells activity to achieve this like this. Set the Format to Custom and provide this 0.00;0.00
as format.
Thanks,
Ashok
1 Like
This method works but due to my school project restriction on using this, is there any other method like using data table etc?
Try this
CurrentRow("Credit Amount")=Math.Abs(CDec(CurrentRow("Credit Amount"))).ToString("#,##0.00")
Output:
Regards,
1 Like
Oh my god it worked, thank you so much my assignment is due 10 minutes your a life saver.
1 Like
FYI, there is another approach
dt.AsEnumerable.ToList.ForEach(Sub(r)
r("Credit Amount")=r("Credit Amount").ToString.Replace("-","")
End Sub
)
Cheers!!
1 Like
This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.