Changing minus values

S

shaddy

I am importing (cut/paste) data which reflects minus numbers as: 100-.
When put into my w/sheet excel will not recognise its value when
ranked. I need to convert 100- to an excel acceptable format i.e.
(100) or -100. Is there any function or macro that would achieve
this?

Thanks for any help or direction
Keith C
 
J

JS

try the following formula in the column next to your data

=IF(E5="-","-" & LEFT(D5,LEN(D5)-1),D5)
 
D

Dale Hymel

try this if C3 contains the XXX-

=IF(RIGHT(C3,1)="-",-VALUE(LEFT(C3,LEN(C3)-1)),C3)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top