Help! How can I transfer the negative symbol of each value in columns

How can I transfer the minus sign of each value in columns if the number is negative. Any input are appreciated. Tnx


SampleTable.xlsx (10.2 KB)

Hi,

Can you try the following sample?

CurrentRow(col) = Double.Parse(System.Text.RegularExpressions.Regex.Match(CurrentRow(col).ToString,"^[\d.,]+").Value,System.Globalization.NumberStyles.Any)*(CDbl(System.Text.RegularExpressions.Regex.IsMatch(CurrentRow(col).ToString,"-"))*2+1)

Sample
Sample20240321-5 (3).zip (11.5 KB)

Regards,

1 Like

It worked! Thank you for the help!

1 Like

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.