use Vlookup
=+VLOOKUP("Output",D1:G7,1)
- Replace D1 with the address of the starting cell to lookup
- Replace G7 with the address of the Ending cell to lookup
- Replace 1 with the column you want the value to be returned from
Apple 1 Apple
2 Apple
7 Apple
Mango 3 Mango
=====================
col1 Col2 Formula