Forum Discussion

LisaMarie1981's avatar
LisaMarie1981
Brass Contributor
Jun 11, 2024
Solved

Match data from another tab

Hi there, I am looking for an index and/or match formula. The first shot is tab1 and I want to enter a formula in column E that matched column D to column A in Tab 2 and returns the same GL code from...
  • Lorenzo's avatar
    Jun 11, 2024

    Hi LisaMarie1981 

     

    One way with data in tab2/sheet2 https://support.microsoft.com/en-us/office/format-an-excel-table-6789619f-c889-495c-99c2-2f971c0e2370 named 'TableGL':

     

    in D2:

    =IF([@CATEGORY] = "", "",
      XLOOKUP([@CATEGORY], TableGL[CATEGORY], TableGL[GL CODE], "No match")
    )

    or - with data in tab1/sheet1 not formatted as Table:

    =IF(C2 = "", "",
      XLOOKUP(C2, TableGL[CATEGORY], TableGL[GL CODE], "No match")
    )

     

Resources