G
gschoepf
I have imported negative currancy numbers from a database into a
spreadsheet.
spreadsheet.
....macropod said:To chnge the text to numbers:
. Insert a '1' in any cell.
. Copy the cell
. Select the cells you want to change
. Use Edit|Paste Special|Values > Multiply
....macropod said:And here's a slightly more efficient and effective version:
Sub FixNegatives()
Dim CellContent As Range
For Each CellContent In ActiveSheet.UsedRange
If CellContent.HasFormula = False Then _
If IsNumeric(CellContent) Then _
If Right(CellContent, 1) = "-" Then _
CellContent.Formula = "-" & Left(CellContent, Len(CellContent) - 1)
Next
End Sub