Index Match with Max Function

nathanthomson11

New Member
Joined
Apr 4, 2019
Messages
25
Office Version
  1. 365
Platform
  1. Windows
I am looking for a way to pull pricing based on multiple criteria, one being max.

For example, column A is contracts, and I want to pull pricing (column C) based on the latest (highest) revision in column B.

Expected results -
ContactLatest Price
50000029901.76
50000547670.78
 

Attachments

  • Example.jpg
    Example.jpg
    67.1 KB · Views: 9
pull pricing (column C) based on the latest (highest) revision in column B

Like this?
I have assumed all the revision codes are text values & will be the same length - 5 digits

25 03 01.xlsm
ABCDEF
1ContractRevisionPriceContractLatest
2100010613
320003018217
4300123131
52000509
63000605
710004013
820000111
93000809
101000903
1120010017
123000956
Lookup Highest
Cell Formulas
RangeFormula
F2:F4F2=VLOOKUP(E2:E4,SORT(A2:C12,2,-1),3,0)
Dynamic array formulas.
 
Upvote 0
@MARZIOTULLIO
If you look at the image uploaded in post 1, you will see that column B has green triangles in the corner of each cell, presumably indicating that those values are "numbers stored as text" which would defeat your formula as written.
 
Upvote 0
@MARZIOTULLIO
If you look at the image uploaded in post 1, you will see that column B has green triangles in the corner of each cell, presumably indicating that those values are "numbers stored as text" which would defeat your formula as written.
Hi Peter - just had a look at this now. If we used within the formula MAX((B2:B24)*1), this would convert the numbers to a number rather than text, in this case being 120. I have however then tried to use an INDEX on the price range with this MAX to try and calculate the price being £1.76 on 5000002990 but not having much joy?
 
Upvote 0
F2=IFERROR(AGGREGATE(14,6,$C$2:$C$12/(AGGREGATE(14,6,VALUE($B$2:$B$12)/($A$2:$A$12=E2),1)=VALUE($B$2:$B$12)),1),"")
 
Upvote 0

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