Explanation

The replace function lets you replace text based on its location and length.

In this case, we want to strip off the drive and path and leave only the document name.

For example =REPLACE(“XYZ123”,4,3,“456”) returns “XYZ456”.

Excel formula: Split text string at specific character

Excel formula: Remove characters from right

Excel formula: Remove first character

Excel formula: Remove text by variable position

Excel formula: Remove text by matching

Excel formula: Remove last word

Excel REPLACE function