+ Reply to Thread
Results 1 to 16 of 16

Data rearrangement

  1. #1
    Registered User
    Join Date
    07-26-2013
    Location
    Norman,USA
    MS-Off Ver
    Excel 2010
    Posts
    45

    Data rearrangement

    Hi all. I have this daily precipitation data and I want to arranged it in a new format as appear in Sheet two. I will be grateful if any one can help me out. Thanks
    Attached Files Attached Files

  2. #2
    Valued Forum Contributor ranman256's Avatar
    Join Date
    07-29-2012
    Location
    Kentucky
    MS-Off Ver
    Excel 2003
    Posts
    1,176

    Re: Data rearrangement

    the macro is : ParseTbl()
    see the RESULTS tab.

    parse Data%20for%20arrangement_June_2014(1).xlsm

  3. #3
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: Data rearrangement

    With 2 macro's

    After that I used a recorded macro to get the date sorted.

    See the attached file.

    Please Login or Register  to view this content.
    Notice my main language is not English.

    I appreciate it, if you reply on my solution.

    If you are satisfied with the solution, please mark the question solved.

    You can add reputation by clicking on the star * add reputation.

  4. #4
    Registered User
    Join Date
    07-26-2013
    Location
    Norman,USA
    MS-Off Ver
    Excel 2010
    Posts
    45

    Re: Data rearrangement

    Hi oeldere. This is what iam looking for but I don`t understand the steps you used to rearrange the data. Please can you explain it in simplest form for me? I don`t have limited knowledge in programming and coding. Thank you

  5. #5
    Registered User
    Join Date
    07-26-2013
    Location
    Norman,USA
    MS-Off Ver
    Excel 2010
    Posts
    45

    Re: Data rearrangement

    Hi. The date were not in proper form. Each month should have up to 31 or 30 or 28 or 29 days as the case may be but your months each end with 12 days. Thank you

  6. #6
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: Data rearrangement

    Please Login or Register  to view this content.
    You do or you don't?

    1) First I fill the data in column A so we got in all cells the year.

    I used this macro for it => Sub filldata_ascending_incolumnA_()

    2) After that I used a macro to rearange the data.

    I used this macro for it => Sub CONVERTROWSTOCOL_Oeldere_revisted()

    The sheet with data has the name sheet1 (in my macro)

    3) After that i made an table of the data on the output sheet.

    4) E2=(A2&"-"&B2&"-"&C2)*1

    The format of cell E2 = dd-mm-yyyy

    5) After that I used sorting on column E

    Hope I explained well.

  7. #7
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: Data rearrangement

    @akumagaavese
    Please Login or Register  to view this content.
    Please also refer to whom you responding.

  8. #8
    Registered User
    Join Date
    07-26-2013
    Location
    Norman,USA
    MS-Off Ver
    Excel 2010
    Posts
    45

    Re: Data rearrangement

    Hi Oeldere. Sorry for the mistake. I mean I have limited knowledge in programming and coding. I will follow the steps and see if I can rearrange my other data sets. Do I need to start recording macro?

  9. #9
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: Data rearrangement

    If you have (other) questions, just ask.

  10. #10
    Registered User
    Join Date
    07-26-2013
    Location
    Norman,USA
    MS-Off Ver
    Excel 2010
    Posts
    45

    Re: Data rearrangement

    Hey. I run the macro but the final date arrangement is becoming difficult for me. The days and month appears in 12. That is days appears as 1, 1,1,........1 corresponding to the months 1, 2, 3-12. How do you make the table? Iam sorry for bothering you.

  11. #11
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: Data rearrangement

    I changed the months in figures (01 till 12)

    See my post.

    I have done that to easier get an date of the values.

  12. #12
    Forum Expert azumi's Avatar
    Join Date
    12-10-2012
    Location
    YK, Indonesia
    MS-Off Ver
    Excel 2019
    Posts
    2,366

    Re: Data rearrangement

    If you prefer with formula, perhaps this should done that, please have take a look the file attach...

    Regards
    Azumi
    Attached Files Attached Files

  13. #13
    Registered User
    Join Date
    07-26-2013
    Location
    Norman,USA
    MS-Off Ver
    Excel 2010
    Posts
    45

    Re: Data rearrangement

    Azumi. Thank you very much. This work for me perfectly. Azumi means fasting in my place.

  14. #14
    Forum Expert azumi's Avatar
    Join Date
    12-10-2012
    Location
    YK, Indonesia
    MS-Off Ver
    Excel 2019
    Posts
    2,366

    Re: Data rearrangement

    Yes you're welcome, glad it works

  15. #15
    Registered User
    Join Date
    08-21-2017
    Location
    Jordan
    MS-Off Ver
    office 2016
    Posts
    1

    Re: Data rearrangement

    please, if we have the same case but inverted, what i can do????? by using macro????

  16. #16
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: Data rearrangement

    You get better help on your question if you add a small excel file, without confidential information.

    Please also add manualy the expected result in your file.

    To Attach a File:

    1. Scroll down to the window below your post Additional Options
    2. In the frame Attach Files you will see the button Manage Attachments
    3. Click the button.
    4. A new window will open titled Manage Attachments - Excel Forum.
    5. Click the Browse... button to locate your file for uploading.
    6. This will open a new window File Upload.
    7. Once you have located the file to upload click the Open button. This window will close.
    8. You are now back in the Manage Attachments - Excel Forum window.
    9. Click the Upload button and wait until the file has uploaded.
    10. Close the window and then click Submit.

+ 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. Column rearrangement
    By Indi_Ra in forum Excel General
    Replies: 3
    Last Post: 03-07-2013, 05:35 AM
  2. rearrangement of matrix
    By umble in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 12-03-2012, 12:48 PM
  3. Data Rearrangement
    By nasoor123 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 02-19-2010, 03:02 PM
  4. Simple data rearrangement - hard to code
    By leonnord in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 08-02-2007, 01:15 PM
  5. data rearrangement...???
    By nkk in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 04-12-2006, 05:30 PM

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