Forum Discussion
Vlookup help
- Mar 24, 2025
Hi Luchoarenas12 , the transpose function works quite well. When you use the XLOOKUP function, it will return an array and spill your data horizontally. You would then wrap the Xlookup function in the transpose function to get your final result.
First do an xlookup using the name and last name and reference your table as an array. Then return the fields you want. It will spill as a horizonal array in your sheet. Then wrap it around with the Transpose function and it will lay it out vertically.
I have attached the solution in a workbook using the names and staff number. Please let me know if this works and if it does, please mark as solved. Thank you.
Assuming that table you posted starts in cell A1, and the top of the card is in cell A20, this formula will get the values from the list:
=TRANSPOSE(XLOOKUP(A20&"|"&B20,$A$5:$A$18&"|"&$B$5:$B$18,$C$5:$I$18))