Look Up Problem - return max number when look multiple look up values are equal

Joined
Oct 19, 2010
Messages
11
abcde
1CONTRACTED 20212121
2Blocked 121818
3Picked Up10242520
4PICK UP % OF PEAK50%120%125%100%

<colgroup><col><col><col><col span="2"></colgroup><tbody>
</tbody>


The goal is to find the largest number in the contract row and return the largest value in the picked up row. In this case 25.

The difficulty is there are equal values in row 1, the number 21 appears three times. Need a look up that will return value in cell d3
 

Excel Facts

Do you hate GETPIVOTDATA?
Prevent GETPIVOTDATA. Select inside a PivotTable. In the Analyze tab of the ribbon, open the dropown next to Options and turn it off
'Hi,

try this and see if this is what you're after:


Excel 2016 (Windows) 64 bit
ABCDE
1CONTRACTED20212121
2Blocked121818
3Picked Up10242520
4PICK UP % OF PEAK50%120%125%100%
5
6max value25
Sheet1
Cell Formulas
RangeFormula
B6{=MAX(B1:E1*B3:E3)/MAX(B1:E1)}
Press CTRL+SHIFT+ENTER to enter array formulas.
 
Upvote 0
Addition to #2 an alternative for the array formula could be:


Excel 2016 (Windows) 64 bit
ABCDE
1CONTRACTED20212121
2Blocked121818
3Picked Up10242520
4PICK UP % OF PEAK50%120%125%100%
5
6max value25
7or25
Sheet1
Cell Formulas
RangeFormula
B7=AGGREGATE(14,6,(B1:E1*B3:E3)/(B1:E1),1)
B6{=MAX(B1:E1*B3:E3)/MAX(B1:E1)}
Press CTRL+SHIFT+ENTER to enter array formulas.
 
Last edited:
Upvote 0
That formula in B7 is great but the question was bad. The max pick up value returned should be the largest number equal to or less then max contract number. It the example above that number would be a pick up value of 20 (e3) with the contract number of 21. The largest pick up value possible to return in this example would be 21 assuming any of the cells c3:e3 had a value of 21. This way it is possible to have % numbers greater then 100% if the pick up value is greater than the contract value.
 
Upvote 0
Ahh,
The devil is in the details and the unasked question.

Try this:

Excel 2016 (Windows) 64 bit
ABCDE
1CONTRACTED20212121
2Blocked121818
3Picked Up10242520
4PICK UP % OF PEAK50%120%125%100%
5
6max value20
7
8CONTRACTED202121
9Blocked121818
10Picked Up182122
11PICK UP % OF PEAK85.7%100.0%104.8%
12
13max value21
Sheet1
Cell Formulas
RangeFormula
B6=AGGREGATE(14,6,(B3:H3)*(B3:H3<=B1:H1),1)
B13=AGGREGATE(14,6,(B10:H10)*(B10:H10<=B8:H8),1)
 
Last edited:
Upvote 0

Forum statistics

Threads
1,216,099
Messages
6,128,819
Members
449,469
Latest member
Kingwi11y

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