+ Reply to Thread
Results 1 to 7 of 7

Arranging/organizing data in a sheet

  1. #1
    Registered User
    Join Date
    04-23-2014
    Location
    Paris
    MS-Off Ver
    Excel 2010
    Posts
    3

    Arranging/organizing data in a sheet

    HI everybody,

    I've been burning my head trying to find a solution for my problem, and not achieving to do so, I came here for your precious help!

    I have one sheet in one workbook that contains the data I want to organize. In this data, I have several datasets placed horizontally, in the side of each other.

    Each "dataset" correspond to a month containing daily values of several headers. So, it is organized as:

    Date Header_1 Header_2 ...
    01/01/1990 value value
    ... ... ...
    31/01/1990 value value

    The number of headers in each "dataset" vary, but they can or not repeat themselves in the others "datasets".

    Please see the uploaded file for better understanding.

    What I want to do is to organize my data chronologically into a single one database containing all information. Two things have to be done here:
    1 - Some function/macro to transfer the horizontally arranged "datasets" into a one new "database" organized chronologically
    2 - Some function/macro to match the headers. Ex: Dataset_2 is to be placed below dataset_1. If header_1 of "dataset_2" already exists in dataset_1, I want the values of header_1 of dataset_2 to "merge" with already existant header_1 of dataset_1.

    I hope I was clear enough.

    Thank you very much!
    Attached Files Attached Files

  2. #2
    Valued Forum Contributor
    Join Date
    07-07-2014
    Location
    Washington DC
    MS-Off Ver
    2007
    Posts
    1,047

    Re: Arranging/organizing data in a sheet

    Are all possible column headers known? Or could you receive new ones at some future date?

  3. #3
    Forum Expert
    Join Date
    11-28-2012
    Location
    Guatemala
    MS-Off Ver
    Excel 2010
    Posts
    2,394

    Re: Arranging/organizing data in a sheet

    Please Login or Register  to view this content.

  4. #4
    Registered User
    Join Date
    04-23-2014
    Location
    Paris
    MS-Off Ver
    Excel 2010
    Posts
    3

    Re: Arranging/organizing data in a sheet

    Yes, I know all possible headers (155 different headers).

    In my example I put only 3 "datasets", but I have 300+ datasets tp organize in the same way

    Thank you!

  5. #5
    Registered User
    Join Date
    04-23-2014
    Location
    Paris
    MS-Off Ver
    Excel 2010
    Posts
    3

    Re: Arranging/organizing data in a sheet

    How do I declare all variables in this code?

    Thanks

  6. #6
    Forum Expert
    Join Date
    11-28-2012
    Location
    Guatemala
    MS-Off Ver
    Excel 2010
    Posts
    2,394

    Re: Arranging/organizing data in a sheet

    The code will look for all possible headers first come first posted
    The number of columns analyzed is determined by the headings
    The "date" column is automatically inserted in a new row
    the sort routine adjust its range according to the rows and columns in the sheet

    in post #5 do you mean how is the output sheet cleared?

  7. #7
    Registered User
    Join Date
    04-23-2014
    Location
    Paris
    MS-Off Ver
    Excel 2010
    Posts
    3

    Re: Arranging/organizing data in a sheet

    Quote Originally Posted by rcm View Post
    The code will look for all possible headers first come first posted
    The number of columns analyzed is determined by the headings
    The "date" column is automatically inserted in a new row
    the sort routine adjust its range according to the rows and columns in the sheet

    in post #5 do you mean how is the output sheet cleared?

    I think I forgot to paste your macro outside the "option explicit" default in the VBA editor. Once I deleted that "option explicit" your macro worked like a charm!

    Sorry for my ignorance.

    I can't thank you enough!!!

  8. #8
    Forum Expert
    Join Date
    11-28-2012
    Location
    Guatemala
    MS-Off Ver
    Excel 2010
    Posts
    2,394

    Re: Arranging/organizing data in a sheet

    you are welcome just mark it as solved...

+ 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: 9
    Last Post: 06-29-2014, 12:29 PM
  2. Taking non uniform data from one sheet and copying and organizing it into another sheet
    By worldrenowned in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 03-08-2012, 03:16 AM
  3. Sorting / arranging data onto another sheet
    By twofootgiant in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 04-05-2011, 07:38 AM
  4. Organizing data by time on a different sheet
    By keenercoug in forum Excel General
    Replies: 2
    Last Post: 08-10-2010, 11:25 PM
  5. Replies: 5
    Last Post: 03-30-2009, 08:08 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