I'm trying to reorganize the salary register (system generated) into a table I can more easily use. I want to use xlookup for a 2 way lookup. i need to lookup by title in column b and by department in row 4. my formula is giving a value error.
= LET(
row, XMATCH(dept, TAKE(register,,1)),
column, XMATCH(category, TAKE(register, 1)),
IFNA(INDEX(register, row, column), "")
)