XLookup Function
The XLOOKUP function is a powerful search function in Microsoft Excel that allows you to search for a specific value in a range or array, and return a corresponding result from another column or array. The “X” in XLOOKUP stands for “extended,” as it offers more advanced capabilities than the traditional VLOOKUP and HLOOKUP functions.
ToRow Function
The TOROW function in Excel is used to convert an array or range of cells into one row. The function takes a total of three arguments, of which only the first one is required.
Goals
Please follow the directions given below, which include downloading the Excel worksheet required to perform the challenge tasks. Once you have completed the download, proceed to take the challenge and test your skills.
Task
In cell F9, enter the name of the capital city for the country selected in cell E9, utilizing the Xlookup and Torow functions. The countries are listed in the A3:C5 range and the corresponding capitals are listed in the E3:G5 range.
Submission
Reply to this post with your formula code and solution file. Please be sure to blur or hide your formula code.
Thank you for participating in the Excel Challenge related to Xlookup & ToRow Functions! I hope you found this challenge to be a fun and engaging way to improve your Excel skills and learn more about how to work with Xlookup & ToRow Functions in Excel.
@IlgarZarbaliyev - For some reason, I am not getting the TOROW() function in my Excel workbook. Could this be related to the version of Excel that I am using? If the function is unavailable, is there an alternative way to achieve the same functionality?
FYI - Currently I am using Microsoft® Excel® LTSC MSO (Version 2307 Build 16.0.16626.20086) 64-bit
The TOROW function is part of the new Excel Dynamic Arrays family. At the time of writing, Dynamic Arrays are only available in Microsoft 365. Excel 2021 and earlier Excel versions will not get TOROW.