+ Reply to Thread
Results 1 to 3 of 3

Sorting random Data

  1. #1
    Registered User
    Join Date
    09-30-2014
    Location
    Melbourne, Australia
    MS-Off Ver
    2013
    Posts
    1

    Question Sorting random Data

    Hi,

    I extract some data from a device in excel and the data is not sorted in a logical way. Below is an example of data i get:


    Date Time CODE Input val Output val Errors lockouts CODE2
    02/09/2014 11:09:02 BA 257.3 230.2 0 0 CC


    The information is always in this sequence and multiple pages of data is acquired. However the data itself is as following:


    09/09/2014 7:42:06 FA 225.8 230.4 15 0 0 -+ 09/09/2014 7:42:06 BA 227.3 227.1 14 0 0 -+ 09/09/2014 7:42:22 FA
    227.7 232.4 14 0 0 -+ 09/09/2014 7:42:22 BA 229.7 229.7 13 0 0 -+ 09/09/2014 7:42:46 FA 228.3 233.8 8 0 0 -+ 09/09/2014 7:42:46 BA ....CONTINUED


    I would like to sort the data above as following:
    09/09/2014 7:42:06 FA 225.8 230.4 15 0 0 -+
    09/09/2014 7:42:06 BA 227.3 227.1 14 0 0 -+
    09/09/2014 7:42:22 FA 227.7 232.4 14 0 0 -+
    09/09/2014 7:42:22 BA 229.7 229.7 13 0 0 -+
    09/09/2014 7:42:46 FA 228.3 233.8 8 0 0 -+ ... and so on


    What is the quickest way to do this. Manual sorting is not an option as i can have thousands of rows of data above.

    Thank you.

  2. #2
    Forum Expert
    Join Date
    09-11-2014
    Location
    Washington, DC
    MS-Off Ver
    2016
    Posts
    1,907

    Re: Sorting random Data

    Quote Originally Posted by mahmoodadeel View Post
    Hi,

    I extract some data from a device in excel and the data is not sorted in a logical way. Below is an example of data i get:


    Date Time CODE Input val Output val Errors lockouts CODE2
    02/09/2014 11:09:02 BA 257.3 230.2 0 0 CC


    The information is always in this sequence and multiple pages of data is acquired. However the data itself is as following:


    09/09/2014 7:42:06 FA 225.8 230.4 15 0 0 -+ 09/09/2014 7:42:06 BA 227.3 227.1 14 0 0 -+ 09/09/2014 7:42:22 FA
    227.7 232.4 14 0 0 -+ 09/09/2014 7:42:22 BA 229.7 229.7 13 0 0 -+ 09/09/2014 7:42:46 FA 228.3 233.8 8 0 0 -+ 09/09/2014 7:42:46 BA ....CONTINUED


    I would like to sort the data above as following:
    09/09/2014 7:42:06 FA 225.8 230.4 15 0 0 -+
    09/09/2014 7:42:06 BA 227.3 227.1 14 0 0 -+
    09/09/2014 7:42:22 FA 227.7 232.4 14 0 0 -+
    09/09/2014 7:42:22 BA 229.7 229.7 13 0 0 -+
    09/09/2014 7:42:46 FA 228.3 233.8 8 0 0 -+ ... and so on


    What is the quickest way to do this. Manual sorting is not an option as i can have thousands of rows of data above.

    Thank you.
    mahmood,

    The attached example workbook works for some of the example data you posted; at least how I interpreted it. However, for one of your examples - specifically the last one - the formula won't work because the value 8 is different than the other two digit values in the previous examples. If you only have single and two digit data sets, you can modify the formula as needed to work.

    Let me know if you have any questions.
    Attached Files Attached Files

  3. #3
    Valued Forum Contributor wenqq3's Avatar
    Join Date
    04-01-2013
    Location
    Malaysia
    MS-Off Ver
    Excel 2003
    Posts
    868

    Re: Sorting random Data

    Hi mahmoodadeel, Welcome to forum.

    Please upload workbook(before and after), so it will explain more about your question.
    Post a WORKBOOK. Nobody wants to type data from a picture or paste text from your post into a spreadsheet as a prelude to helping. To attach a file, push the button with the paperclip (or scroll down to the Manage Attachments button), browse to the required file, and then push the Upload button.
    -If the problem is solved, please mark your thread as Solved: Click Thread Tools above your first post, select "Mark your thread as Solved".

    -Always upload a workbook before start your question
    To attach a file, push the button with the paperclip (or scroll down to the Manage Attachments button), browse to the required file, and then push the Upload button.

    +++ If my answer(s) helped you, please add me reputation by click on * +++

+ 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] Data mining, sorting, "how do I identify random patterns"?
    By Larbec in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 11-03-2013, 08:09 AM
  2. Random Sorting Data
    By Sharp in forum Excel General
    Replies: 1
    Last Post: 11-26-2007, 09:19 AM
  3. extracting random data and sorting into cells
    By Chico in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 11-10-2007, 03:00 PM
  4. Non-random numbers generated by excel's data analysis random gener
    By Allie in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 09-17-2005, 02:05 AM
  5. Replies: 2
    Last Post: 09-13-2005, 12:05 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