Results 1 to 3 of 3
  1. #1
    New Lounger
    Join Date
    Sep 2004
    Location
    Atkinson, New Hampshire, USA
    Posts
    17
    Thanks
    6
    Thanked 0 Times in 0 Posts

    Sorting for specific letters

    I am working with a large spreadsheet that is a price listing, containing 4 columns. Part number, description, list price, and net price. The description column has roughly 3000 descriptions with the letters NLA (meaning no longer available) I need to filter these out or at least sort them to the top or bottom so I can delete them. The letters are typically at the end of the description and the descriptions are of various lengths. Any ideas? Thank you.

  2. #2
    Super Moderator RetiredGeek's Avatar
    Join Date
    Mar 2004
    Location
    Manning, South Carolina
    Posts
    9,436
    Thanks
    372
    Thanked 1,457 Times in 1,326 Posts
    WW,

    One way would be to add a 5th column with the formula =Right(B1,3)
    Copy it down then Sort on it and you'll have all the NLAs together and they can be deleted.
    Note: This assumes none of the regular descriptions end in NLA!

    This could also be done with VBA code. I wrote something similar the other day for the Lounge but I'm currently working on my laptop as I'm imaging my desktop so I don't have access to the file right now.
    May the Forces of good computing be with you!

    RG

    PowerShell & VBA Rule!

    My Systems: Desktop Specs
    Laptop Specs

  3. The Following User Says Thank You to RetiredGeek For This Useful Post:

    wackieworld (2014-11-09)

  4. #3
    New Lounger
    Join Date
    Sep 2004
    Location
    Atkinson, New Hampshire, USA
    Posts
    17
    Thanks
    6
    Thanked 0 Times in 0 Posts

    Red face Thank You

    That is great thank you very much it worked perfectly.

Posting Permissions

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