Data Analytics

Google Sheets - Advanced Formulas

VLOOKUP, INDEX/MATCH, ARRAYFORMULA, QUERY, IMPORTRANGE, pivot tables, named ranges

20 interview questionsยท
Junior
1

Which function searches for a value in the first column of a range and returns a corresponding value from another column?

Answer

VLOOKUP (Vertical Lookup) searches for a value in the first column of a data range and returns the corresponding value from a specified column. The syntax is VLOOKUP(search_key, range, column_index, is_sorted). This function is one of the most commonly used for cross-referencing data between different tables in Google Sheets.

2

In the formula VLOOKUP(A2, B:D, 3, FALSE), what does the FALSE parameter mean?

Answer

The last parameter of VLOOKUP indicates the match type. FALSE means the search must find an exact match. If no exact value is found, the formula returns a #N/A error. With TRUE (or omitted), VLOOKUP uses an approximate match, which requires the data to be sorted in ascending order.

3

What is the main limitation of VLOOKUP compared to INDEX/MATCH?

Answer

VLOOKUP can only search in the first column of the specified range and return a value to the right. If the lookup column is to the right of the result column, VLOOKUP does not work. INDEX/MATCH does not have this restriction and can search in any direction, making it a more flexible combination.

4

What is the difference between VLOOKUP and HLOOKUP?

5

How does the INDEX/MATCH combination work to look up a value?

+17 interview questions

Master Data Analytics for your next interview

Access all questions, flashcards, technical tests, code review exercises and interview simulators.

Start for free