hi ,
I have cells I following format :
10000dr
20000cr
5000dr
3000cr
I want to replace dr with "-" sign in prefix
and cr with "+" or null .
so that the output must be like this :
-10000
+20000
-5000
+3000
thanks In advace
hi ,
I have cells I following format :
10000dr
20000cr
5000dr
3000cr
I want to replace dr with "-" sign in prefix
and cr with "+" or null .
so that the output must be like this :
-10000
+20000
-5000
+3000
thanks In advace
Assuming you have data in A1
Try
B1Formula:
Please Login or Register to view this content.
Last edited by shukla.ankur281190; 02-27-2017 at 02:11 AM.
If I helped, Don't forget to add reputation (click on the little star ★ at bottom of this post)
Don't forget to mark threads as "Solved" (Thread Tools->Mark thread as Solved)
have to use vba (I think data was imported from tally or accounting package)
Samba
Say thanks to those who have helped you by clicking Add Reputation star.
thanks but it is replacing all with '+'
yes it is imported from tally
Glad to know that !!!
If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED. Thanks.
Another option:
=1*(IF(RIGHT(A2,2)="dr","-",0)&LEFT(A2,LEN(A2)-2))
Quang PT
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks