If multiple duplicate values, then return max value from third cell

saintbernard

New Member
Joined
Jun 27, 2018
Messages
3
Hi,
I have an excel table with 20000 lines. Here is a short sample it, with license plate number (column B) which last process phase they have gone through. There are some duplicate values in the plate numbers, which have been indicated in column C. In column D, I would like to return for each line, what the highest process phase was of that plate number.
Can anyone help with a formula?

A
Last process phase
B
Plate Number
C
Duplicate or original
11ABC123Duplicate
11ABC123Duplicate
21ABC123Duplicate
2ZZZ123Original
31CBA321Original
11HIJ456Duplicate
11HIJ456Duplicate
41HIJ456Duplicate
3AAA444Original

<tbody>
</tbody>
 

Excel Facts

Copy PDF to Excel
Select data in PDF. Paste to Microsoft Word. Copy from Word and paste to Excel.
Hi and welcome to MrExcel,

take a look at this:

Book1
ABCD
1Last process phasePlate NumberDuplicate or original
211ABC123Duplicate2
311ABC123Duplicate2
421ABC123Duplicate2
52ZZZ123Original2
631CBA321Original3
711HIJ456Duplicate4
811HIJ456Duplicate4
941HIJ456Duplicate4
103AAA444Original3
Sheet1
Cell Formulas
RangeFormula
D2{=MAX(IF($B$2:$B$10=B2,$A$2:$A$10))}
Press CTRL+SHIFT+ENTER to enter array formulas.
 
Upvote 0
Hi and welcome to MrExcel,

take a look at this:
ABCD
1Last process phasePlate NumberDuplicate or original
211ABC123Duplicate2
311ABC123Duplicate2
421ABC123Duplicate2
52ZZZ123Original2
631CBA321Original3
711HIJ456Duplicate4
811HIJ456Duplicate4
941HIJ456Duplicate4
103AAA444Original3

<colgroup><col style="width: 25pxpx"><col><col><col><col></colgroup><thead>
</thead><tbody>
</tbody>
Sheet1

Array Formulas
CellFormula
D2{=MAX(IF($B$2:$B$10=B2,$A$2:$A$10))}

<thead>
</thead><tbody>
</tbody>
Entered with Ctrl+Shift+Enter. If entered correctly, Excel will surround with curly braces {}.
Note: Do not try and enter the {} manually yourself

<tbody>
</tbody>


Thanks, but it doesn't work, I get 4 for each row.
I want in each row, the highest process phase per plate number.
 
Upvote 0
Did you notice this remark:

Entered with Ctrl+Shift+Enter.

If entered correctly, Excel will surround with curly braces {}.
 
Upvote 0
Adjust range inputs to suit, non-CSE/'normal' formula, try:
Code:
=MAX(INDEX(($B$1:$B$200=B1)*$A$1:$A$200,0))
 
Last edited:
Upvote 0

Forum statistics

Threads
1,215,868
Messages
6,127,413
Members
449,382
Latest member
DonnaRisso

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