You can manually edit each cell to delete the path, which is okay for only a few. However, that is not practical for many folders. Alternatively, there is a unique formula which trims the name and path down to leave only the name of the last sub-folder level.