+ Reply to Thread
Results 1 to 11 of 11

How to organize the data by the variables?

  1. #1
    Registered User
    Join Date
    06-13-2018
    Location
    New York, USA
    MS-Off Ver
    2016
    Posts
    6

    How to organize the data by the variables?

    Hello everyone,

    I have a nagging Excel problem that no one is able to give me a solution. Hence, I am posting it here together with a sample excel file (my original file has a lot of data but if I can get it to work on this sample, I'll be able to apply it there as well). Here is the background of my problem.

    I am designing schedule for residents in a hospital. They go on different rotations every week and for now the data is organized by names on the first column and weeks on the first row. Each cell lists the rotation e.g. Cardiology, Vacation, Nephrology, Hematology etc. This can be seen in the top half of the sheet

    What I want to do is simply to reorganize the data so that the rotation names are in the first column followed by names of the residents in each week. The bottom half of the sheet is what I want to achieve. It will help me in that I can send a list of all the residents in each week to each department instead of writing it out manually (I have 57 residents, around 40 rotations and 54 weeks!). The individual departments (like cardiology, nephrology) don't want to sift through an entire chart of residents. What they want is a succinct list of resident names with their respective week.

    Is there any way to do this? I tried pivot table or array formulas but to no avail. Can anyone come up with a simple formula or report or query of the data? I am willing to even try Microsoft Access if it can help in generating simple reports although I don't know how to use it.

    Thank you so much!
    Attached Files Attached Files
    Last edited by dr.qamarahmad; 06-23-2018 at 05:31 PM.

  2. #2
    Banned User!
    Join Date
    02-05-2015
    Location
    San Escobar
    MS-Off Ver
    any on PC except 365
    Posts
    12,168

    Cool Re: How to organize the data by the variables?

    I know this is not exactly what you want but maybe it will help

    done with PowerQuery and PivotTable

    Power Query for
    Attached Files Attached Files
    Last edited by sandy666; 06-23-2018 at 06:34 PM.

  3. #3
    Registered User
    Join Date
    06-13-2018
    Location
    New York, USA
    MS-Off Ver
    2016
    Posts
    6

    Re: How to organize the data by the variables?

    Thank you sandy666. But I would appreciate it if its organized as the way I portrayed on the excel file i.e. the first column should have names of the rotations (Cardiology, Nephrology, Vacation etc)followed by columns for the weeks, and then the cell should contain names of the respective residents.

    Any other formula that I can use? And can we generate reports from the excel file using query wizard or other tools, or Access?

    Thanks!

  4. #4
    Banned User!
    Join Date
    02-05-2015
    Location
    San Escobar
    MS-Off Ver
    any on PC except 365
    Posts
    12,168

    Cool Re: How to organize the data by the variables?

    check if this is that what you want:
    [Green table, done with PowerQuery (required)]
    Last edited by sandy666; 06-24-2018 at 04:16 AM.

  5. #5
    Registered User
    Join Date
    06-13-2018
    Location
    New York, USA
    MS-Off Ver
    2016
    Posts
    6

    Re: How to organize the data by the variables?

    That is exactly what I want. How to use powerquery and make such tables?

  6. #6
    Banned User!
    Join Date
    02-05-2015
    Location
    San Escobar
    MS-Off Ver
    any on PC except 365
    Posts
    12,168

    Re: How to organize the data by the variables?

    1st. you need to install PowerQuery for Excel 2010 Pro Plus
    2nd. If you do that you can see steps in PQ Editor and Advanced Editor
    3rd. If you don't have PQ we can talk like with a blind man about colours

  7. #7
    Registered User
    Join Date
    06-13-2018
    Location
    New York, USA
    MS-Off Ver
    2016
    Posts
    6

    Re: How to organize the data by the variables?

    Okay, Excel 2016 comes preinstalled with powerquery. But I am having a hard time using it. Any guide or steps? I tried following the steps outlined in the file that you sent but most of it flew over my head :/

    Thanks for all the help!

  8. #8
    Banned User!
    Join Date
    02-05-2015
    Location
    San Escobar
    MS-Off Ver
    any on PC except 365
    Posts
    12,168

    Re: How to organize the data by the variables?

    How could I know you have 2016 if...

    drq.jpg

    steps? how about movie how it was done?

  9. #9
    Registered User
    Join Date
    06-13-2018
    Location
    New York, USA
    MS-Off Ver
    2016
    Posts
    6

    Re: How to organize the data by the variables?

    Lolz. My excel info isn't updated here for some reason.

    A movie would be awesome! Thanks a bunch

  10. #10
    Banned User!
    Join Date
    02-05-2015
    Location
    San Escobar
    MS-Off Ver
    any on PC except 365
    Posts
    12,168

    Re: How to organize the data by the variables?

    Sure , check PM

    in a meantime....
    General Note: Read me

    Try to avoid joining to my Black List by doing this below

    If that takes care of your original question, & to say Thanks and for better Motivation, please
    1. click on Add Reputtion (bottom left corner of the post of the person(s) who helped you)
      then
    2. select Thread Tools from the menu (top right corner of your thread) and mark this thread as SOLVED.
    If you did it already - ignore it.
    Thank you.

  11. #11
    Registered User
    Join Date
    06-13-2018
    Location
    New York, USA
    MS-Off Ver
    2016
    Posts
    6

    Re: How to organize the data by the variables?

    Thanks! Worked like a charm.

+ 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. Organize and Sum Data
    By showboat in forum Excel Programming / VBA / Macros
    Replies: 55
    Last Post: 04-23-2018, 04:15 PM
  2. organize data
    By martinez_pedro in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 03-16-2014, 04:57 PM
  3. how to organize the data ?
    By eran3185 in forum Excel Programming / VBA / Macros
    Replies: 12
    Last Post: 12-21-2010, 04:49 AM
  4. Organize data
    By rosef in forum Excel General
    Replies: 1
    Last Post: 11-24-2009, 08:22 PM
  5. How to organize this data?
    By adroadster in forum Excel General
    Replies: 3
    Last Post: 01-11-2009, 05:54 PM
  6. How do I organize my data in this way
    By CaptainGarry in forum Excel General
    Replies: 13
    Last Post: 01-07-2009, 04:37 PM
  7. trying to organize my baseball cards by 3 variables
    By Kepf in forum Excel Charting & Pivots
    Replies: 4
    Last Post: 05-18-2006, 08:40 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