![]() |
![]() |
|
|||||||
| Excel Questions All Excel/VBA questions - formulas, macros, pivot tables, general help, etc. Please post to this forum in English only. |
![]() |
|
|
Thread Tools | Display Modes |
|
|
|
|
#1 |
|
Join Date: Mar 2004
Location: London
Posts: 10
|
Hi
I have some figures exported out of another application, which puts the negative sign at the end of the number. Excel then views this number as text. Anyone any ideas how I can convert these numbers to read as a negative in the proper format? Thanks in advance Nic |
|
|
|
|
|
#2 |
|
MrExcel MVP
Join Date: May 2003
Posts: 8,456
|
Welcome!
You could try this formula: =SIGN(RIGHT(A1,1)&1)*SUBSTITUTE(A1,"-","")
__________________
"Fair Winds and Following Seas" |
|
|
|
|
|
#3 |
|
MrExcel MVP
Join Date: Jul 2002
Posts: 32,030
|
You can use this formula:
=(SUBSTITUTE(A1,"-","")+0)*IF(RIGHT(A1,1)="-",-1,1) where A1 contains the imported number. |
|
|
|
|
|
#4 |
|
MrExcel MVP
Join Date: May 2002
Posts: 12,561
|
as I recall, there's also an option for this in the asap addin...
|
|
|
|
|
|
#5 |
|
Join Date: Dec 2002
Posts: 677
|
Try to use Text to Columns function :
Highlight your figures column>> Data>> Text to Columns…>> Next>> Next>> Finish which will change the end negative sign number to a negative number Regards |
|
|
|
![]() |
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|