முதன்மை உள்ளடக்கத்திற்குச் செல்

How to Use VLOOKUP, HLOOKUP, and XLOOKUP in Excel

 Microsoft Excel is widely known for its ability to manage and analyze large sets of data. Among its many powerful functions, the lookup functionsVLOOKUP, HLOOKUP, and the newer XLOOKUP — are essential for finding and retrieving information efficiently.

In this post, we’ll explore how each of these functions works, their syntax, examples, and when to use them.


🔹 What Are Lookup Functions in Excel?

Lookup functions help you search for specific data in a table or range and return a related value from another column or row.

For example, imagine you have a list of employee IDs and their salaries. Instead of manually searching through the list, you can use a lookup function to find a salary instantly by entering the employee’s ID.

Excel provides three main lookup functions:

  1. VLOOKUP – Vertical lookup

  2. HLOOKUP – Horizontal lookup

  3. XLOOKUP – The modern and more flexible replacement for both


1️⃣ VLOOKUP (Vertical Lookup)

📘 What It Does:

The VLOOKUP function searches for a value in the first column of a range and returns a value from another column in the same row.

📗 Syntax:

=VLOOKUP(lookup_value, table_array, col_index_num, [range_lookup])

📙 Parameters Explained:

  • lookup_value: The value to search for

  • table_array: The range containing the data

  • col_index_num: The column number from which to return the value

  • [range_lookup]: TRUE for approximate match, FALSE for exact match

📘 Example:

Suppose you have a table:

A (ID)B (Name)C (Salary)
101John50000
102Mary60000
103Raj55000

To find Mary’s salary:

=VLOOKUP("Mary", A2:C4, 3, FALSE)

✅ Output: 60000

Pro Tip:
Always set the last argument to FALSE for exact matches.


2️⃣ HLOOKUP (Horizontal Lookup)

📘 What It Does:

The HLOOKUP function works just like VLOOKUP, but it searches horizontally — across rows instead of columns.

📗 Syntax:

=HLOOKUP(lookup_value, table_array, row_index_num, [range_lookup])

📘 Example:

Suppose you have a horizontal table:

A1B1C1
ID101102103
NameJohnMaryRaj
Salary500006000055000

To find Mary’s salary:

=HLOOKUP("Salary", A1:C3, 3, FALSE)

✅ Output: 60000

When to Use:
Use HLOOKUP when your data is organized in rows rather than columns.


3️⃣ XLOOKUP (Modern Lookup Function)

Introduced in Excel 2019 and Microsoft 365, XLOOKUP is the modern alternative to both VLOOKUP and HLOOKUP. It is faster, more flexible, and easier to use.

📗 Syntax:

=XLOOKUP(lookup_value, lookup_array, return_array, [if_not_found], [match_mode], [search_mode])

📘 Example:

Using the same employee table:

=XLOOKUP("Mary", B2:B4, C2:C4, "Not Found")

✅ Output: 60000

📙 Why XLOOKUP Is Better:

  • Works both vertically and horizontally

  • No need to count column numbers

  • Supports exact and partial matches

  • Can return values to the left of the lookup column (VLOOKUP cannot)

  • Allows custom “Not Found” messages

📘 Example with “Not Found” Message:

=XLOOKUP("Sam", B2:B4, C2:C4, "Employee not found")

✅ Output: Employee not found


🔹 Comparison Table

FeatureVLOOKUPHLOOKUPXLOOKUP
Search DirectionVerticalHorizontalBoth
Match TypeExact/ApproximateExact/ApproximateExact, Approximate, Wildcards
Search from Right to Left❌ No❌ No✅ Yes
Error HandlingLimitedLimitedCustom messages
AvailabilityAll Excel versionsAll Excel versionsExcel 2019 / 365+

🔹 Common Mistakes to Avoid

  • Forgetting FALSE in VLOOKUP for exact match

  • Not fixing ranges with $ when copying formulas

  • Using wrong column or row index

  • Using XLOOKUP in older Excel versions (unsupported)


🟢 Conclusion

Mastering VLOOKUP, HLOOKUP, and XLOOKUP gives you powerful tools to analyze and retrieve data efficiently.

  • Use VLOOKUP for vertical tables

  • Use HLOOKUP for horizontal ones

  • Use XLOOKUP for everything — it’s faster, smarter, and easier

Once you understand how lookup functions work, you’ll spend less time searching through data and more time interpreting results.


கருத்துகள்

இந்த வலைப்பதிவில் உள்ள பிரபலமான இடுகைகள்

Windows 10 vs Windows 11 in Tamil

விண்டோஸ் 10 (Windows10) மற்றும் விண்டோஸ் 11 (Windows11)இரண்டும் மைக்ரோசாப்ட் உருவாக்கிய இயங்குதளங்கள். Windows 10 2015 இல் வெளியிடப்பட்டது, Windows 11 அக்டோபர் 2021 இல் வெளியிடப்பட்டது. இந்த வலைப்பதிவு இடுகையில், இந்த இரண்டு இயக்க முறைமைகளையும் ஒப்பிட்டு, அம்சங்கள், செயல்திறன் மற்றும் பயனர் அனுபவம் ஆகியவற்றின் அடிப்படையில் அவற்றின் ஒற்றுமைகள் மற்றும் வேறுபாடுகளை ஆராய்வோம். பயனர் இடைமுகம் (GUI) விண்டோஸ் 10 மற்றும் விண்டோஸ் 11 க்கு இடையில் மிகவும் குறிப்பிடத்தக்க வேறுபாடுகளில் ஒன்று பயனர் இடைமுகம் ஆகும். விண்டோஸ் 11 ஒரு நேர்த்தியான மற்றும் நவீன வடிவமைப்பைக் கொண்டுள்ளது, வட்டமான மூலைகள் மற்றும் மிகக் குறைந்த அழகியல். இது புதிய தொடக்க மெனுவைக் கொண்டுள்ளது, இது திரையை மையமாகக் கொண்டது மற்றும் பாரம்பரிய பயன்பாடுகளின் பட்டியலைக் காட்டிலும் பயன்பாட்டு ஐகான்களைப் பயன்படுத்துகிறது. இதற்கு மாறாக, Windows 10 மிகவும் பாரம்பரியமான டெஸ்க்டாப்-பாணி இடைமுகத்தைக் கொண்டுள்ளது, சில பயனர்கள் மிகவும் பரிச்சயமானதாகக் காணலாம். செயல்திறன் (Performance)  செயல்திறனைப் பொறுத்தவரை, Windows 11 ஆனது Windows 10 ஐ...

Computer Input Devices in English (Keyboard, Mouse, Microphone)

Computer Input Devices  Keyboard A keyboard is a hardware input device that allows users to input characters, numbers, and other symbols into a computer or other electronic device. The keyboard is one of the most essential components of a computer, as it allows users to communicate with the computer and input data into applications and programs. The modern keyboard layout is based on the QWERTY design, which was developed in the 1870s for use with typewriters. The layout features a standard set of keys, including letters, numbers, symbols, and function keys. In addition, many modern keyboards also include special keys, such as multimedia keys, programmable keys, and macro keys. Types of Keyboards There are several types of keyboards available, including: Standard Keyboard The standard keyboard is the most common type of keyboard and features a QWERTY layout with a set of keys for typing letters, numbers, and symbols. Gaming Keyboard Gaming keyboards are designed for gamers and feat...

How can I remove a background from a picture for free?

 For making some albums or poster, we need to remove background from the photos. We can do it by using the below method. 1. Click the below link https://www.remove.bg/ 2. Upload the image which needs the background to be removed 3. Now the process will happen and the background will get removed 4. If the file quality is not good, the results may not be ok.  Click here to improve the quality of the image. 5. Download the background removed image 6. There other enhancement also tools available a) add background image or Colour  b) Erase the objects from your uploaded photo (Can't delete any object in background)   c) Finally download the modified image