+ Reply to Thread
Results 1 to 7 of 7

Sorting titles of movies

Hybrid View

  1. #1
    Registered User
    Join Date
    08-30-2015
    Location
    Belgium
    MS-Off Ver
    2013
    Posts
    5

    Sorting titles of movies

    Hi all,

    I want to sort my dvd database from a to z. For movies starting with a to z no problem but I have movies starting with numbers (2 Guns, 16 blocks, 8 Mile, sorted out as 16 blocks 2 Guns, 8 mile) or in case of sequels numbers behind it (star trek 1 to 12, star trek 10,11,12 sorts out before 2). I searched this forum and found several solutions but none of them worked for me so far... Can any one explain step by step how to fix this for the entire document.

    Greetings Crasher...

    P.S. I use Office 2013
    Attached Files Attached Files

  2. #2
    Registered User
    Join Date
    08-23-2015
    Location
    Spain
    MS-Off Ver
    2007
    Posts
    32

    Re: Sorting titles of movies

    The easiest way I can think of is to use a helper column where you write the titles as you intend to sort them, ie:
    2 Guns --> Two Guns
    16 Blocks --> Sixteen Blocks
    8 Miles --> Eight Miles
    Star Trek 1 --> Star Trek 01
    Any VBA solution should indentify the numbers, and then replace by the correspondent words/letters or adding 0(s)... too much work since there can be movies that have a year (4 numbers) on their title, or even 5 (ie: 10.000 B.C.).
    As I said, copy the name column to the helper column, then filter the ones with numbers, and re-write them correctly according to your needs... You only have to do it once, and also for every new title you add afterwards.
    May the REPUTATION be with me

  3. #3
    Registered User
    Join Date
    08-30-2015
    Location
    Belgium
    MS-Off Ver
    2013
    Posts
    5

    Re: Sorting titles of movies

    Ok, I will try this later this week. I'll keep ya posted when it works...

    Thanks in advance for the fast reply...

  4. #4
    Registered User
    Join Date
    08-30-2015
    Location
    Belgium
    MS-Off Ver
    2013
    Posts
    5

    Re: Sorting titles of movies

    Can I ask one more thing FerJo,

    Is there a way to autocopy the newly typed title from the colum with title to the help column where I have to change the digit's....

    Greetings Crasher

  5. #5
    Registered User
    Join Date
    08-30-2015
    Location
    Belgium
    MS-Off Ver
    2013
    Posts
    5

    Re: Sorting titles of movies

    I did it like you said but by changing the numbers in words (1 --> one) didn't do the trick so I tried it with adding zero's and that worked just fine.

    Maybe worth saying that if you wan't to sort out numbers by adding zero's you have to add as many zero's as the largest number counts:

    Example:

    If the largest number is 99 then you add before 1 to 9, 1 zero (01,02,03,04,05,06,...)
    If the largest number is 999 then you add before 1 to 9, 2 zero's (001,002,003,004,005,...) and before 10 to 99, 1 zero (010,011,012,...,097,098,099)
    and so on...

    Anyway thanks FerJo for the reply, it was very helpfull in my search for the solution...

    Greetings Crasher

  6. #6
    Registered User
    Join Date
    08-23-2015
    Location
    Spain
    MS-Off Ver
    2007
    Posts
    32

    Re: Sorting titles of movies

    Quote Originally Posted by Crasher151178 View Post
    I did it like you said but by changing the numbers in words (1 --> one) didn't do the trick so I tried it with adding zero's and that worked just fine.
    If you wanted titles starting with a number to be sorted in their corresponded place (that is, 8 Miles in the E) then that was the way... if you want titles starting with numbers stay the first, then yes, don't replace numbers and fulfill with 0's on the left, as many 0's to equal the longer number length.

    Is there a way to autocopy the newly typed title from the colum with title to the help column where I have to change the digit's....
    Why not use Ctrl+C and Ctrl+V? The solution you want can be made with a sheet event, but it requires to save the book as an .xlsm, that is, macro enabled. But honestly, if you are not very sure about VBA, don't mess with it for such a thing... It only would be worthy if you were adding a lot of titles everyday, and the time saving wouldn't be that great anyway: you can add all the titles first, and then just make one copy-paste of all at the same time...

  7. #7
    Registered User
    Join Date
    08-30-2015
    Location
    Belgium
    MS-Off Ver
    2013
    Posts
    5

    Re: Sorting titles of movies

    Thanks for the info, it was very usefull... I learned that the easy way isn't always the better way... Ctrl + c and Ctrl + v will do the trick...

    Greetings Crasher

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Movies worth seeing
    By pike in forum The Water Cooler
    Replies: 80
    Last Post: 06-19-2012, 05:14 AM
  2. something to tell me how many movies have i rated each day
    By Isomatrix in forum Excel - New Users/Basics
    Replies: 3
    Last Post: 01-31-2012, 04:00 PM
  3. Replies: 4
    Last Post: 06-22-2011, 09:50 AM
  4. Replies: 3
    Last Post: 12-22-2009, 07:33 PM
  5. [SOLVED] sorting issues for movie titles
    By m1rr0rshade in forum Excel General
    Replies: 5
    Last Post: 03-13-2006, 11:35 PM
  6. Sorting titles for a mail out
    By LanceB in forum Excel - New Users/Basics
    Replies: 1
    Last Post: 08-29-2005, 12:05 PM
  7. Sorting Titles
    By JediLuke in forum Excel - New Users/Basics
    Replies: 5
    Last Post: 08-21-2005, 03:05 PM
  8. [SOLVED] Sorting movie titles? skipping The, A, An etc?
    By Mr B in forum Excel General
    Replies: 4
    Last Post: 07-09-2005, 04:05 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1