How to use a MATCH helper column containing rows from a different sheet and INDEX in an array formula to return based on data in the helper column?

purekarting

New Member
Joined
May 22, 2015
Messages
6
I am trying to use MATCH and INDEX to improve performance on a google sheet that has way too many XLOOKUP functions.

I have a helper column (DH) that lists the matching ROW I need from the Visibility sheet.

This formula returns the expected result from column 9 on the Visibility sheet, where the data in DH2 is the row number I need to pull from Visibility:

=IF(DH2="",,INDEX(Visibility!A:O,DH2,9))
I can fill this formula down, and it works fine. But I am curious if I can spill the formula down from the header cell instead of filling it down manually, that way it will also work when new rows are inserted. The below however just spills Visibility Column 9 from top to bottom instead of returning the data from the needed ROW in DH.
=ARRAYFORMULA({"visibility_primary";INDEX({Visibility!A2:O},DH2:DH,1)})

Any ideas?
 

Excel Facts

How to fill five years of quarters?
Type 1Q-2023 in a cell. Grab the fill handle and drag down or right. After 4Q-2023, Excel will jump to 1Q-2024. Dash can be any character.

Forum statistics

Threads
1,215,073
Messages
6,122,970
Members
449,095
Latest member
Mr Hughes

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