+ Reply to Thread
Results 1 to 18 of 18

Sorting months and data from large set of data

  1. #1
    Registered User
    Join Date
    07-30-2013
    Location
    Grimstad, Norway (Southern part)
    MS-Off Ver
    Excel 2010
    Posts
    48

    Sorting months and data from large set of data

    Hello,

    I've got irradiance data from 2007 to 2010 in sequential order as per the sheet 1(Attachment). Firstly I want to sort the date in a new column(F) in the order of 2007 January, then 2008 January, 2009 January, and finally 2010 January. Then another new column 2007 February, 2008 February, etc. and so on for remaining months. Secondly, I want to sort the irradiance data in the similar manner with respect to relevant dates. Kindly help me with the relevant formulas for one month. Thank You very much.
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    02-11-2014
    Location
    New York
    MS-Off Ver
    Excel 365 (Windows)
    Posts
    5,956

    Re: Sorting months and data from large set of data

    Use a column of formulas - if your dates are in column A, starting in row 2, in cell F2 use the formula

    =MONTH(A2) + YEAR(A2)/10000

    IF your dates are actually in column F, use this in another column, in row 2:

    =MONTH(F2) + YEAR(F2)/10000

    Then copy down to match your data, and sort your entire table based on that column.
    Bernie Deitrick
    Excel MVP 2000-2010

  3. #3
    Registered User
    Join Date
    07-30-2013
    Location
    Grimstad, Norway (Southern part)
    MS-Off Ver
    Excel 2010
    Posts
    48

    Re: Sorting months and data from large set of data

    Hi Bernie,

    Thank you for the reply. However,much to my regret, it doesn't work.
    You can see it in the attachment. Thank you very much again.
    Attached Files Attached Files

  4. #4
    Registered User
    Join Date
    07-30-2013
    Location
    Grimstad, Norway (Southern part)
    MS-Off Ver
    Excel 2010
    Posts
    48

    Sorting same type of months together from different years of data

    I've got dates from 2007 to 2010 in sequential order(Attachment). I want to sort the date in a new column(F) in the order of 2007 January, then 2008 January, 2009 January, and finally 2010 January.

    Then another new column 2007 February, 2008 February, etc. and so on for remaining months. Secondly I want to sort the data in similar manner with respect to relevant dates. Kindly help me with the relevant formulas for one month.

    I am trying to sort by month... as all January months together and all Feb. months together for years 2007 to 2010.Thank You very much.
    Attached Files Attached Files

  5. #5
    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,629

    Re: Sorting same type of months together from different years of data

    But do you plan to add (or average) all values from Jan 01 2007, Jan 1 2008, Jan 1 2009 and so on, or want to have this just sorted
    JAn 1 2007
    ...
    Jan 31 2007
    Jan 1 2008
    ...
    Jan 31 2008
    etc

    And how about hours within days ? summed? averaged? listed all?

    For me it looks like pivot table task, may be with some pre-processing (by formula) of data.
    Best Regards,

    Kaper

  6. #6
    Registered User
    Join Date
    07-30-2013
    Location
    Grimstad, Norway (Southern part)
    MS-Off Ver
    Excel 2010
    Posts
    48

    Re: Sorting same type of months together from different years of data

    Hi Kaper,
    Thank you very much. Yes, first I want to sort the dates similar to
    JAn 1 2007
    ...
    Jan 31 2007
    Jan 1 2008
    ...
    Jan 31 2008
    etc.

    Hope I can generate the hours also in next column. Then I want to match the Irradiance data in column D in similar way. All in all, sorting data for relevant date month wise.

  7. #7
    Registered User
    Join Date
    07-30-2013
    Location
    Grimstad, Norway (Southern part)
    MS-Off Ver
    Excel 2010
    Posts
    48

    Re: Sorting same type of months together from different years of data

    It is not required to get average or addition. Just sorting is required.

  8. #8
    Forum Expert Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens(The homeland of the Democracy!). Greece
    MS-Off Ver
    Excel 1997!&2003 & 2007&2010
    Posts
    13,744

    Re: Sorting same type of months together from different years of data

    In F3 and drag to G3 and then drag both down, this ARRAY formula will gives you the results but probably will kills your computer..

    Formula: copy to clipboard
    Please Login or Register  to view this content.


    Confirm using CTR+SHIFT+ENTER.
    Regards

    Fotis.

    -This is my Greek whisper to Europe.

    --Remember, saying thanks only takes a second or two. Click the little star * below, to give some Rep if you think an answer deserves it.

    Advanced Excel Techniques: http://excelxor.com/

    --KISS(Keep it simple Stupid)

    --Bring them back.

    ---See about Acropolis of Athens.

    --Visit Greece.

  9. #9
    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,629

    Re: Sorting same type of months together from different years of data

    How about reasonably quick macro - wont kill your computer ;-)
    Fill the headers in rows 1 and 2 for next months before using:
    Please Login or Register  to view this content.

  10. #10
    Registered User
    Join Date
    07-30-2013
    Location
    Grimstad, Norway (Southern part)
    MS-Off Ver
    Excel 2010
    Posts
    48

    Re: Sorting same type of months together from different years of data

    Hi
    Thank you very much.
    But it doesn't work. I get #NUM! error starting from B4 row. I works only for B3 row.
    I can't attach the sheet. It exceeds 1 MB.

  11. #11
    Forum Expert Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens(The homeland of the Democracy!). Greece
    MS-Off Ver
    Excel 1997!&2003 & 2007&2010
    Posts
    13,744

    Re: Sorting same type of months together from different years of data

    Did you confirmed as an ARRAY formula?

    -- Array(CSE) { }, formulae are confirmed with Control+Shift+Enter.
    Not just Enter.

    @ Kaper


    ...- wont kill your computer ;-)

  12. #12
    Registered User
    Join Date
    07-30-2013
    Location
    Grimstad, Norway (Southern part)
    MS-Off Ver
    Excel 2010
    Posts
    48

    Re: Sorting same type of months together from different years of data

    Hi,
    Tusen takk. Oh.. not Norsk

    Thank you very much.

    It seems, it is working. My computer is almost killed. I hv to go to laboratory to run the rest.
    You, people are great. It is a great effort.

  13. #13
    Forum Expert
    Join Date
    02-11-2014
    Location
    New York
    MS-Off Ver
    Excel 365 (Windows)
    Posts
    5,956

    Re: Sorting months and data from large set of data

    Sorting months_reply1.xlsx

    Actually, it did - just format column E as a number with 4 decimals instead of as dates. You will see

    1.2007

    in the first cell, and the sort will work perfectly. You can convert the column of formulas to values if you want to reduce the overhead, or delete it after the sort is finished.

  14. #14
    Forum Expert Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens(The homeland of the Democracy!). Greece
    MS-Off Ver
    Excel 1997!&2003 & 2007&2010
    Posts
    13,744

    Re: Sorting months and data from large set of data

    Can you pls explain the difference between this thread and this one?

    http://www.excelforum.com/excel-gene...ml#post3625435

  15. #15
    Registered User
    Join Date
    07-30-2013
    Location
    Grimstad, Norway (Southern part)
    MS-Off Ver
    Excel 2010
    Posts
    48

    Re: Sorting months and data from large set of data

    I apologize for my being fault. Both threads are almost same, Replies of both of them were useful to solve out different issues I had.

  16. #16
    Forum Expert Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens(The homeland of the Democracy!). Greece
    MS-Off Ver
    Excel 1997!&2003 & 2007&2010
    Posts
    13,744

    Re: Sorting months and data from large set of data

    I suggest to take some minutes to read forum rules. In this case in 2 different threads different people offered their time trying to helps you. Is not correct, to spend our time posting duplicate threads.

    Only for this time i just merg the 2 threads. I hope to don't do it again because in that case you'll force me to give you an infraction.

  17. #17
    Registered User
    Join Date
    07-30-2013
    Location
    Grimstad, Norway (Southern part)
    MS-Off Ver
    Excel 2010
    Posts
    48

    Re: Sorting months and data from large set of data

    Yes, I do understand. I will never repeat the same mistake.
    I humbly beg most kind apologies from all the forum members.

  18. #18
    Forum Expert Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens(The homeland of the Democracy!). Greece
    MS-Off Ver
    Excel 1997!&2003 & 2007&2010
    Posts
    13,744

    Re: Sorting months and data from large set of data

    Your understanding is appreciated!


    As that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED,as per Forum Rule #9. Thank you.

+ 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] Sorting Large Data Set with Mixed Data
    By reneeileen in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 12-31-2013, 01:55 PM
  2. Sorting large groups of data..
    By GroupStats in forum Excel General
    Replies: 3
    Last Post: 06-17-2013, 12:48 AM
  3. Sorting large data set
    By David1234 in forum Excel General
    Replies: 0
    Last Post: 09-27-2011, 06:31 PM
  4. Multilookup alongwith SORTING for only MONTHS plus CLUBBING LIKE Data
    By e4excel in forum Excel Formulas & Functions
    Replies: 11
    Last Post: 02-09-2011, 08:59 AM
  5. Sorting problem with large data set
    By Infinity666 in forum Excel General
    Replies: 4
    Last Post: 10-20-2009, 11:56 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