Vlookup max value

Steven Cohen

New Member
Joined
Jul 6, 2016
Messages
26
I am having difficulty trying to get the max closing reading from this table.

I can get the min value using =MIN(VLOOKUP(E2,A2:B10,2,FALSE)) it brings up the 1st entry no problem. But I tried the same formula with =MAX(VLOOKUP,E2,A2:B10,3,FALSE)) but it brings up the closing reading for the 1st entry in cell C2 instead of C6

Any suggestions to get the value in C6?

Thanks

VEHICLEOpen ReadingClosing ReadingVehicleOpenClose
V1
10001050V11000
V2500550V2500
V350005100V35000
V470007100V47000
V110502000
V2550600
V351005200
V471008000

<tbody>
</tbody>
 

Excel Facts

Best way to learn Power Query?
Read M is for (Data) Monkey book by Ken Puls and Miguel Escobar. It is the complete guide to Power Query.
A
B
C
D
E
F
G
1
VEHICLEOpen ReadingClosing ReadingVehicleOpenClose
2
V1
1000
1050
V1
1000
2000
3
V2
500
550
V2
500
600
4
V3
5000
5100
V3
5000
5200
5
V4
7000
7100
V4
7000
8000
6
V1
1050
2000
7
V2
550
600
8
V3
5100
5200
9
V4
7100
8000

<tbody>
</tbody>


g2=MAX(IF($A$2:$A$9=E2,$C$2:$C$9)) control +shift +enter copy down
 
Upvote 0
Hi

After you type in the formula, don't just press enter.
Instead, press CTRL + SHIFT + ENTER


If you've already entered the formula, then highlight the cell with the formula and press F2.
Then press CTRL + SHIFT + ENTER




When entered correctly, the formula will be enclosed in {brackets}
 
Upvote 0
OH MAN!!!! If I could reach through the screen and shake your hand! I have been struggling too long with this.

It works like a charm!:)
 
Upvote 0

Forum statistics

Threads
1,216,081
Messages
6,128,695
Members
449,464
Latest member
againofsoul

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