+ Reply to Thread
Results 1 to 9 of 9

Reassemble cells to new layout

  1. #1
    Registered User
    Join Date
    02-12-2016
    Location
    Zurich, Switzerland
    MS-Off Ver
    MS Office 2013
    Posts
    94

    Reassemble cells to new layout

    Hi everyone,

    I have an existing excel workbook with raw data, which I need to convert into another layout.

    In the attached template you see the raw data. It shows all periods in which a staff member is off work.

    This raw data I want to format the following way:

    Instead of having every leave on a separate row I would like to have every day of 2016 as the top row (basically the x-axis) and the names (in total about 30 names) on the y-axis. And then have an x or a color formatting in for those cells where a staff member is off work.
    One difficulty is also, to convert a period like in row 24 to that new format.

    How can I best convert this raw data to the desired format?

    In advance, thousand thanks for your help!

    EDIT:

    I have also added a file which shows how the final layout should look like.
    Attached Files Attached Files
    Last edited by etaver87; 05-05-2016 at 09:09 AM.

  2. #2
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: Reassemble cells to new layout

    Hi,

    I presume the intention is to be able to easily see the analysis of absence. In which case Your suggested layout is not the most obvious way of doing it and makes any analysis much harder.

    The simplest and most efficient way is with a Pivot Table which I've attached. Also note the way you recorded dates is non standard so I've converted them all to a proper date number. I've also added a couple of Slicers which allows you to easily filter the PT by name or the number of days absence. Just select as many of the items in the slicers that you want to see
    Attached Files Attached Files
    Richard Buttrey

    RIP - d. 06/10/2022

    If any of the responses have helped then please consider rating them by clicking the small star icon below the post.

  3. #3
    Registered User
    Join Date
    02-12-2016
    Location
    Zurich, Switzerland
    MS-Off Ver
    MS Office 2013
    Posts
    94

    Re: Reassemble cells to new layout

    Hi Richard,

    Many thanks!! This is a great first step!

    However, this is more of a specific kind of layout that I need. We already have an overview of who is off and what I need is supplementary.

    I would need to convert the info from the pivot tables to a layout like I have attached in the second excel file.

  4. #4
    Valued Forum Contributor
    Join Date
    04-26-2015
    Location
    Toronto, Canada
    MS-Off Ver
    2010
    Posts
    502

    Re: Reassemble cells to new layout

    If Richards Pivot Table is unsuitable,

    I would set it up something like this.

    This gives you more control and saves you time. It can be set up to count Hours, Shifts, Sick Days, Off Days.

    In fact almost anything you have a code count for.
    Attached Files Attached Files

  5. #5
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: Reassemble cells to new layout

    ....but it's a pivot table.
    Just drag and drop the field names to a different position.

    That's the beauty of them. In a second you can analyse stuff every which way. See changed version attached.
    Attached Files Attached Files

  6. #6
    Registered User
    Join Date
    02-12-2016
    Location
    Zurich, Switzerland
    MS-Off Ver
    MS Office 2013
    Posts
    94

    Re: Reassemble cells to new layout

    @BlindALley: This looks interesting. Would it be possible to convert the raw data into that template in any way? The thing is, we have a system and can draw a report like I uploaded in the raw data. So we would have to be able to feed your template with our raw data every two weeks or so.

    @Richard: That looks really good too. The only thing problematic are the periods of 24 or 5 days for example. Is it possible to easily convert these numbers so that we would have only 1's?

    Thank you so much for your help. Really appreciated!

  7. #7
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: Reassemble cells to new layout

    Quote Originally Posted by etaver87 View Post
    @BlindALley: This looks interesting. Would it be possible to convert the raw data into that template in any way? The thing is, we have a system and can draw a report like I uploaded in the raw data. So we would have to be able to feed your template with our raw data every two weeks or so.

    @Richard: That looks really good too. The only thing problematic are the periods of 24 or 5 days for example. Is it possible to easily convert these numbers so that we would have only 1's?

    Thank you so much for your help. Really appreciated!
    Hi,

    Not quite sure what you mean. Those numbers come from column F on Sheet1 and represent the number of days between the End & Start dates. There are lots of numbers of days from 1 to 16 & 19, 23 & 26. I can't actually see any 24 day period. The numbers in the PT grid are the numbers from Sheet1. If for some reason you want to show different numbers then you'll need to change column F, but I must admit I don't see why you would.

    I see this thread has been spammed and for some reason I can't delete them at the moment.

  8. #8
    Registered User
    Join Date
    02-12-2016
    Location
    Zurich, Switzerland
    MS-Off Ver
    MS Office 2013
    Posts
    94

    Re: Reassemble cells to new layout

    For example C11 has 26 days in it. I would like to convert this cells to 1's. So that from C11 to U11 there would be 1's instead of that 26 in C11. I specifically need this like that, unfortunately. I would love to keep it that way.

  9. #9
    Registered User
    Join Date
    02-12-2016
    Location
    Zurich, Switzerland
    MS-Off Ver
    MS Office 2013
    Posts
    94

    Re: Reassemble cells to new layout

    I have an other idea:

    Instead of converting these periods (like the 26 days for example) to 1 it may be easier to have a formula like:

    IF(C11=0;0;C11-1)

    Would this be applicable to the whole sheet?

+ 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] Correct layout of cells
    By dominick1 in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 02-27-2014, 12:17 PM
  2. [SOLVED] Reassemble Multiple Workbooks into a Single Workbook
    By HangMan in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 02-14-2014, 02:52 PM
  3. Take Sheet1 layout and Create Sheet2 layout with Macro
    By theglitch in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 09-18-2013, 03:50 PM
  4. Convert data from column layout to row layout
    By maacmaac in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 07-28-2010, 03:28 PM
  5. merging the layout only of 2 cells
    By naaitie in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 01-11-2006, 06:27 AM
  6. lock cells with specific layout
    By hansjuh in forum Excel General
    Replies: 3
    Last Post: 10-13-2005, 01:05 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