Double vlookup with max outcome

monaldo12

New Member
Joined
Mar 17, 2016
Messages
45
So I have data summed up in a pivot but there are two possible outcomes, it's based on a ranking with feature A vs B. So an item can have ranking 9 with feature A, but can also have ranking 1 with feature B.
This data is shown in a pivot and I would like to have an outcome, thought of vlookup, where I can lookup the item and find the highest ranking. My pivots are split into pivot feature A and pivot feature B, I want to search the item in both pivots and have the highest outcome. So in this example outcome should be ranking 1.
It can also be the case that an item is not found in pivot feature A but is in pivot feature B, so I also need an iferror or something.
 

Excel Facts

VLOOKUP to Left?
Use =VLOOKUP(A2,CHOOSE({1,2},$Z$1:$Z$99,$Y$1:$Y$99),2,False) to lookup Y values to left of Z values.
You can use something like

Excel Formula:
=MAX(IFERROR(VLOOKUP(F2,$A$2:$C$12,2,0),0),IFERROR(VLOOKUP(F2,$A$2:$C$12,3,0),0))
 
Upvote 0
Solution

Forum statistics

Threads
1,214,908
Messages
6,122,187
Members
449,072
Latest member
DW Draft

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