In: Statistics and Probability
Is there a way to make a pivot table from a data set to show the following:
- make gender the columns (one column for male and one for
female)
- rows are age increments (18 - 30, 31 - 40, 41 - 50, 51 - 60, 61 -
70)
- information provided within the pivot table is the average salary
of everyone within the age increment (for example, I want to find
the average salary of a male between the ages of 41 - 50, or the
average salary of a female between the ages of 31 - 40). I'm not
able to provide a data set because it's too large, but if
instructions can be provided, that would be amazing!
Go to Insert in the menu bar and choose pivot table. After you have selected the range of the table with all the columns with unique header names click OK.
Choose gender in columns, Age in rows and salary in Values. Then click on the option as shown below and go to Value Field Settings.
Chosse Average as shown below and click OK. You will get your required pivot table.