- 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

Copy formula down without changing references
If you have =SUM(F2:F49) in F50; type Alt+' in F51 to copy =SUM(F2:F49) to F51, leaving the formula in edit mode. Change SUM to COUNT.

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
54,356
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
 
Master Excel Bundle

Excel contains over 450 functions, with more added every year. That’s a huge number, so where should you start? Right here with this bundle.

Forum statistics

Threads
1,164,052
Messages
5,835,144
Members
430,342
Latest member
Sailingexcel

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
Top