+ Reply to Thread
Results 1 to 3 of 3

Data sorting

  1. #1
    Registered User
    Join Date
    02-18-2017
    Location
    Iran
    MS-Off Ver
    2019
    Posts
    19

    Data sorting

    Suppose that we have a column including a million rows of texts and numbers sorting irregularly like this:

    h
    d
    s
    23
    c
    45
    33
    s
    n
    98

    As it shown every number value has some texts value in upper rows of it till the next number value. Is there any VBA to sort it in two columns like this?

    23 h
    23 d
    23 s
    45 c
    98 s
    98 n


    Any help would be appreciated.

  2. #2
    Forum Expert
    Join Date
    11-24-2013
    Location
    Paris, France
    MS-Off Ver
    Excel 2003 / 2010
    Posts
    6,602

    Arrow Re: Data sorting


    In fact this is not a sort but some 'data rebuild' so without any attachment with before state and expected result like a rules explanation
    I just can advise you can try to play with some array variable or SpecialCells method.
    Last edited by Marc L; 02-12-2022 at 04:26 PM.

  3. #3
    Administrator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs
    MS-Off Ver
    MS Office 365 Win 11 Home 64 Bit
    Posts
    21,746

    Re: Data sorting

    Fast answers need visual help. Please read the yellow banner at the top of this page on how to attach a file.
    Alan


    Change an Ugly Report with Power Query
    Database Normalization
    Complete Guide to Power Query
    Man's Mind Stretched to New Dimensions Never Returns to Its Original Form

+ 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. Replies: 1
    Last Post: 12-16-2015, 01:04 PM
  2. Replies: 0
    Last Post: 02-24-2014, 11:27 AM
  3. Sorting all data based on data in single column (DATES)
    By subbby in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 10-16-2013, 08:19 AM
  4. [SOLVED] Data Analysis: Comparing 3 columns, sorting, removing unique values, display data
    By kmills2626 in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 10-14-2013, 07:27 AM
  5. Sorting 2 data ranges by comparing one column in each and sorting to match
    By MDKsmiffy in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 06-17-2013, 03:30 PM
  6. Replies: 3
    Last Post: 12-20-2012, 06:16 AM
  7. Sorting, finding dulicates, moving one data element up, deleting original data
    By rickwtx in forum Excel Programming / VBA / Macros
    Replies: 22
    Last Post: 01-13-2011, 07:32 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