Code Or Formula To Tell Me The Most For A Number In Column A

Dazzawm

Well-known Member
Joined
Jan 24, 2011
Messages
3,748
Office Version
  1. 365
Platform
  1. Windows
I have column A below with a list of numbers, next in B is another list of numbers. I need a formula or code to tell me the highest amount for a said number. Below in rows 17-20 is the most for the numbers above. Thanks

Maybe the results could be put onto sheet 2 to appear like rows 17-20?

Excel 2010
AB
1NCGZ0071
2NCGZ0072
3NCGZ0074
4NCGZ0074
5NCGZ0071
6AXGP4214
7NCGX1034
8NCGX804
9NCGX1032
10NCGX802
11NCGZ0074
12NCGZ0073
13AXGP4214
14AXGP4211
15
16
17NCGZ0074
18AXGP4214
19NCGX1034
20NCGX804

<tbody>
</tbody>
Sheet2
 
Last edited:

Excel Facts

Ambidextrous Undo
Undo last command with Ctrl+Z or Alt+Backspace. If you use the Undo icon in the QAT, open the drop-down arrow to undo up to 100 steps.
if you can put a heading in row 1 then you could use a pivot table to show the max in Col B for each value in Col A
 
Upvote 0
Use MAXIFS or MAX(IF if you dont have MAXIFS on your excel version.
 
Upvote 0

Forum statistics

Threads
1,215,219
Messages
6,123,678
Members
449,116
Latest member
HypnoFant

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