Results 1 to 6 of 6

Macro to sort variable rows of data by a column in multiple sections

Threaded View

  1. #1
    Registered User
    Join Date
    06-10-2013
    Location
    Hampton, VA
    MS-Off Ver
    Excel 2007
    Posts
    8

    Macro to sort variable rows of data by a column in multiple sections

    I need a macro that will sort the data between columns A - O by column J in ascending order. To make it a little more complicated, the first and last rows are not defined. It depends on how much data is exported from a Crystal Report. It could be 1 row of data to 30 rows of data. And it will be 3 separate sections of rows. So for the last 2 sections the first row varies by how many rows are in the first section. I attached the spreadsheet so you can see what I am talking about.
    When I export this report to Excel, rows 1 - 3 will always be the same. The data in the rows under P1 Level Calls sub heading will vary on how many calls there were that day, but the first row for that section will always be row 4. Then the "Total # P1 Calls" row will always be at the end of that section. Then there are 2 empty rows, then The NCR CE Meet section and a varying about of rows for that data underneath, then the 3rd section "NCR On Site" under that with varying rows of data. I need the macro to sort the sections of rows by column J in ascending order, then highlight the rows where it says "Missed" in column J. Is this possible?
    Attached Files Attached Files

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