Due to SP limitations in workflows for extracting text strings, I'm looking for another way to skin the cat.

If I have a single-line text column that has a file path like:


I know the string "C:\folder1\folder2\" will always be the same, but the StringIWantToExtract will be an unknown length, as will the string after the last "\".

I would think there would be a way to tell a formula to start the extraction after the first, known part of the string, and then maybe just erase the text that includes and follows the last "/" in the string.


  • What do you want to do? Store it somewhere? Display it in a View? Jul 28, 2015 at 16:28
  • i was basically extracting it with the calc column because i couldn't do the same task in a workflow
    – Carp
    Jul 28, 2015 at 22:57

1 Answer 1


I received some help from a friend, and from some posters on the MrExcel board. The formulas offered up do work for this task



where the character count of "20" is the set number of characters in the front, known string +1.

another formula for doing it relies on the three \ characters and looks like this


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.