Use this formula
=IF(RIGHT(TRIM(A1),1)="-",("-"&SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(TRIM(A1),".","/"),",","."),"/",","),"-","")),(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(TRIM(A1),".","/"),",","."),"/",",")))
Change the cell reference to your desired cell.
Or
Select the data column and Press Cntrl+H and replace the comma as dot and in
the same way again replace the dot as comma. That’s it!
If this post helps, Click Yes!