Hello,
How can I make excel to recongnize this: 123456- as a negative number????
Thanks for the help
Hello,
How can I make excel to recongnize this: 123456- as a negative number????
Thanks for the help
Last edited by Bob@Sun; 01-28-2010 at 06:38 PM.
Hi Bob,
You can use a formula, such as:
=(RIGHT(A1,1)&LEFT(A1,LEN(A1)-1))+0
This creates a text string of, for example, -123456, and then adds 0 to it to convert it to a number within the cell.
How about this:
=IF(ISNA(FIND("-",A1)),A1,0-SUBSTITUTE(A1,"-",""))
Last edited by zbor; 01-28-2010 at 06:28 PM.
ZBor, what is the "&D2" at the end of your formula for?
Nothing Sorry, moved with arrows...
Well Paul's formula works fine, but mess up the number if there is no "-" after the number. Can you please fix that?
I can not understand zbor's function: =IF(ISNA(FIND("-",A1)),A1,0-SUBSTITUTE(A1,"-",""&D2))
Why is that D2 in it. what do you have in this cell?
Just remove the "&D2" bit. Was an accidental key-press. To use mine, you would need to change it to:
=IF(RIGHT(A1,1)="-",(RIGHT(A1,1)&LEFT(A1,LEN(A1)-1))+0,A1)
Thanks Paul!
Excelent Work!
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks