Removing the CR DB trailer from a number xx.xxCR

  • Thread starter Thread starter Ymtrader
  • Start date Start date
Y

Ymtrader

Hello,

I have a worksheet that uses a CR or DB at the end of each number.
What I need to do is to remove the cr and db but change the number to
a + or - so to keep the totals accurate. Any ideas and help would be
appreciated.

Jeff
 
Apply this formual to the cells in question.

=IF(RIGHT(B5,2)="Cr",VALUE(LEFT(B5,LEN(B5)-2))*-1,VALUE(LEFT(B5,LEN(B5)-2)))
 
Give this a try...

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

Rick
 

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