Is there a way I can dynamically change the Return Array based on a value in another cell in an Xlookup formula?
For example, I am trying pull the data in various columns from another tab using the "Lookup Code"(Column B) as my lookup value.
Row 1 is the column header from another tab. For example, the "Prior Account ID" is in Column C from the "List" (source) Tab
The Xlookup formula in cell C5 is: =XLOOKUP($B5,List!$B:$B,List!C:C)
Is there a way I can dynamically change the Return Array based on what is in row 1? i.e., XLOOKUP($B5,List!$B:$B,List!C:C) to change to XLOOKUP($B5,List!$B:$B,List!AH:AH) automatically for the subsequent columns.
I used to be able to change the column number in Vlookup dynamically but not sure how to do this in Xlookup?
Any help is greatly appreciated.
For example, I am trying pull the data in various columns from another tab using the "Lookup Code"(Column B) as my lookup value.
Row 1 is the column header from another tab. For example, the "Prior Account ID" is in Column C from the "List" (source) Tab
The Xlookup formula in cell C5 is: =XLOOKUP($B5,List!$B:$B,List!C:C)
Is there a way I can dynamically change the Return Array based on what is in row 1? i.e., XLOOKUP($B5,List!$B:$B,List!C:C) to change to XLOOKUP($B5,List!$B:$B,List!AH:AH) automatically for the subsequent columns.
I used to be able to change the column number in Vlookup dynamically but not sure how to do this in Xlookup?
Any help is greatly appreciated.