Vertical VLOOKUP

RodneyW

Active Member
Joined
Sep 24, 2010
Messages
473
Office Version
  1. 2013
Platform
  1. Windows
I'm not sure this is a VLOOKUP but here's what I'm trying to do

I have a value in cell D42, lets say that value is "green"

I need the formula to look for D42 (green) in I2:AE2. Lets say the value green is found in K2. If so, I'd like the result of the formula to display the value in K3. If on the other hand, the value green is found in V2, the result of the formula should display the value in V3.

Make sense?

Thanks in advance
 

Excel Facts

Fastest way to copy a worksheet?
Hold down the Ctrl key while dragging tab for Sheet1 to the right. Excel will make a copy of the worksheet.
Try:
INDEX(I3:AE3,MATCH(D42,I2:AE2,0))

Book1
CDEFGHIJKLMNO
1
23redbluegreenyellow
3123456
4
42green
Sheet1
Cell Formulas
RangeFormula
G2G2=INDEX(I3:AE3,MATCH(D42,I2:AE2,0))
 
Upvote 0
Solution
I'm not sure this is a VLOOKUP
I'm not suggesting anything wrong with INDEX/MATCH as suggested but since you mentioned VLOOKUP I'm letting you know that there is also the single-function HLOOKUP that would work for this job.

24 11 10.xlsm
DEFGHIJKL
1
23redbluegreenyellow
31234
42green
HLOOKUP
Cell Formulas
RangeFormula
G2G2=HLOOKUP(D42,I2:AE3,2,0)
 
Upvote 0
I'm not suggesting anything wrong with INDEX/MATCH as suggested but since you mentioned VLOOKUP I'm letting you know that there is also the single-function HLOOKUP that would work for this job.

24 11 10.xlsm
DEFGHIJKL
1
23redbluegreenyellow
31234
42green
HLOOKUP
Cell Formulas
RangeFormula
G2G2=HLOOKUP(D42,I2:AE3,2,0)
Good to know, thank you
 
Upvote 0

Forum statistics

Threads
1,223,610
Messages
6,173,339
Members
452,510
Latest member
RCan29

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