Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2
Default Switching negative signs from back to front

Our system reports unfortunately have negative signs in back of numbers
instead of in front. When we export them to Excel, the negative numbers seem
to be ignored in totals and we are manually moving the negative signs from
back to front to get our totals correct. Is there a way to do this faster?
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 10,124
Default Switching negative signs from back to front

Sub moveminustofront()
For Each c In Selection
If Right(c, 1) = "-" Then
c.Value = "-" & Left(c, Len(c) - 1)
End If
Next c
End Sub

--
Don Guillett
Microsoft MVP Excel
SalesAid Software

"tracytracy123" wrote in message
...
Our system reports unfortunately have negative signs in back of numbers
instead of in front. When we export them to Excel, the negative numbers
seem
to be ignored in totals and we are manually moving the negative signs from
back to front to get our totals correct. Is there a way to do this
faster?


  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 5,939
Default Switching negative signs from back to front

Check out this link...

http://www.mcgimpsey.com/excel/postfixnegatives.html
--
HTH...

Jim Thomlinson


"tracytracy123" wrote:

Our system reports unfortunately have negative signs in back of numbers
instead of in front. When we export them to Excel, the negative numbers seem
to be ignored in totals and we are manually moving the negative signs from
back to front to get our totals correct. Is there a way to do this faster?

  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2
Default Switching negative signs from back to front

Hi tracytracy123

Assuming the imported values are now seen as a character (left aligned) I
would suggest sorting so all the characters are together and then assuming
the value 123- is in cell c21 the following formula should sort it
=(LEFT(C21,LEN(C21)-1))*-1
Hope this helps


"tracytracy123" wrote:

Our system reports unfortunately have negative signs in back of numbers
instead of in front. When we export them to Excel, the negative numbers seem
to be ignored in totals and we are manually moving the negative signs from
back to front to get our totals correct. Is there a way to do this faster?

  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 35,218
Default Switching negative signs from back to front

Depending on how you're importing the data, you may see the text to columns
wizard.

And in xl2003 (for sure, maybe xl2002???) and greater, you'll see an advanced
button on step 3 of the wizard.

There's an option to treat those trailing minuses as negative numbers.

If your data is already in place, you can use data|text to columns and start
that same wizard (again xl2003 (or xl2002???) or later.

tracytracy123 wrote:

Our system reports unfortunately have negative signs in back of numbers
instead of in front. When we export them to Excel, the negative numbers seem
to be ignored in totals and we are manually moving the negative signs from
back to front to get our totals correct. Is there a way to do this faster?


--

Dave Peterson
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
print front and back bloomdl Excel Worksheet Functions 1 April 3rd 08 07:43 PM
Remove Negative Signs from Formula Results Holly Excel Worksheet Functions 4 January 15th 08 04:01 AM
- signs at back of number so won't add up, please help! Adam Excel Discussion (Misc queries) 6 February 24th 06 09:26 AM
switching values from positive to negative lob Excel Worksheet Functions 5 February 18th 05 11:11 PM
reversing signs - making postive a negative number mklafert Excel Worksheet Functions 4 November 29th 04 03:18 AM


All times are GMT +1. The time now is 02:59 AM.

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

About Us

"It's about Microsoft Excel"