+ Reply to Thread
Results 1 to 10 of 10

data organization

  1. #1
    Registered User
    Join Date
    10-12-2013
    Location
    pakistan
    MS-Off Ver
    Excel 2007
    Posts
    4

    data organization

    I have large set of data in vertical form. One pr ID have one or more records against each. i want to organize the data as, the PR ID should appear one time and there records may shown horizontally one by one. I have tried vlookup, pivot table but not find required result. Anybody have idea through macro, formula or other method to solve this. This will increase my knowledge. I will be thankful for the help. The example is show below and file is also at



    1938 10.04.2012 10.04.2012 Tech IIT
    1938 15.12.2010 15.12.2010 Safety Tech IIT
    1938 18.02.2013 18.02.2013 Safety Tech IIT


    Pers.No. Start date End Date Training Institute Start date End Date Training Institute Start date End Date Training Institute
    1938 10.04.2012 10.04.2012 Tech IIT 15.12.2010 15.12.2010 Safety Tech IIT 18.02.2013 18.02.2013 Safety Tech IIT
    Attached Files Attached Files

  2. #2
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,762

    Re: data organization

    I'll get back to you later on with a formula solution.

    (Just going out now).

    Pete

  3. #3
    Forum Guru AlKey's Avatar
    Join Date
    07-20-2009
    Location
    Lakeland, FL USA
    MS-Off Ver
    Microsoft Office 2010/ Office 365
    Posts
    8,903

    Re: data organization

    Hi Arslan_ahmad and welcome to the forum.

    After looking at the attached file, I must say that your data in Raw Shape is stored properly. It can be easy accessed and extracted and pretty much in line as to how data should be stored in any database. Your "Required" shape makes very little sense and down the road will give you more problems than you can imagine.
    If you like my answer please click on * Add Reputation
    Don't forget to mark threads as "Solved" if your problem has been resolved

    "Nothing is so firmly believed as what we least know."
    --Michel de Montaigne

  4. #4
    Forum Expert newdoverman's Avatar
    Join Date
    02-07-2013
    Location
    Port Dover, Ontario, Canada
    MS-Off Ver
    2010
    Posts
    10,330

    Re: data organization

    I agree with AlKey. The Raw Data is much easier to read and in addition, you can apply a filter to the records to extract records based on the column contents.

    To apply a filter, click in the Raw Data, then click the Data tab and click on the Filter button.
    <---------If you like someone's answer, click the star to the left of one of their posts to give them a reputation point for that answer.
    Ron W

  5. #5
    Registered User
    Join Date
    10-12-2013
    Location
    pakistan
    MS-Off Ver
    Excel 2007
    Posts
    4

    Re: data organization

    Waiting for your effort. Thanks for taking interest in my post.

  6. #6
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,762

    Re: data organization

    The attached file shows how you can do this with two formulae (shown in blue). First, put this one in F4:

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


    and copy down to beyond your data. Then put this one in K15:

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


    then copy across and down as required.

    Hope this helps.

    Pete
    Attached Files Attached Files

  7. #7
    Registered User
    Join Date
    10-12-2013
    Location
    pakistan
    MS-Off Ver
    Excel 2007
    Posts
    4

    Re: data organization

    Thank a lot for your kind immediate help to solve my problem. I like your formulas. I have understand the first formula but unfortunately i cant understand the second one fully. I shall be grateful If you may kindly explain the second formula enable me to understand it. One again thanks for your help

  8. #8
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,762

    Re: data organization

    Well, you can see the effect of the formulae even if you don't understand them. The first formula gives these results:

    1938_1
    1938_2
    1938_3
    2026_1
    2327_1
    etc

    This gives each of your records a unique reference. The second formula takes this reference and transposes the data onto the appropriate row and into the appropriate column. There are 4 fields in your original data, so we need to take a block of 4 cells and then move down to the next row of original data. To understand the formula better, put this part into K12:

    =INT((COLUMNS($K:K)-1)/4)+1

    and this into K13:

    =MOD(COLUMNS($K:K)-1,4)+1

    then copy both of these across - can you see how they relate to the rows and columns that we want to get out data from?

    Hope this helps.

    Pete

  9. #9
    Registered User
    Join Date
    10-12-2013
    Location
    pakistan
    MS-Off Ver
    Excel 2007
    Posts
    4

    Re: data organization

    Tulips.jpgThanks a lot for great help which is highly appreciable in term of learning and teaching. My discussion experience with you is very nice. God may bless you for your kindness.

  10. #10
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,762

    Re: data organization

    Thanks for the flowers, and glad to hear that worked for you.

    If that takes care of your original question, please select Thread Tools from the menu above your first post and mark this thread as SOLVED.

    Also, since you are relatively new to the forum, I would like to inform you that you can directly thank those who have helped you by clicking on the small "star" icon located in the lower left corner of a post that you have found to be helpful (not just in this thread - for any post that has helped you). This also adds to the reputation of the poster (the small green bars in the poster's profile).

    Pete

+ 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. Data Organization
    By copastm in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 11-18-2012, 05:51 AM
  2. Data Organization
    By copastm in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 11-13-2012, 03:38 PM
  3. Data Organization
    By workindan in forum Excel General
    Replies: 1
    Last Post: 06-07-2010, 01:31 PM
  4. Re-organization of data
    By po2206 in forum Excel General
    Replies: 7
    Last Post: 03-15-2006, 07:10 AM
  5. Excel Data Re-Organization
    By Freedle Beetle in forum Excel General
    Replies: 1
    Last Post: 12-06-2005, 03:20 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