+ Reply to Thread
Results 1 to 6 of 6

Sorting large data by date

  1. #1
    Forum Contributor
    Join Date
    05-05-2020
    Location
    Germany
    MS-Off Ver
    2013
    Posts
    100

    Sorting large data by date

    Hi

    I need to sort this excel based on the date. First, separate each year and put the data in a new sheet, and then separate the months and then days. You can see this in the example I uploaded. Can someone give me some ideas on how to do it?

    Thanks
    Attached Files Attached Files

  2. #2
    Valued Forum Contributor
    Join Date
    10-12-2021
    Location
    CT
    MS-Off Ver
    365
    Posts
    462

    Re: Sorting large data by date

    Highlight Row #2 by clicking the 2 on the row headings -> data tab -> filter

    Use the dropdowns however you see fit. Click the top left triangle in the header to select all and copy and paste to a new sheet.

  3. #3
    Forum Contributor
    Join Date
    05-05-2020
    Location
    Germany
    MS-Off Ver
    2013
    Posts
    100

    Re: Sorting large data by date

    Quote Originally Posted by carlmon View Post
    Highlight Row #2 by clicking the 2 on the row headings -> data tab -> filter

    Use the dropdowns however you see fit. Click the top left triangle in the header to select all and copy and paste to a new sheet.
    Thanks!
    but the data is already sorted in a sheet however it's too big (every hour of every day from 1980 to 2021) which makes it impossible to analyze or plot anything. That's why I need it to be in separate sheets.

  4. #4
    Valued Forum Contributor
    Join Date
    10-12-2021
    Location
    CT
    MS-Off Ver
    365
    Posts
    462

    Re: Sorting large data by date

    It sorts and filters. If you want to look at a specific year, only select that one year. By having 20+ sheets, you'll make your job even harder.

  5. #5
    Valued Forum Contributor
    Join Date
    10-12-2021
    Location
    CT
    MS-Off Ver
    365
    Posts
    462

    Re: Sorting large data by date

    I can do that if you still want a code to make a new sheet for every year. But excel's built-in-functionality is useful.

  6. #6
    Forum Guru Kaper's Avatar
    Join Date
    12-14-2013
    Location
    Warsaw, Poland
    MS-Off Ver
    most often: Office 365 in Windows environment
    Posts
    8,616

    Re: Sorting large data by date

    As you are using Excel 2013 you shall be able to use Power Query.
    And it's wise idea to use PQ, as you have large datasets to be analyzed.
    (If you have not installed it yet, see for instance https://www.excelcampus.com/install-power-query/ )

    And as a first step made a query which filters only data for given year (from a closed file).
    See attached file. You can prepare your graphs, extra statistics etc for a selected year. save it, change a year and ... all calculations are ready for the other year.
    The basic method would be to edit a query. A bit more advanced method is to make a query responding to change in the sheet. I did it writing a year in cell B1 and refering to this cell in a query.
    To make it running just once you install PQ and open the file I made also location of file with data passed to PQ from the sheet (cell D1).

    To force the query to refresh after change in B1 or D1 I used an event handler in code of Sheet1 sheet. But it's extra feature. If you don't want to use macros - just save the file as xlsx (no macros) and you can manualy refresh the output table with right-click on it and selecting Refresh.

    The only modification to source data is that I used a single row header (all headers in row 1, no merging of cells). See screenshot.
    So after opening the file and allowing the macros (or not) change the folder and filename of the sorce data in D1 (and if macros are disabled manualy refresh the query).
    Attached Images Attached Images
    Attached Files Attached Files
    Best Regards,

    Kaper

+ 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. Sorting a Large Pool of Data
    By jimmya1 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 05-23-2018, 03:29 PM
  2. Sorting large volumns of data
    By j_Southern in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 04-23-2014, 11:42 AM
  3. Sorting large groups of data..
    By GroupStats in forum Excel General
    Replies: 3
    Last Post: 06-17-2013, 12:48 AM
  4. Sorting/Rearranging Large data set
    By flashyoyo in forum Excel General
    Replies: 1
    Last Post: 10-04-2012, 07:04 PM
  5. Sorting/Rearranging Large data set
    By flashyoyo in forum Excel Charting & Pivots
    Replies: 0
    Last Post: 10-04-2012, 11:00 AM
  6. Sorting large data set
    By David1234 in forum Excel General
    Replies: 0
    Last Post: 09-27-2011, 06:31 PM
  7. Sorting problem with large data set
    By Infinity666 in forum Excel General
    Replies: 4
    Last Post: 10-20-2009, 11:56 AM

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