How to make Vlookup loop through a column to find the value of cell below it and carry on

Fuzzyfazzy

New Member
Joined
Jan 4, 2018
Messages
9
Hi All,

I have a strange problem where I would like to search for a value, such as "K" in a Column and return the value of the cell below it.

i.e.

Column would contain the following data:

A
K
T
J
E
K
A

So in another column, the values returned would be T and A and so on...

Hoping someone can help as I have tried the INDEX method but it only seems to find the first "K" and I cannot seem to get it to loop on and get the next value.

Thanks in advance.
 

Excel Facts

Select all contiguous cells
Pressing Ctrl+* (asterisk) will select the "current region" - all contiguous cells in all directions.

Excel 2010
ABC
1what to search for
2Ak
3K
4Tnext row
5JT
6EA
7K 
8A 
Sheet4
Cell Formulas
RangeFormula
C5{=IF(ROWS($C$5:C5)>COUNTIF($A$2:$A$8,$C$2),"",INDEX($A$2:$A$8,SMALL(IF($A$2:$A$8=$C$2,ROW($A$2:$A$8)-ROW($A$2)+1),ROWS($C$5:C5))+1))}
C6{=IF(ROWS($C$5:C6)>COUNTIF($A$2:$A$8,$C$2),"",INDEX($A$2:$A$8,SMALL(IF($A$2:$A$8=$C$2,ROW($A$2:$A$8)-ROW($A$2)+1),ROWS($C$5:C6))+1))}
C7{=IF(ROWS($C$5:C7)>COUNTIF($A$2:$A$8,$C$2),"",INDEX($A$2:$A$8,SMALL(IF($A$2:$A$8=$C$2,ROW($A$2:$A$8)-ROW($A$2)+1),ROWS($C$5:C7))+1))}
C8{=IF(ROWS($C$5:C8)>COUNTIF($A$2:$A$8,$C$2),"",INDEX($A$2:$A$8,SMALL(IF($A$2:$A$8=$C$2,ROW($A$2:$A$8)-ROW($A$2)+1),ROWS($C$5:C8))+1))}
Press CTRL+SHIFT+ENTER to enter array formulas.
 
Upvote 0

Forum statistics

Threads
1,215,067
Messages
6,122,949
Members
449,095
Latest member
nmaske

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