Are you doing this because you are building say a CSV file and you are just using Excel to set it up and then export it - or does -Excel- still need to see the number as a number and a Negative number at that?
so assuming you wanted to export a CSV. then
| abc |
abc |
76- |
-56 |
ABC |
-76 |
76- |
22- |
ABC |
| abc |
abc |
59- |
-79 |
ABC |
-59 |
59- |
51- |
ABC |
I produced column G with : =ABS(F1)&"-" and drag filled the formula down.
I produced column H by using the custom number format: #,##0;#,##0-;0
column C was a paste special values of column G.
when I exported as CSV I got
abc,abc,76-,-56,ABC,-76,76-,22-,ABC
abc,abc,59-,-79,ABC,-59,59-,51-,ABC
so the right sided hypen/negative sign is preserved whether by formula, stored as text or formatting.
These approaches would be easier than a macro.
--
Regards,
Tom Ogilvy