+ Reply to Thread
Results 1 to 2 of 2

Macro to sort merged data

  1. #1
    Registered User
    Join Date
    10-15-2019
    Location
    UK
    MS-Off Ver
    2016
    Posts
    1

    Macro to sort merged data

    Hi,

    I have a data set which has two cycles merged toether first 20 rows are from one set, while the next 15 rows are from different data set. This is repeated for couple of thousand rows. The column 1 shows jumps at regular order as per above description. Is there a logical way to sort them into different data sets. Test.csv
    Last edited by dos1987; 10-15-2019 at 05:25 PM.

  2. #2
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,426

    Re: Macro to sort merged data

    Start a loop counter at row 2 and increment by 35 (rows). Then copy base address, resized by 20 rows, to a new column or new sheet. Copy base address plus 20, resized by 15 rows to a different new column or sheet.

    Should be relatively straightforward.
    Trevor Shuttleworth - Retired Excel/VBA Consultant

    I dream of a better world where chickens can cross the road without having their motives questioned

    'Being unapologetic means never having to say you're sorry' John Cooper Clarke


+ 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. [SOLVED] Sort by named range or blocks of data with merged cells?
    By donkey33 in forum Excel Formulas & Functions
    Replies: 31
    Last Post: 08-11-2016, 08:47 AM
  2. How to sort data that is split in merged cells
    By Ankit_Kumar in forum Excel General
    Replies: 1
    Last Post: 06-11-2015, 02:27 AM
  3. Macro to sort merged cells with numbers in wrong format
    By adw223 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 07-30-2013, 09:37 AM
  4. Data sort, empty formula cells to bottom merged cells!
    By ikkuh in forum Excel Programming / VBA / Macros
    Replies: 16
    Last Post: 04-09-2013, 03:10 AM
  5. [SOLVED] Can you sort & expand column data when cells are merged?
    By lsargent in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 01-27-2013, 06:37 PM
  6. Data Sort & Merged cells
    By HighQualityH2O in forum Excel General
    Replies: 2
    Last Post: 07-06-2009, 07:05 PM
  7. How I sort data in Excel, it keeps saying "merged cells must be ID
    By angela g in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 12-19-2005, 12:15 AM

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