List people with the highest scores based on criteria in a pivot table (Excel 2007)
Overview
This post describes how to create a list of people, sorted by occurrence, based on criteria in a pivot table. In a previous post we created an array formula to accomplish the task.
I am tryng to list the people with the highest scores based on certain criteria.
My data:
column
A B C D
Mike 207 Yes Life
Greg 207 Yes Life
Sid 207 Yes Life
Greg 207 Yes Life
Greg 207 Yes Life
Sid 207 Yes Life
Greg 207 No Life
Sid 204 No Health
criteria
countif b= 207 and column c= yes and column d= Life
and it then needs to arange it from the highest to the lowest
(Large)
and then match it with the name eg, Greg Sid or Mike
so what i am looking for is eg.
Greg 3
Sid 2
Mike 1
but it has to be in one formula.
Answer:
Instructions excel 2007 - Create and setup pivot table
- Select cell range A1:D9
- Click "Insert" tab on the ribbon
- Click "Pivot table" button
- Choose where you want the Pivot table report to be placed
- Click OK
- Click and drag "Name" into "Row labels" window
- Click and drag "Name" into "Values" window
- Click and drag "Nr", "Yes/No" and Life/Health into "Report Filter" window.
Setup Report Filter
- Select "207" in Report filter cell on the excel sheet
- Select ""Yes" in Report filter cell on the excel sheet
- Select ""Life" in Report filter cell on the excel sheet
Sort names by occurence
- Click "Arrow" near "Name" on pivot table
- Click "More sort options.."
- Click "Descending (A to Z) by: Count of Name
Download excel sample file for this tutorial.
list-the-people-with-the-highest-scores-based-on-certain-criteria-in a pivot table.xls
(Excel 97-2003 Workbook *.xls)
Thanks David, your excel file showed me how!!
Related posts:
List people with the highest scores based on criteria in excel
Excel 2007 pivot table: Count unique distinct records (rows)




















