text form to numeric ?

C

crapit

E.g A cell contain 1233- but the value is actually a numric value whereby
the "-" behind is a negative sign, wat function do I use to convert it to a
numeric form causing it to to become -1233 ?
 
R

RWN

One way, assuming that the values are mixed (some with/without "-" sign)
and that the values are in colA, which is formatted as text;

IF(RIGHT(Ax,1)="-",LEFT(Ax,LEN(Ax)-1)*-1,VALUE(Ax))
 
C

crapit

Assuming tat the cell to check is the same cell where the formula reside,
how do I stop the formula from disappearing? After entering a value on the
cell where it contain formula, it disappear.
I tried to use conditional formatting but failed
 
F

Frank Kabel

You have to enter the formula in a separate column. e.g. your source
data is in column A and the formula is in column B. Then enter Rob's
formula in B1 (substituting the x with 1 and copy this cell for all
rows).

You cannot enter data and a formula in the same cell.
Frank
 
R

Ron Rosenfeld

E.g A cell contain 1233- but the value is actually a numric value whereby
the "-" behind is a negative sign, wat function do I use to convert it to a
numeric form causing it to to become -1233 ?

If you have a later version of XL, you can use the Data/Text to Columns wizard.


--ron
 
R

RWN

I'd be interested to see how the text->column function would work in
this case, or any other simpler method for that matter. This is a
situation I run into daily dealing with files downloaded from the
mainframe that have trailing negative signs.

--
Regards;
Rob
------------------------------------------------------------------------
 
P

Peo Sjoblom

Select the column, do data>text to columns and click Finish
That's it. Trailing minuses become real negative numbers and regular
positive numbers stay the same

--

Regards,

Peo Sjoblom

RWN said:
I'd be interested to see how the text->column function would work in
this case, or any other simpler method for that matter. This is a
situation I run into daily dealing with files downloaded from the
mainframe that have trailing negative signs.
 
R

RWN

Peo;
Can't get it to work so it means I'm missing something.
Is this supposed to work w/XL2k?

--
Regards;
Rob
------------------------------------------------------------------------
Peo Sjoblom said:
Select the column, do data>text to columns and click Finish
That's it. Trailing minuses become real negative numbers and regular
positive numbers stay the same

--

Regards,

Peo Sjoblom

RWN said:
I'd be interested to see how the text->column function would work in
this case, or any other simpler method for that matter. This is a
situation I run into daily dealing with files downloaded from the
mainframe that have trailing negative signs.
--
 
R

RWN

Alas, always behind the times!

Thanks.

--
Regards;
Rob
------------------------------------------------------------------------
Peo Sjoblom said:
Nope, it was introduced with 2002.

--

Regards,

Peo Sjoblom

RWN said:
Peo;
Can't get it to work so it means I'm missing something.
Is this supposed to work w/XL2k?
--
Peo Sjoblom said:
Select the column, do data>text to columns and click Finish
That's it. Trailing minuses become real negative numbers and regular
positive numbers stay the same

--

Regards,

Peo Sjoblom

I'd be interested to see how the text->column function would work in
this case, or any other simpler method for that matter. This is a
situation I run into daily dealing with files downloaded from the
mainframe that have trailing negative signs.
----------------------------------------------------------------------
wrote:

E.g A cell contain 1233- but the value is actually a numric value
whereby
the "-" behind is a negative sign, wat function do I use to convert
it to a
numeric form causing it to to become -1233 ?


If you have a later version of XL, you can use the Data/Text to
Columns wizard.


--ron
 

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