- on wrong side of number (negative number)

mlchman

New Member
Joined
Nov 30, 2005
Messages
3
I get a report from work every month that has been converted from an Adobe PDF report to Excel. At line 59 the - for negative is on the right side of the numbers instead of the left side. Excel reads this as text, so will not format as currency. How do I change/reformat so I can use the data as currency in my calculations?

Thanks for the help.

Michael
 

Excel Facts

Control Word Wrap
Press Alt+Enter to move to a new row in a cell. Lets you control where the words wrap.
Hi, welcome to the board!

Is it always in Row 59 and in what column? Is there more than 1 value like this?
 
Upvote 0
Welcome to MrExcel Board!

You can convert the whole column to numbers with a formula like this:
=IF(NOT(ISNUMBER(--RIGHT(A1))),--LEFT(A1,LEN(A1)-1),A1)

and copy down; adjust the column (A) to wherever your numbers are. Data, Text to Columns might also work for this.

Hope that helps!
 
Upvote 0
mlchman

Welcome to the Mr Excel board!

Here are three other possible ways, take special note of 3 as it is the easiest (provided you have an appropriate version of Excel):

1. =IF(RIGHT(A1)="-",-LEFT(A1,LEN(A1)-1),A1)

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

3. If you want to do it without creating another column and are using Excel 2002 or later:
a) Select the cells (or columns) that contain the numbers
b) Data|Text to Columns...
c) Next|Next|Advanced
d) Ensure 'Trailing minus for negative numbers' is checked and click OK
e) Finish
NOTE: If you know the 'Trailing minus for negative numbers' is checked, then you only need to perform steps a), b) and e) - very easy!
 
Upvote 0
Thank you for all the replys. With the info I received, I am now able to correct the problem easily.

Thanks again,

Mlchman
 
Upvote 0

Forum statistics

Threads
1,214,826
Messages
6,121,792
Members
449,048
Latest member
greyangel23

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top