Hi all, I have a list of SharePoint file URLs and I need you help with a formula to extract part of the URL up to the 2nd sub directory or sub-site e.g.
http://company.sharepoint.com/teamsite/Subdirectory1/
http://company.sharepoint.com/teamsite/Subdirectory1/folderA/folder1/
http://company.sharepoint.com/teamsite/Subdirectory1/folderB/
http://company.sharepoint.com/teamsite/Subdirectory2/
http://company.sharepoint.com/teamsite/Subdirectory2/folderC/
http://company.sharepoint.com/teamsite/Subdirectory3/
http://company.sharepoint.com/teamsite/Subdirectory3/folderD/
http://company.sharepoint.com/teamsite/Subdirectory3/folderE/folder2
The expected result I'm after on the right or left of a corresponding column to the above list, would be:
http://company.sharepoint.com/teamsite/Subdirectory1/
http://company.sharepoint.com/teamsite/Subdirectory1/
http://company.sharepoint.com/teamsite/Subdirectory1/
http://company.sharepoint.com/teamsite/Subdirectory2/
http://company.sharepoint.com/teamsite/Subdirectory2/
http://company.sharepoint.com/teamsite/Subdirectory3/
http://company.sharepoint.com/teamsite/Subdirectory3/
http://company.sharepoint.com/teamsite/Subdirectory3/
Caputuring just the first 2 sub directories which are: teamsite/subdirectoryX/
thanks in advance
http://company.sharepoint.com/teamsite/Subdirectory1/
http://company.sharepoint.com/teamsite/Subdirectory1/folderA/folder1/
http://company.sharepoint.com/teamsite/Subdirectory1/folderB/
http://company.sharepoint.com/teamsite/Subdirectory2/
http://company.sharepoint.com/teamsite/Subdirectory2/folderC/
http://company.sharepoint.com/teamsite/Subdirectory3/
http://company.sharepoint.com/teamsite/Subdirectory3/folderD/
http://company.sharepoint.com/teamsite/Subdirectory3/folderE/folder2
The expected result I'm after on the right or left of a corresponding column to the above list, would be:
http://company.sharepoint.com/teamsite/Subdirectory1/
http://company.sharepoint.com/teamsite/Subdirectory1/
http://company.sharepoint.com/teamsite/Subdirectory1/
http://company.sharepoint.com/teamsite/Subdirectory2/
http://company.sharepoint.com/teamsite/Subdirectory2/
http://company.sharepoint.com/teamsite/Subdirectory3/
http://company.sharepoint.com/teamsite/Subdirectory3/
http://company.sharepoint.com/teamsite/Subdirectory3/
Caputuring just the first 2 sub directories which are: teamsite/subdirectoryX/
thanks in advance