I have been ripping my movie collection now for a little and need a little help with a database I am creating for it. I have a movie database list with the movie titles in column C, the year in column D, and the release version (Theatrical Cut, Director's Cut, etc) in column E. I currently have column B setup to substitute symbols with "."
The current formula is as follows in column B:
=SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(C3," - ",".")," ","."),"'",""),":",""),"/","."),"..",""),",","")&IF(RIGHT(C3,1)=".","",".")&D3&IF(E3="","","."&SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(E3," - ",".")," ","."),"'",""),":",""),"/","."),"..",""),",",""))
The problem I am running into is that you can only nest 7 Substitutes before it no longer will work and I need to substitute many more symbols than that.
I want the output in column B to be as follows where each word and the year is separated by only one ".":
[TABLE="width: 833"]
<colgroup><col><col><col><col></colgroup><tbody>[TR]
[TD]B[/TD]
[TD]C [/TD]
[TD]D[/TD]
[TD]E [/TD]
[/TR]
[TR]
[TD]Info File Filename[/TD]
[TD]Title[/TD]
[TD]Year[/TD]
[TD]Release Version[/TD]
[/TR]
[TR]
[TD]Movie.1.Title.2016.Directors.Cut[/TD]
[TD]Movie 1 Title[/TD]
[TD]2016[/TD]
[TD]Director's Cut[/TD]
[/TR]
[TR]
[TD]Movie.2.Title.2012.Recut.Unrated.Extended[/TD]
[TD]Movie 2: Title[/TD]
[TD]2012[/TD]
[TD]Recut, Unrated, Extended[/TD]
[/TR]
[TR]
[TD]Movie.3.Title.2010[/TD]
[TD]Movie 3 - Title[/TD]
[TD]2010[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Movie.3.Title.A.Title.B.2004[/TD]
[TD]Movie 3 Title A/Title B[/TD]
[TD]2004[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Movie.5.Title.2005.Special.Edition.DVD[/TD]
[TD]Movie 5... Title[/TD]
[TD]2005[/TD]
[TD]Special Edition DVD[/TD]
[/TR]
</tbody>[/TABLE]
I have setup a new sheet named "Replacement List" where the value to be replaced is in column A and the new symbol is in column B as follows:
[TABLE="width: 198"]
<colgroup><col><col></colgroup><tbody>[TR]
[TD]Find…[/TD]
[TD]Replace With…[/TD]
[/TR]
[TR]
[TD]" - "[/TD]
[TD]"."[/TD]
[/TR]
[TR]
[TD]"-"[/TD]
[TD]"."[/TD]
[/TR]
[TR]
[TD]"?"[/TD]
[TD]"."[/TD]
[/TR]
[TR]
[TD]"/"[/TD]
[TD]"."[/TD]
[/TR]
[TR]
[TD]""[/TD]
[TD]"."[/TD]
[/TR]
[TR]
[TD]"'"[/TD]
[TD]"."[/TD]
[/TR]
[TR]
[TD]": "[/TD]
[TD]"."[/TD]
[/TR]
[TR]
[TD]"_"[/TD]
[TD]"."[/TD]
[/TR]
[TR]
[TD]"|"[/TD]
[TD]"."[/TD]
[/TR]
[TR]
[TD]"("[/TD]
[TD]"."[/TD]
[/TR]
[TR]
[TD]")"[/TD]
[TD]"."[/TD]
[/TR]
[TR]
[TD]","[/TD]
[TD]"."[/TD]
[/TR]
[TR]
[TD]"$"[/TD]
[TD]"."[/TD]
[/TR]
</tbody>[/TABLE]
How would I best go about this?
Keep in mind that "Movie-1" and "Movie - 1" would both need to return "Movie.1". "Movie - 1" should NOT return "Movie...1".
The current formula is as follows in column B:
=SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(C3," - ",".")," ","."),"'",""),":",""),"/","."),"..",""),",","")&IF(RIGHT(C3,1)=".","",".")&D3&IF(E3="","","."&SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(E3," - ",".")," ","."),"'",""),":",""),"/","."),"..",""),",",""))
The problem I am running into is that you can only nest 7 Substitutes before it no longer will work and I need to substitute many more symbols than that.
I want the output in column B to be as follows where each word and the year is separated by only one ".":
[TABLE="width: 833"]
<colgroup><col><col><col><col></colgroup><tbody>[TR]
[TD]B[/TD]
[TD]C [/TD]
[TD]D[/TD]
[TD]E [/TD]
[/TR]
[TR]
[TD]Info File Filename[/TD]
[TD]Title[/TD]
[TD]Year[/TD]
[TD]Release Version[/TD]
[/TR]
[TR]
[TD]Movie.1.Title.2016.Directors.Cut[/TD]
[TD]Movie 1 Title[/TD]
[TD]2016[/TD]
[TD]Director's Cut[/TD]
[/TR]
[TR]
[TD]Movie.2.Title.2012.Recut.Unrated.Extended[/TD]
[TD]Movie 2: Title[/TD]
[TD]2012[/TD]
[TD]Recut, Unrated, Extended[/TD]
[/TR]
[TR]
[TD]Movie.3.Title.2010[/TD]
[TD]Movie 3 - Title[/TD]
[TD]2010[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Movie.3.Title.A.Title.B.2004[/TD]
[TD]Movie 3 Title A/Title B[/TD]
[TD]2004[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Movie.5.Title.2005.Special.Edition.DVD[/TD]
[TD]Movie 5... Title[/TD]
[TD]2005[/TD]
[TD]Special Edition DVD[/TD]
[/TR]
</tbody>[/TABLE]
I have setup a new sheet named "Replacement List" where the value to be replaced is in column A and the new symbol is in column B as follows:
[TABLE="width: 198"]
<colgroup><col><col></colgroup><tbody>[TR]
[TD]Find…[/TD]
[TD]Replace With…[/TD]
[/TR]
[TR]
[TD]" - "[/TD]
[TD]"."[/TD]
[/TR]
[TR]
[TD]"-"[/TD]
[TD]"."[/TD]
[/TR]
[TR]
[TD]"?"[/TD]
[TD]"."[/TD]
[/TR]
[TR]
[TD]"/"[/TD]
[TD]"."[/TD]
[/TR]
[TR]
[TD]""[/TD]
[TD]"."[/TD]
[/TR]
[TR]
[TD]"'"[/TD]
[TD]"."[/TD]
[/TR]
[TR]
[TD]": "[/TD]
[TD]"."[/TD]
[/TR]
[TR]
[TD]"_"[/TD]
[TD]"."[/TD]
[/TR]
[TR]
[TD]"|"[/TD]
[TD]"."[/TD]
[/TR]
[TR]
[TD]"("[/TD]
[TD]"."[/TD]
[/TR]
[TR]
[TD]")"[/TD]
[TD]"."[/TD]
[/TR]
[TR]
[TD]","[/TD]
[TD]"."[/TD]
[/TR]
[TR]
[TD]"$"[/TD]
[TD]"."[/TD]
[/TR]
</tbody>[/TABLE]
How would I best go about this?
Keep in mind that "Movie-1" and "Movie - 1" would both need to return "Movie.1". "Movie - 1" should NOT return "Movie...1".