![]() |
![]() |
|
|||||||
| Excel Questions All Excel/VBA questions - formulas, macros, pivot tables, general help, etc. Please post to this forum in English only. |
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
New Member
Join Date: Apr 2002
Posts: 4
|
I am importing data into excel. The numbers show with "cr"'s at that end because they were credits in our accounting software. Is there an easy way to remove the "CR" and put a "-" in front of the number.
|
|
|
|
|
|
#2 |
|
MrExcel MVP
Join Date: Feb 2002
Location: Columbus, OH, USA
Posts: 3,519
|
Yup, CTRL+H (search and replace)
Tell it to find "CR" and replace it with "-". Smack "replace all" button. HTH |
|
|
|
|
|
#3 |
|
New Member
Join Date: Apr 2002
Posts: 4
|
Thanks for your help!
Is there any way to get rid of the "cr" at the end of the number. Then put the "-" in front of the number. |
|
|
|
|
|
#4 |
|
New Member
Join Date: Apr 2002
Posts: 4
|
I used the cntl h to get rid of the "CR"s, Then in the column after the # I put = - (inserted cell number). Then I hid the original cell.
|
|
|
|
|
|
#5 |
|
MrExcel MVP
Join Date: Feb 2002
Location: Millbank, London, UK
Posts: 1,790
|
one step instead of two :
=IF(RIGHT(A5,2)="CR",SUBSTITUTE(A5,"CR","")*-1,A5*1) where A5, for example, holds your Accounting system output first cell.... then just copy down
__________________
:: Pharma Z - Family drugstore :: |
|
|
|
|
|
#6 |
|
New Member
Join Date: Apr 2002
Posts: 4
|
Thanks!!!! I knew there had to be a neater way to get the job done.
|
|
|
|
![]() |
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|