Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 128
Default Minus signs after number

I have results like 54- it should be -54

but when I use & command to join them the correct way and do sum to calculate
tham, it always results with a 0

Any ideas on how to get the minus on the correct side that can be used to
calculate totals would be appreciated

--
Message posted via OfficeKB.com
http://www.officekb.com/Uwe/Forums.a...mming/200602/1
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Minus signs after number

Dim rng as Range, cell as Range
set rng = Activesheet.UsedRange.Specialcells(xlConstants,xlT extValues)
for each cell in rng
if right(cell,1) = "-" then
cell.Formula = cdbl(cell.Value)
end if
Next

--
Regards,
Tom Ogilvy

"Crowbar via OfficeKB.com" <u15117@uwe wrote in message
news:5b7a7f00ab08b@uwe...
I have results like 54- it should be -54

but when I use & command to join them the correct way and do sum to

calculate
tham, it always results with a 0

Any ideas on how to get the minus on the correct side that can be used to
calculate totals would be appreciated

--
Message posted via OfficeKB.com
http://www.officekb.com/Uwe/Forums.a...mming/200602/1



Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
No plus or minus signs to left of subtotals Staceyglow Excel Worksheet Functions 2 August 19th 09 03:03 AM
How do I get Plus and Minus signs in my additions and subtraction TKM New Users to Excel 1 October 24th 06 06:11 PM
MINUS SIGNS REMOVAL Rebecca New Users to Excel 2 November 24th 05 12:07 AM
strip minus signs from right to left Heather Excel Discussion (Misc queries) 2 April 21st 05 05:52 PM
Importing values w/trailing minus signs RWN Excel Discussion (Misc queries) 1 December 11th 04 05:05 AM


All times are GMT +1. The time now is 11:50 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"