Lookup in Pivot Table

Copper Contributor

I'm trying to lookup the max sales for a month by employee. The Pivot Table shows the layout. I know i could just use a max function to return each number, but I want a formula that will lookup an employee's name and return its max value. Additionally, I want to lookup the calculated max value and return its corresponding product ID. Any ideas for me?

1 Reply

Hi Luck,

 

Remove all fields from PivotTable areas, then drag the Name field to Rows area, and drag the SoldFor field to Values area.

 

This is will give you each employee and the sum of his sales.

The sum is the default function here, but you can change it to Max.

 

To do so, move the cursor to any cell in the Sum of SoldFor field, right-click, and select Summarize Values By >> Max.

 

After that, you can this formula to get the ID for each Max value.

=INDEX(Table1[ID],MATCH(F2,Table1[Sales],0))

Summarize Values By Max.png

 

 

Hope that helps