Andreas Hermle
asked on
Extracting substrings using a formula
Dear Experts:
I got the following file paths entered in column A
M:\KLS_General\DMD\PM_1\My File_Final _2.pdf
M:\KLS_General_17\DMD\PM_2 _3\MyFile2 .pdf
M:\KLS_General_2\DMD\PM_4_ 5_6\MyFile 6_Final_23 072017.pdf
Is it possible to extract the substrings after the fourth (4th) back slash using a formula. I got a macro for this purpose but I wonder whether the same could be achieved using a formula, ie. applying the formula the results would be as follows:
MyFile_Final_2.pdf
MyFile2.pdf
MyFile6_Final_23072017.pdf
Help is much appreciated.
Thank you very much in advance.
Regards, Andreas
I got the following file paths entered in column A
M:\KLS_General\DMD\PM_1\My
M:\KLS_General_17\DMD\PM_2
M:\KLS_General_2\DMD\PM_4_
Is it possible to extract the substrings after the fourth (4th) back slash using a formula. I got a macro for this purpose but I wonder whether the same could be achieved using a formula, ie. applying the formula the results would be as follows:
MyFile_Final_2.pdf
MyFile2.pdf
MyFile6_Final_23072017.pdf
Help is much appreciated.
Thank you very much in advance.
Regards, Andreas
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Just realised that Shums' suggestion would also do last \ rather than specific and his formula is much shorter.
ASKER
Incredible, the speed with which you come up with your solutions. By the way, all of them work just fine.
Since I can learn from all of them I suggest givinig all of you points. I hope Shums does not mind, although his formula is the most concise (as Rob commented) and he was the quickest to answer.
Thank you very much for your great and professional help. I really appreciate it. Regards, Andreas
Since I can learn from all of them I suggest givinig all of you points. I hope Shums does not mind, although his formula is the most concise (as Rob commented) and he was the quickest to answer.
Thank you very much for your great and professional help. I really appreciate it. Regards, Andreas
ASKER
Great jobs from all of you. Thank you very much.
Regards, Andreas
Regards, Andreas
You close the question and award the points.Divide the points by 4, one for each answer should be fair
No worries, glad to assist.
ASKER
Hi Roy,
uppps, just saw your comment, as a matter of fact I did not awardthe points in equal shares. Hope you don't mind. It is always hard to award points equitably. Maybe I should have awarded the points as you suggested.
Regards, Andreas
uppps, just saw your comment, as a matter of fact I did not awardthe points in equal shares. Hope you don't mind. It is always hard to award points equitably. Maybe I should have awarded the points as you suggested.
Regards, Andreas
Hi Andreas,
You're welcome! Glad I was able to assist you.
I think you took the right decision, because in other solution you need to count the number of "\"
Thanks Rob for justifying.
You're welcome! Glad I was able to assist you.
I think you took the right decision, because in other solution you need to count the number of "\"
Thanks Rob for justifying.
Open in new window