Question

I've got the following file name convention for images in an SP document library -

CQYr UnqID Qual Name

2020 RR0000 Bus Driver Roger Rabbit

I am using the following in a calculate column in that same library to extract the year out of the file name.

=LEFT(Title,(FIND(" ",Title)-1))

I have columns for the other three. How would I modify the calculation for each so that only the UnqID appears in that column, Qual in that column, and Name in that column?

Was it helpful?

Solution

For this particular example, you can try the following formulas:

1) CQYr 
=LEFT(Title,4)

2) UnqID
=MID(Title,5,6)

3) Qual
=MID(Title,13,FIND(" ",Title,17)-13)

4) Name
=MID(Title,LEN(LEFT(Title,FIND(" ",Title,17))&" "),20)

enter image description here

Note: Need to validate for other values of [Title], specifically value of Qual in [Title]. If we know the MIN and MAX LEN(Qual) in the entire set of [Title] values, the formulas can be adjusted accordingly.

Licensed under: CC-BY-SA with attribution
Not affiliated with sharepoint.stackexchange
scroll top