Converting an invalid negative number to recognizable format?

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

An excalibur report printed into an excel table displays its negative numbers
with the negative sign at the end of the number. How can I move all of the
incorrect negative signs to the front of the number without having to move
them all individually?
 
An excalibur report printed into an excel table displays its negative
numbers with the negative sign at the end of the number. How can I
move all of the incorrect negative signs to the front of the number
without having to move them all individually?

Using a worksheet function: put this formula in a temporary "helper column":

=IF(RIGHT(A1,1)="-",LEFT(A1,LEN(A1)-1)*-1,A1)

(adjust cell ref accordingly) and copy down. Then copy / paste values the
cells from the helper column back to the original column.

A similar approach could be done with VBA, without having to use a temporary
helper column.
 
Data>Text to Columns>Next>Next>Advanced.

Make sure "Trailing minus etc." is checkemarked.


Gord Dibben MS Excel MVP
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top