- 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
 

Some videos you may like

Excel Facts

Does the VLOOKUP table have to be sorted?
No! when you are using an exact match, the VLOOKUP table can be in any order. Best-selling items at the top is actually the best.

Scott Huish

MrExcel MVP
Joined
Mar 17, 2004
Messages
19,958
Office Version
  1. 365
  2. 2010
Platform
  1. Windows
Hi, welcome to the board!

Is it always in Row 59 and in what column? Is there more than 1 value like this?
 

Tazguy37

MrExcel MVP
Joined
May 28, 2004
Messages
4,237
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!
 

Peter_SSs

MrExcel MVP, Moderator
Joined
May 28, 2005
Messages
47,483
Office Version
  1. 365
Platform
  1. Windows
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!
 

mlchman

New Member
Joined
Nov 30, 2005
Messages
3
Thank you for all the replys. With the info I received, I am now able to correct the problem easily.

Thanks again,

Mlchman
 

Watch MrExcel Video

Forum statistics

Threads
1,118,284
Messages
5,571,305
Members
412,380
Latest member
Angelagrace
Top