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 calculate loan payments in Excel?
Use the PMT function: =PMT(5%/12,60,-25000) is for a $25,000 loan, 5% annual interest, 60 month loan.

Forum statistics

Threads
1,223,875
Messages
6,175,117
Members
452,613
Latest member
amorehouse

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