Home

Lookup in Pivot Table

LuckB10
Occasional Visitor

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

Related Conversations
Tabs and Dark Mode
cjc2112 in Discussions on
46 Replies
flashing a white screen while open new tab
Deleted in Discussions on
14 Replies
Stable version of Edge insider browser
HotCakeX in Discussions on
35 Replies
Extentions Synchronization
Deleted in Discussions on
3 Replies
Security Community Webinars
Valon_Kolica in Security, Privacy & Compliance on
13 Replies
How to Prevent Teams from Auto-Launch
chenrylee in Microsoft Teams on
30 Replies