#1 Data Analytics Program in India
₹2,499₹1,499Enroll Now
Module 2
5 min

XLOOKUP

The modern and easier way to look up data in Excel

XLOOKUP - Find Anything in Excel

XLOOKUP helps you find information in a table. Think of it like searching Google - you type what you want, and it gives you the answer!

XLOOKUP Overview


What is XLOOKUP?

Imagine you have a price list with 1000 products. Someone asks: "What is the price of Banana?"

Instead of scrolling through 1000 rows, XLOOKUP finds it for you instantly!


The Simple Formula

=XLOOKUP(find_this, look_here, return_from_here)

PartWhat It MeansExample
find_thisWhat are you searching for?Banana
look_hereWhich column to search in?A:A (names column)
return_from_hereWhich column has the answer?B:B (price column)
3 rows

Your First XLOOKUP

XLOOKUP Example

You have this data:

A (Product)B (Price)
Apple50
Banana30
Orange40
3 rows

Question: What is the price of Banana?

Formula: =XLOOKUP("Banana", A:A, B:B)

Answer: 30


Step by Step

  1. Type =XLOOKUP(
  2. Type what to find: "Banana"
  3. Add comma, select search column: A:A
  4. Add comma, select answer column: B:B
  5. Close bracket: )

Final: =XLOOKUP("Banana", A:A, B:B)


Search in Any Direction

XLOOKUP Reverse

The best part - XLOOKUP can search ANY column!

A (ID)B (Name)C (Price)
101Apple50
102Banana30
103Orange40
3 rows

Find price by ID: =XLOOKUP(102, A:A, C:C) → 30

Find ID by name: =XLOOKUP("Orange", B:B, A:A) → 103


What If Not Found?

If you search for something that does not exist, Excel shows #N/A error.

You can show a friendly message instead:

=XLOOKUP("Mango", A:A, B:B, "Not Found")

If Mango does not exist → Shows "Not Found"


Quick Reference

TaskFormula
Basic lookup=XLOOKUP(value, search_col, return_col)
With not found message=XLOOKUP(value, search_col, return_col, 'Not Found')
From another sheet=XLOOKUP(A1, Sheet2!A:A, Sheet2!B:B)
3 rows

Important

XLOOKUP works in:

  • Excel 365
  • Excel 2019+
  • Excel Online

If you have older Excel, use VLOOKUP instead.


Summary

  • XLOOKUP finds data in tables
  • Formula: =XLOOKUP(find, search_column, return_column)
  • Can search in any direction
  • Add 4th part to show custom "not found" message