Forum Discussion

Row89's avatar
Row89
Copper Contributor
May 07, 2024
Solved

Formula help for tables that columns may change positions

Hi   I have created the below formula in column S (report number) to bring through a report number.   =VLOOKUP(Table_query__1[Title],Lists!Q:R,2,FALSE)   The whole data table in Table_query_1 i...
  • Martin_Angosto's avatar
    May 07, 2024

    Row89 

     

    Hello, try this:

     

    =XLOOKUP(Q7,Table1[Title],CHOOSECOLS(Table1,MATCH("Report N.",Table1[#Headers],0)))

     

    You will only have to write the name of the column header of the values you want to return. Then, even if changes in columns are made, it will always find the value to return.

     

    Attaching a sample document for you as well.

     

    Martin

Resources