Match Index, one down two along, different sized lookups!

nj2406

New Member
Joined
Jul 21, 2015
Messages
15
Hello! I will try to explain my sheets and formulas I have tried thus far.

I am trying to populate the top row of a table using a lookup sheet of various sites.
Here is the lookup, the reason for the repeated values in column B is another INDEX/MATCH within my table (which is populating just fine). I would like my column C values to appear in a table heading row, when the A column value is selected in a drop-down menu (shall we call this cell N2).

2b5me0.png


Here is my current formula, where I have added one to the + row value to move down my list.
=INDEX(Lookup!$A$1:$C$23,MATCH($N$2,Lookup!$A$1:$A$23,0)+1,3)

HOWEVER! As you may notice some of my mini-lists in column C are shorter than the other, and I would like my formula to stop populating my header row (at the moment it goes 0 for the space, then continues to the next list).

I have tried using the 0/space in the previous header row cell, in the hope that the rest of the heading row would be zeros, but it has only done this once, so two zeros before starting from the next mini-list.
i.e
=IF(A2=0,"0",INDEX(Lookup!$A$1:$C$23,MATCH($N$2,Lookup!$A$1:$A$23,0)+1,3))
2hz0kzp.png



Any help would be greatly appreciated, could this require an INDIRECT to assign the mini-list array?
 

Excel Facts

How to show all formulas in Excel?
Press Ctrl+` to show all formulas. Press it again to toggle back to numbers. The grave accent is often under the tilde on US keyboards.
Many thanks. I have solved this by creating a new lookup where I have transposed the Column C values next to their sppropriate Column A value, and used an Index/Match
 
Upvote 0

Forum statistics

Threads
1,223,742
Messages
6,174,243
Members
452,553
Latest member
red83

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