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
[TABLE="width: 500"]
<tbody>[TR]
[TD]VEHICLE[/TD]
[TD]Open Reading[/TD]
[TD]Closing Reading[/TD]
[TD][/TD]
[TD]Vehicle[/TD]
[TD]Open[/TD]
[TD]Close[/TD]
[/TR]
[TR]
[TD]V1
[/TD]
[TD]1000[/TD]
[TD]1050[/TD]
[TD][/TD]
[TD]V1[/TD]
[TD]1000[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]V2[/TD]
[TD]500[/TD]
[TD]550[/TD]
[TD][/TD]
[TD]V2[/TD]
[TD]500[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]V3[/TD]
[TD]5000[/TD]
[TD]5100[/TD]
[TD][/TD]
[TD]V3[/TD]
[TD]5000[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]V4[/TD]
[TD]7000[/TD]
[TD]7100[/TD]
[TD][/TD]
[TD]V4[/TD]
[TD]7000[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]V1[/TD]
[TD]1050[/TD]
[TD]2000[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]V2[/TD]
[TD]550[/TD]
[TD]600[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]V3[/TD]
[TD]5100[/TD]
[TD]5200[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]V4[/TD]
[TD]7100[/TD]
[TD]8000[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody>[/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
[TABLE="width: 500"]
<tbody>[TR]
[TD]VEHICLE[/TD]
[TD]Open Reading[/TD]
[TD]Closing Reading[/TD]
[TD][/TD]
[TD]Vehicle[/TD]
[TD]Open[/TD]
[TD]Close[/TD]
[/TR]
[TR]
[TD]V1
[/TD]
[TD]1000[/TD]
[TD]1050[/TD]
[TD][/TD]
[TD]V1[/TD]
[TD]1000[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]V2[/TD]
[TD]500[/TD]
[TD]550[/TD]
[TD][/TD]
[TD]V2[/TD]
[TD]500[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]V3[/TD]
[TD]5000[/TD]
[TD]5100[/TD]
[TD][/TD]
[TD]V3[/TD]
[TD]5000[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]V4[/TD]
[TD]7000[/TD]
[TD]7100[/TD]
[TD][/TD]
[TD]V4[/TD]
[TD]7000[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]V1[/TD]
[TD]1050[/TD]
[TD]2000[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]V2[/TD]
[TD]550[/TD]
[TD]600[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]V3[/TD]
[TD]5100[/TD]
[TD]5200[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]V4[/TD]
[TD]7100[/TD]
[TD]8000[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]