+ Reply to Thread
Results 1 to 7 of 7

Selective sorting

  1. #1
    Forum Contributor
    Join Date
    01-29-2008
    Location
    Scotland
    MS-Off Ver
    2003
    Posts
    237

    Selective sorting

    Had a brainwave last night, an is this possiable.

    IS it poss to sort an entire sheet by one column then another, but to exclude certain rows that include certain data.

    This is what i mean, I have a sheet where data is entered on a daily basis. this data has tobe kept with in its dates. Each day starts with a start time and ends with an end time, and on occasion a break is included within the data. then between dates there is a blank line.

    IS it poss to sort the data and exclude the blank lines and the start, end and breaks within the data, but keep the data within date, so all data for the 12/4/09 stay within this block...????
    Last edited by drgogo; 04-30-2009 at 03:11 AM.

  2. #2
    Forum Expert oldchippy's Avatar
    Join Date
    02-14-2005
    Location
    Worcester, UK
    MS-Off Ver
    Excel 2007 (Home)
    Posts
    7,097

    Re: Selective sorting

    To best describe or illustrate your problem you would be better off attaching a dummy workbook, the workbook should contain the same structure and some dummy data of the same type as the type you have in your real workbook - so, if a cell contains numbers & letters in this format abc-123 then that should be reflected in the dummy workbook.

    If needed supply a before and after sheet in the workbook so the person helping you can see what you are trying to achieve.

    Doing this will ensure you get the result you need!
    oldchippy
    -------------


    Blessed are those who can give without remembering and take without forgetting

    If you are happy with the help you have received, please click the <--- STAR icon on the left - Thanks.

    Click here >>> Top Excel links for beginners to Experts

    Forum Rules >>>Please don't forget to read these

  3. #3
    Forum Contributor
    Join Date
    01-29-2008
    Location
    Scotland
    MS-Off Ver
    2003
    Posts
    237

    Re: Selective sorting

    Please find attached a example spreadsheet of what im trying todo

    There are two tabs, one showing the before sort and the other showing what it should look like after the sort.

    The sort command will be a macro within a custom menu on the tool bar, which is not shown on the example.

    What i need is a sort function that will sort the whole page first by column D then by column E.

    But what i need is for the sort to exclude the blank rows, and rows which are Breaks, Starts and ends, there is also a section for route checks which also need to be excluded.

    So the only data that needs to be sorted is the data that has a ref number ( column A) but it need to look like the after sort page when done. As you will see the data stays within the dates but sorted.

    Hope this explains every thing

    if not i can provide more information

    G

    Oh columns A, I and J are locked and the worksheet is protected, but not this example.
    Attached Files Attached Files

  4. #4
    Forum Expert oldchippy's Avatar
    Join Date
    02-14-2005
    Location
    Worcester, UK
    MS-Off Ver
    Excel 2007 (Home)
    Posts
    7,097

    Re: Selective sorting

    Oh columns A, I and J are locked and the worksheet is protected, but not this example.
    Sheet 1 is protected, can you post a fully unprotected workbook?
    Last edited by oldchippy; 04-29-2009 at 06:42 AM. Reason: Amend requirement

  5. #5
    Forum Contributor
    Join Date
    01-29-2008
    Location
    Scotland
    MS-Off Ver
    2003
    Posts
    237

    Re: Selective sorting

    Oh sorry for that

    Unlocked version attached
    Attached Files Attached Files

  6. #6
    Forum Expert oldchippy's Avatar
    Join Date
    02-14-2005
    Location
    Worcester, UK
    MS-Off Ver
    Excel 2007 (Home)
    Posts
    7,097

    Re: Selective sorting

    Hi,

    I can't see a way of sorting this, but may be it can be done with VBA but I'm afraid that not my expertise - sorry

  7. #7
    Forum Contributor
    Join Date
    01-29-2008
    Location
    Scotland
    MS-Off Ver
    2003
    Posts
    237

    Re: Selective sorting

    Thanks for your help and time,Ill repost in the programming forum..

    Gareth

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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