+ Reply to Thread
Results 1 to 6 of 6

Pivot Table for Analyzing Survey Results by Manager

  1. #1
    Registered User
    Join Date
    08-16-2016
    Location
    Illinois, USA
    MS-Off Ver
    Office 365
    Posts
    49

    Pivot Table for Analyzing Survey Results by Manager

    I have been helping a co-worker convert survey results into a workable spreadsheet. Now that all the raw data is compiled I would like to have a pivot table to do a few things for me, but alas, pivot tables are my Achilles heel. I've attached an example of the raw data I am working with. I'm needing a few things:

    A slicer to select the manager for which results will be displayed
    Answers converted to a numerical value from 1 - 4 (Strongly Disagree, Disagree, Agree, Strongly Agree)
    The final output I am needing to be broken into categories based on the questions, and a numerical average from the answers associated with the questions. Note in the example sheet how each question is color coded with a title for each section (Information, Resources, etc).
    Ideally I would like to click on the manager name in the slicer and see a table that outputs each of those titles with the numerical average displayed in the cell right below:

    Information
    3.5

    Our corporation is intending to deploy these surveys on a bi-yearly basis, so I would appreciate any instructions that can be given so that I may complete this solo in the future.
    Thank you in advance for any help.
    Attached Files Attached Files

  2. #2
    Forum Expert dflak's Avatar
    Join Date
    11-24-2015
    Location
    North Carolina
    MS-Off Ver
    365
    Posts
    7,920

    Re: Pivot Table for Analyzing Survey Results by Manager

    The key to any exercise with pivot tables is to get the data in what I call "denormalized" format. It's the opposite of how you want to organize a database. In a database, you can have a bookcase with several shelves and each shelf has a different number of books on it. So you set it up with one table with the shelf names (A, B and C) and another table with the book names and link the book names to what shelf they are on. For pivot tables every book / shelf combination is enumerated. So it is with this data. The Manager Name is the shelf and the ratings are the books.

    So you need to get the data from the format you have to Manager | Area | Question | Rating as shown on the data sheet. I also have a helper column to translate the rating to its numerical equivalent. Two sample pivot tables are shown on the Pivot sheet. With the data in this format you can do almost anything with the pivot tables.

    For the next use, clear out the information from row 3 down on the Input Sheet. Then copy and paste in the new data to cell A2. As long as the questions and areas remain the same, you are good to go. Otherwise, it's probably a minor tweak to fix the code to match the sheet.

    Run the macro, parsedata and refresh the pivot table. ParseData clears out the data table and shuffles the new data into it.
    Attached Files Attached Files
    One spreadsheet to rule them all. One spreadsheet to find them. One spreadsheet to bring them all and at corporate, bind them.

    A picture is worth a thousand words, but a sample spreadsheet is more likely to be worked on.

  3. #3
    Registered User
    Join Date
    08-16-2016
    Location
    Illinois, USA
    MS-Off Ver
    Office 365
    Posts
    49

    Re: Pivot Table for Analyzing Survey Results by Manager

    This is outstanding. Not the first time you've saved the day for me either. You made this very easy to understand, and your macro is even easy to understand if I would ever need to make some tweaks. I would give you reputation but apparently you are the last user I gave rep to, and it is preventing me from doing so again.

    Thank you very much for the timely response. I really do appreciate it. Have a great day!

  4. #4
    Forum Expert dflak's Avatar
    Join Date
    11-24-2015
    Location
    North Carolina
    MS-Off Ver
    365
    Posts
    7,920

    Re: Pivot Table for Analyzing Survey Results by Manager

    Thanks for the kind words and good luck with the project.

  5. #5
    Registered User
    Join Date
    01-25-2019
    Location
    India
    MS-Off Ver
    2016
    Posts
    1

    Re: Pivot Table for Analyzing Survey Results by Manager

    This was a great solution. Is there a way where I can arrange the pivot table which would give me result of percentage of each option i.e Strongly Agree to Strongly Disagree for all questions separately by manager?

  6. #6
    Forum Expert dflak's Avatar
    Join Date
    11-24-2015
    Location
    North Carolina
    MS-Off Ver
    365
    Posts
    7,920

    Re: Pivot Table for Analyzing Survey Results by Manager

    Ah, the beauty of normalized data and pivot tables. Once you have the data in this format, you can do almost anything with it.

    I added another pivot table on the Pivot 1 sheet. This one summarizes the data by percent of row.

    The Manager Slicer is hooked up so it controls all the pivot tables on the sheet.
    Attached Files Attached Files

+ 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. analyzing survey date
    By Fred Smith in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 09-06-2005, 09:05 PM
  2. analyzing survey date
    By Fred Smith in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 09-06-2005, 09:05 AM
  3. analyzing survey date
    By bren in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 06:05 AM
  4. analyzing survey date
    By Fred Smith in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 09-06-2005, 05:05 AM
  5. analyzing survey date
    By bren in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 04:05 AM
  6. analyzing survey date
    By bren in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-05-2005, 11:05 PM
  7. [SOLVED] analyzing survey date
    By bren in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-05-2005, 10:05 PM
  8. Replies: 0
    Last Post: 05-16-2005, 06:06 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