+ Reply to Thread
Results 1 to 22 of 22

Ingnore First Word When Sorting

Hybrid View

  1. #1
    Registered User
    Join Date
    10-07-2017
    Location
    Hampshire, England
    MS-Off Ver
    Office 365, Windows 10
    Posts
    44

    Ingnore First Word When Sorting

    Hi,

    I am creating a 'Data Entry' I am cataloging my record collection and want to sort by artist. The problem is when I have a band name that starts with the word 'The'. When I sort 'The' will start at 'T'.

    I need to bee able to ignore the first word in these cells as and when it appears.

    Thank you,
    Rob

  2. #2
    Banned User!
    Join Date
    02-05-2015
    Location
    San Escobar
    MS-Off Ver
    any on PC except 365
    Posts
    12,168

    Re: Ingnore First Word When Sorting

    Try this way:
    The band name ==>> Band name, The

    most of services doing it just because of "The"

  3. #3
    Registered User
    Join Date
    10-07-2017
    Location
    Hampshire, England
    MS-Off Ver
    Office 365, Windows 10
    Posts
    44

    Re: Ingnore First Word When Sorting

    Hi Sandy,

    This is an alternative if there is no solution.

    Many of the site that I belong to have "The" first and they sort as intended, so there must be a solution somewhere.

    Thank you for you support,
    Rob

  4. #4
    Banned User!
    Join Date
    02-05-2015
    Location
    San Escobar
    MS-Off Ver
    any on PC except 365
    Posts
    12,168

    Re: Ingnore First Word When Sorting

    Create helper, hidden column with: Band name, The and sort by this column
    so there will be three columns, two visible as you want and one hidden to sort

    but of course you can use any formula to do this

    would be fine if you will attach example excel file
    Last edited by sandy666; 10-07-2017 at 07:17 AM.

  5. #5
    Registered User
    Join Date
    10-07-2017
    Location
    Hampshire, England
    MS-Off Ver
    Office 365, Windows 10
    Posts
    44

    Re: Ingnore First Word When Sorting

    Hi Sandy,

    So how can I add a sample to this thread?

  6. #6
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2406
    Posts
    44,662

    Re: Ingnore First Word When Sorting

    Create a helper column:

    =IF(LEFT(A1,4)="The ",MID(A1,5,255),A1)

    Then sort the data using this helper column. Finally, delete the helper column.
    Glenn




    None of us get paid for helping you... we do this for fun. So DON'T FORGET to say "Thank You" to all who have freely given some of their time to help YOU

  7. #7
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2406
    Posts
    44,662

    Re: Ingnore First Word When Sorting

    Unfortunately the attachment icon doesn't work at the moment. So, to attach an Excel file you have to do the following: Just before posting, scroll down to Go Advanced and then scroll down to Manage Attachments. Now follow the instructions at the top of that screen.

    But do try the solution at post 5, first...

  8. #8
    Registered User
    Join Date
    10-07-2017
    Location
    Hampshire, England
    MS-Off Ver
    Office 365, Windows 10
    Posts
    44

    Re: Ingnore First Word When Sorting

    Hi Glen,

    Tried that but I wasn't successful.

  9. #9
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2406
    Posts
    44,662

    Re: Ingnore First Word When Sorting

    What are you talking about - attaching a sample file, or my suggestion?

  10. #10
    Banned User!
    Join Date
    02-05-2015
    Location
    San Escobar
    MS-Off Ver
    any on PC except 365
    Posts
    12,168

    Re: Ingnore First Word When Sorting

    I've solution but with your version of Excel it doesn't work becaue Ex2007 doesn't support PowerQuery
    but maybe you can see result if it is that what you want to achieve
    Attached Files Attached Files

  11. #11
    Registered User
    Join Date
    10-07-2017
    Location
    Hampshire, England
    MS-Off Ver
    Office 365, Windows 10
    Posts
    44

    Re: Ingnore First Word When Sorting

    Thank you for your support Sandy

  12. #12
    Banned User!
    Join Date
    02-05-2015
    Location
    San Escobar
    MS-Off Ver
    any on PC except 365
    Posts
    12,168

    Re: Ingnore First Word When Sorting

    To attach an Excel file to your post,
    • click Go Advanced,
    • scroll down until you see Manage Attachments,
    • click that and select Browse,
    • select your file and click Open,
    • click Upload and you will see your attachment below Upload Files from a website
    • click Close this window,
    • click Submit reply

    After that you should see attachment in your post

  13. #13
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2406
    Posts
    44,662

    Re: Ingnore First Word When Sorting

    Here is a sample of mine, showing the various steps to go through.
    Attached Files Attached Files

  14. #14
    Registered User
    Join Date
    10-07-2017
    Location
    Hampshire, England
    MS-Off Ver
    Office 365, Windows 10
    Posts
    44

    Re: Ingnore First Word When Sorting

    Perfect.

    It's always easier with examples.

  15. #15
    Banned User!
    Join Date
    02-05-2015
    Location
    San Escobar
    MS-Off Ver
    any on PC except 365
    Posts
    12,168

    Re: Ingnore First Word When Sorting

    You are welcome

    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED. Thanks.

  16. #16
    Banned User!
    Join Date
    02-05-2015
    Location
    San Escobar
    MS-Off Ver
    any on PC except 365
    Posts
    12,168

    Re: Ingnore First Word When Sorting

    @Robert_Ham

    use @[screenname] because we don't know to whom you are type

  17. #17
    Banned User!
    Join Date
    02-05-2015
    Location
    San Escobar
    MS-Off Ver
    any on PC except 365
    Posts
    12,168

    Re: Ingnore First Word When Sorting

    Thanks for rep but IMHO Glenn was more helpfull

  18. #18
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2406
    Posts
    44,662

    Re: Ingnore First Word When Sorting

    Thanks for the Rep, Robert... I thought that I was invisible today, as there were no comments from you. I guess I was "seen", though.

  19. #19
    Registered User
    Join Date
    10-07-2017
    Location
    Hampshire, England
    MS-Off Ver
    Office 365, Windows 10
    Posts
    44

    Re: Ingnore First Word When Sorting

    Hi,

    If I wanted to add another word to "The", how would this be done?

    I want to add "Mr." so that I can still organise by first name.

    The name written is 'Mr. Herbert Payne' and I want to sort it as 'Herbert Payne' leaving the "Mr." in front of 'Herbert'

  20. #20
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2406
    Posts
    44,662

    Re: Ingnore First Word When Sorting

    Yep. use this instead:

    =IF(LEFT(C2,4)="The ",MID(C2,5,255),IF(LEFT(C2,4)="Mr. ",MID(C2,5,255),C2))
    Attached Files Attached Files

  21. #21
    Registered User
    Join Date
    10-07-2017
    Location
    Hampshire, England
    MS-Off Ver
    Office 365, Windows 10
    Posts
    44

    Re: Ingnore First Word When Sorting

    Perfect

    Thank you Glenn.

  22. #22
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2406
    Posts
    44,662

    Re: Ingnore First Word When Sorting

    You're welcome.



    If that takes care of your original question, please select "Thread Tools" from the menu link above and mark this thread as SOLVED.

    It'd also be appreciated if you were to click the Add Reputation button at the foot of any of the posts of all members who helped you reach a solution.

+ 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. Sorting by second word in each cell?
    By shivers in forum Excel General
    Replies: 4
    Last Post: 02-05-2016, 03:58 PM
  2. [SOLVED] vlookup formula to ingnore perticular data
    By vanitarathod in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 07-05-2014, 02:22 AM
  3. Formula addition to ingnore blank cells
    By cassandralcoleman in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-25-2012, 03:07 PM
  4. Excel 2007 : Vlookup to ingnore missing values
    By ChrisE in forum Excel General
    Replies: 1
    Last Post: 08-27-2009, 09:43 PM
  5. Sorting column by last word (name)
    By braenz in forum Excel General
    Replies: 3
    Last Post: 09-09-2008, 04:27 AM
  6. ingnore nonexisting subrouitine
    By Jack Sons in forum Excel General
    Replies: 9
    Last Post: 09-12-2005, 10:05 AM
  7. [SOLVED] Cell Validation "Ingnore Blanks" doesn't work
    By keithb in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 08-15-2005, 09:05 PM

Tags for this Thread

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