Return max value based on criteria

Steven_TN

New Member
Joined
Jul 20, 2020
Messages
4
Office Version
  1. 2013
Platform
  1. Windows
Hello guys,

I am trying to get the max value based on the supplier's name and their (max) score that I have in a list.

in short: I have a list of suppliers (column A) to which I assigned a colored zone (B) and a score (C). Based on the supplier's name I would like to return the highest score that has been assigned to it, regardless of the zone's color. (I added it to the picture but maybe it wasn't necessary). so for instance, if you look at the picture attached you will see in column D the results I'd like to get. I have highlighted in pink the max values (C) for easy spotting :)

I have tried this formula but it doesn't work: =MAX(IF($B:$B=B2;$C:$C))
Other formulas also don't work for me.

I have excel 2013

thanks for your help!
 

Attachments

  • Cattura.PNG
    Cattura.PNG
    15.8 KB · Views: 10

Excel Facts

Last used cell?
Press Ctrl+End to move to what Excel thinks is the last used cell.
Did you confirm that formula with Ctrl Shift Enter, rather than just Enter?
 
Upvote 0
maaybe with Power Query

SUPPLIERZONESCORESUPPLIERMax
SAFRANGREEN80SAFRAN80
SAFRANGREEN5IVOPLAST95
SAFRANGREEN5CAREMED91
SAFRANRED10
IVOPLASTYELLOW95
IVOPLASTRED5
CAREMEDRED91
CAREMEDRED45
CAREMEDRED60
CAREMEDRED80
CAREMEDGREEN15

Rich (BB code):
let
    Source = Excel.CurrentWorkbook(){[Name="Table1"]}[Content],
    Group = Table.Group(Source, {"SUPPLIER"}, {{"Max", each List.Max([SCORE]), type number}})
in
    Group
 
Upvote 0
Glad we could help & thanks for the feedback.
 
Upvote 0

Forum statistics

Threads
1,214,402
Messages
6,119,301
Members
448,885
Latest member
LokiSonic

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