How do you convert 100- to -100 in excel?

  • Thread starter How to convert from 100- to -100
  • Start date
H

How to convert from 100- to -100

I have a spread sheet that instead of showing negaive 100 as -100, it shows
negative 100 as 100-, is there any way to convert 100- to -100 by formular?
Thanks.
 
R

Ron Coderre

Since you asked to convert "100-" to -100 via formula,
try this

With numeric text in A1
B1: =SIGN(--(RIGHT(L3,1)&1))*SUBSTITUTE(L3,"-","")

Does that help?

Regards,

Ron Coderre
Microsoft MVP (Excel)

"How to convert from 100- to -100"
 
L

L. Howard Kittle

Try

=LEFT(D1,3)*-1

And if the length of the text varies try

=LEFT(D1,FIND("-",D1)-1)*-1

HTH
Regards,
Howard

"How to convert from 100- to -100"
 
S

Shane Devenshire

Hi,

Little doubt that the text to columns command is the way to go, but if you
want a formula here is another one:

=IF(RIGHT(A1)="-",-SUBSTITUTE(A1,"-",),A1)
 

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