View Single Post
  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Fred Smith[_4_] Fred Smith[_4_] is offline
external usenet poster
 
Posts: 2,389
Default How to change "xxx CR" and "y,yyy DB" to "+xxx" and "-yyyy"

Try this:

=IF(RIGHT(A1,2)="CR",-(LEFT(A1,LEN(A1)-3)),--(LEFT(A1,LEN(A1)-3)))

Regards,
Fred.

"vud i" <vud wrote in message
...
I have copied a printed report to Excel. For further calculations, I need
to
change the credit and debit notations to positive and negative numbers or
numerical text. To do this, one must ... ???