Re: - signs at back of number so won't add up, please help!
- From: Dave Peterson <petersod@xxxxxxxxxxxxxxxx>
- Date: Thu, 23 Feb 2006 12:03:51 -0600
Dana DeLouis posted this:
Sub TrailingMinus()
' = = = = = = = = = = = = = = = =
' Use of CDbl suggested by Peter Surcouf
' Program by Dana DeLouis, dana2@xxxxxxx
' = = = = = = = = = = = = = = = =
Dim rng As Range
Dim bigrng As Range
On Error Resume Next
Set bigrng = Cells.SpecialCells(xlConstants, xlTextValues).Cells
If bigrng Is Nothing Then Exit Sub
For Each rng In bigrng.Cells
rng = CDbl(rng)
Next
End Sub
If you're new to macros, you may want to read David McRitchie's intro at:
http://www.mvps.org/dmcritchie/excel/getstarted.htm
Adam wrote:
I copy data into excel from an accounts programme, but all the minus signs
are at the back so Excel won't add these numbers up
i.e 4
3-
Th answer comes to 4 rather than one , what can I do about this?
Thanks for your help Adam
I know you guys/girls know an answer
--
Dave Peterson
.
- Prev by Date: Re: Spread*** Default Settings
- Next by Date: Re: Range of cells and division formula
- Previous by thread: Re: - signs at back of number so won't add up, please help!
- Next by thread: Range of cells and division formula
- Index(es):