|
-
Jun 14th, 2004, 04:38 AM
#1
Thread Starter
Addicted Member
Column Replace
Hi all ;
i want to insert a macro into my excel sheet to replace each cell in a colum A :
from format :
ABC/R1/S2-7 -11
to This one ??
ABC R1.S2.LT5 .11
p.s. 7 - 2 = LT5
cAN ANY BODY HELP !!!
Where Ignorance Is Bliss , It's Folly To Be Wise
---------------------------------------------
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.
Best Regards;
Lina
-
Jun 15th, 2004, 03:33 AM
#2
Addicted Member
I think you mean a *formula* - not "macro" which is code separate from a worksheet.
This does what you asked from the data supplied, but you may need to adapt it according to other cell contents :-
=CONCATENATE(LEFT(A1,3)," ",MID(A1,5,2),".",MID(A1,8,2),".LT",VALUE(MID(A1,11,2)-2)," .",RIGHT(A1,2))
Regards
BrianB
-------------------------------
-
Jun 16th, 2004, 12:51 AM
#3
Thread Starter
Addicted Member
What about the highlighted 1-digit ..
ABC/R1/S2-7-8
your formula will work only if there was only more than 1 digit there but if there was only 1 digit the the formula then will be worng !!!!
17 must be LT15 and 7 must be LT5
Where Ignorance Is Bliss , It's Folly To Be Wise
---------------------------------------------
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.
Best Regards;
Lina
-
Mar 14th, 2005, 03:40 AM
#4
Thread Starter
Addicted Member
Re: Column Replace
Hi Guys ,,, I still Didnt get a reply from you ..
Any Help !??
I want to return the String between the two "-" :
ABC/X1/Y1-10-1
The result must be 10 or what ever between the two "-" !!
Thnx
Last edited by Lina229; Mar 14th, 2005 at 05:38 AM.
Where Ignorance Is Bliss , It's Folly To Be Wise
---------------------------------------------
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.
Best Regards;
Lina
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|