Whether you regularly connect various spreadsheets to create impressive reports or only use Google Sheets once a month to update numbers, every online marketer should have the following Google Sheets functions in their toolbox.
These functions are not only incredibly useful for efficiently performing calculations in your spreadsheets, but they also open up new possibilities, allowing you to automate more tasks and achieve even better results.
We’ll begin with Part I: The XLOOKUP function. This updated version of VLOOKUP and HLOOKUP allows you to easily search for a value from another table.
VLOOKUP/ HLOOKUP/ XLOOKUP

What is XLOOKUP used for?
Every self-respecting online marketer has probably used VLOOKUP or HLOOKUP in their Google Sheets formulas, or better yet, XLOOKUP. These functions are handy for linking data, as long as you have a unique identifier and multiple tabs or tables of data.
For example, you can easily align an SEO data report based on URLs with your SEA landing page report to check if you need to optimize content for SEA.
Of je kunt je productinformatie in het ene tabblad verrijken met data vanuit een ander tabblad, zoals data die je hebt geëxporteerd uit een PIM systeem.
How do you use XLOOKUP?
The XLOOKUP, VLOOKUP and HLOOKUP functions consist of three basic parts: First, you provide a search value, then a search vector, and finally a result vector. The function looks for a match in the search vector and returns a specific result from the result vector.
This way, you can easily retrieve a specific value from another table for the same unique identifier as the search value.
For example: =XLOOKUP(A2,Import!A2:A,Import!B2:B,”Not Found”)
This function searches for the value in A2 within Import!A2 and returns the value from the corresponding row in column Import!B2. If the value isn’t found, “Not Found” is returned as the default value.
The differences between XLOOKUP, VLOOKUP, and HLOOKUP
- VLOOKUP and HLOOKUP are pretty old-school. In these, you provide a search value and a matrix, where the first row (HLOOKUP) or column (VLOOKUP) serves as the search vector, and you indicate which row or column is the result vector using a number.
- XLOOKUP is the modern version and is superior in every way. You don’t need to provide a column/row index number, but instead, you simply select the result vector. This means your formulas will continue to work even if you insert columns between the search and result vectors, and your result vector can even be in a column before your search vector.
- A bonus feature of XLOOKUP s that you can specify what should happen if no value is found (#N/A). You can easily make it return a blank value (“”) or provide a default value, eliminating the need for a separate IFNA function.
INDEX + MATCH
INDEX + MATCH was a popular alternative to the limitations of VLOOKUP and HLOOKUP.
You first select a matrix, then use the MATCH function to find the row and/or column where your search value is located. This allows you to retrieve results from a matrix with more than two columns or rows and make the column reference dynamic , so new columns don’t affect the results.
For example: =index(A1:C5,match(“Value A”,A1:A5),match(B1,A1:C1))
Here, you take the matrix A1 , and for the row, you look for where column A matches "Value A." Then, for the column, you search for the value in row 1 that matches B1. This may seem complicated, but by using B1, the formula automatically adjusts if an extra column is added.
However, with the arrival of XLOOKUP, INDEX + MATCH is rarely needed. VLOOKUP and HLOOKUP should be forgotten altogether. Always use XLOOKUP from now on.
XLOOKUP bonus tip 1:
You can use XLOOKUP within an ARRAYFORMULA, allowing you to apply the search function to all your data rows at once. More on ARRAYFORMULA coming soon.
XLOOKUP bonus tip 2:
You can use multiple columns for both the search value and the search vector. For example, you can search for a combination of an ID and a specific date to look up data based on multiple conditions.
For example: =XLOOKUP(A2&B2,Import!A2:A&Import!B2:B,””&Import!C2:C,”Not found”)
Just make sure that your result vector is of the same size. If you only want to use one column, combine it with &“” of “”&.

