Data from questionnaire in wrong format to get pivot table

MegLearner

New Member
Joined
May 8, 2016
Messages
1
I issued a questionnaire a few years ago and downloaded responses from the questionnaire provider into an Excel spreadsheet. I did simple analysis, no problem. I have now been asked to provide some pivot tables (crosstabs), eg gender by age. The problem is the data came down in separate columns that the pivot table doesn't recognise. (I also downloaded it into SPSS but I am getting the same problem there. I use Excel at a simple level pretty often, so reckoned I would have a better chance of doing it in Excel.)
1. Each respondent has an ID number and each row on the spreadsheet refers to one ID number (ie person) but not all people answered all questions, so some cells are blank anyway because they weren't answered.
2. The data for gender is in two separate columns, one headed "male", one headed "female". All the females are identified as such in the female column by the word "female" (Duh), ditto all the males in the male column. The corresponding cells in the male column are thus blank for "females" and ditto in the female column for "males".
3. The age groups are in separate columns headed with the specific age group, eg, 17, 18, 19, 20 - 24, 25 - 30, 31 - 34 and 35 and over. The age or age band is entered into the appropriate cell in the appropriate column for that person and all the other cells under age band for that person are thus empty. I am going to try and post a screenshot of the part of the sheet:
dateposted-public


From reading the information on pivot tables, it seems Excel is looking for 2 columns with all cells filled, one column with male / female in the appropriate cell and the other column with the age or age band in the appropriate cell?
Is there any way I can get the data into a format that Excel understands without having to copy and paste all this across and move it by hand please? I have been searching for information on line for the last 24 hours but can't find anything similar. :(
Thanks in advance for any help you can rrovide
 

Excel Facts

Create a Pivot Table on a Map
If your data has zip codes, postal codes, or city names, select the data and use Insert, 3D Map. (Found to right of chart icons).

Forum statistics

Threads
1,215,463
Messages
6,124,965
Members
449,201
Latest member
Jamil ahmed

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top