Excel HLOOKUP Function Kaise Use Karein? Examples ke Saath
Top row me search karne wala function, step-by-step.
HLOOKUP function Excel ka ek premade function hai, jo table ki sabse upar wali row me search karta hai aur uske neeche wali kisi row se value return karta hai. HLOOKUP, VLOOKUP ka horizontal version hai: VLOOKUP pehle column me neeche ki taraf dhundhta hai, jabki HLOOKUP top row me aage (right) ki taraf dhundhta hai.
- HLOOKUP ka syntax aur uske 4 parts
- Step-by-step: HLOOKUP kaise likhein
- Row_index_num badal kar doosri row ki value nikalna
- Match na milne par #N/A aur FALSE vs TRUE
- HLOOKUP ya XLOOKUP / INDEX MATCH kab use karein
HLOOKUP ka syntax
Ise =HLOOKUP type kiya jata hai, aur iske ye parts hote hain:
, ya semicolon ;. Kaun sa symbol chalega, ye aapke Excel ki Language Settings par depend karta hai.| Part | Matlab |
|---|---|
| lookup_value | Dhundhne wali value. Aam taur par wo cell jaha search value likhi jati hai |
| table_array | Table ki range. HLOOKUP is range ki top row me dhundhta hai |
| row_index_num | Table range me upar se ginkar wo row jisme se value return karni hai. Top row, row 1 hoti hai |
| range_lookup | Optional. FALSE (0) exact match ke liye, ya TRUE (1) approximate match ke liye. Approximate match me top row chhote se bade order me sorted honi chahiye. Ise chhod dein to TRUE use hota hai |
HLOOKUP kaise use karein
- Ek cell chunein (
B6) =HLOOKUPtype karein- HLOOKUP command par double click karein
- Wo cell chunein jaha search value likhi jayegi (
B5) - Comma type karein (
,) - Table range mark karein (
B1:H3) - Comma type karein (
,) - Row ka number type karein, upar se ginkar (
2) - Comma type karein (
,) - Exact match ke liye
FALSEtype karein - Enter dabayein
- Search cell (
B5) me koi value likhein
Chaliye ek example dekhte hain!
Example
Ye Poke Mart ki ek price list hai. Items top row me hain, aur unki price aur category neeche ki rows me. Ise copy karke cell A1 me paste karein:
| A | B | C | D | E | F | G | H | |
|---|---|---|---|---|---|---|---|---|
| 1 | Item | Poke Ball | Great Ball | Ultra Ball | Potion | Super Potion | Hyper Potion | Revive |
| 2 | Price | 200 | 600 | 1200 | 300 | 700 | 1200 | 1500 |
| 3 | Category | Balls | Balls | Balls | Medicine | Medicine | Medicine | Medicine |
A5 me Search Item aur A6 me Price likhein. Ab HLOOKUP se kisi item ki Price nikalte hain. B5 me Ultra Ball likhein, aur B6 me ye formula:
| A | B | C | D | E | F | G | H | |
|---|---|---|---|---|---|---|---|---|
| 1 | Item | Poke Ball | Great Ball | Ultra Ball | Potion | Super Potion | Hyper Potion | Revive |
| 2 | Price | 200 | 600 | 1200 | 300 | 700 | 1200 | 1500 |
| 3 | Category | Balls | Balls | Balls | Medicine | Medicine | Medicine | Medicine |
| 4 | ||||||||
| 5 | Search Item | Ultra Ball | ||||||
| 6 | Price | 1200 |
HLOOKUP, B1:H3 ki top row me Ultra Ball dhundhta hai aur use column D me paata hai. Table ki row 2 me prices hain, isliye wo D2 se 1200 return karta hai.
A me sirf labels hain, isliye use table range se bahar rakha gaya hai (B1:H3, A1:H3 nahi).Doosri row ki value nikalna
row_index_num badalne par aap doosri row ki value la sakte hain. Table ki row 3 me category hai.
A7 me label Category likhein, aur B7 me neeche wala formula. Phir B5 me Revive likhein:
| A | B | C | D | E | F | G | H | |
|---|---|---|---|---|---|---|---|---|
| 1 | Item | Poke Ball | Great Ball | Ultra Ball | Potion | Super Potion | Hyper Potion | Revive |
| 2 | Price | 200 | 600 | 1200 | 300 | 700 | 1200 | 1500 |
| 3 | Category | Balls | Balls | Balls | Medicine | Medicine | Medicine | Medicine |
| 4 | ||||||||
| 5 | Search Item | Revive | ||||||
| 6 | Price | 1500 | ||||||
| 7 | Category | Medicine |
Revive ki keemat 1500 hai, aur wo Medicine category me hai.
Jab match na mile
FALSE ke saath, agar value top row me nahi hai to HLOOKUP #N/A return karta hai. Price list me Max Potion nahi hai:
| A | B | C | D | E | F | G | H | |
|---|---|---|---|---|---|---|---|---|
| 1 | Item | Poke Ball | Great Ball | Ultra Ball | Potion | Super Potion | Hyper Potion | Revive |
| 2 | Price | 200 | 600 | 1200 | 300 | 700 | 1200 | 1500 |
| 3 | Category | Balls | Balls | Balls | Medicine | Medicine | Medicine | Medicine |
| 4 | ||||||||
| 5 | Search Item | Max Potion | ||||||
| 6 | Price | #N/A |
HLOOKUP ya XLOOKUP?
XLOOKUP function bhi horizontally kaam karta hai. Ise wo row do jisme dhundhna hai, aur wo row jisme se value return karni hai:
B5 me Ultra Ball hone par ye bhi 1200 return karta hai. XLOOKUP me row number nahi dena padta, aur ye by default exact match use karta hai.
Purane versions me HLOOKUP use karein, ya INDEX aur MATCH:
Ye bhi Ultra Ball ke liye 1200 return karta hai. INDEX MATCH ke baare me aur jaanne ke liye hamara Excel INDEX MATCH article padhein.
| Function | Row number chahiye? | Default match | Kaun se Excel me |
|---|---|---|---|
| HLOOKUP | Haan (row_index_num) | TRUE (approximate), isliye FALSE likhein | Purane versions me bhi |
| XLOOKUP | Nahi | Exact match | Microsoft 365, 2021, 2024, Excel for the web |
| INDEX + MATCH | Nahi (MATCH position nikalta hai) | 0 likhne par exact match | Purane versions me bhi |
Quick practice
- Upar wali price list
A1me paste karein. - B5 me
Great Balllikhein aur Price nikalne wala formula lagayein (jawab: 600). row_index_numko 3 karkeSuper Potionki category nikalein (jawab: Medicine).- Ab
Max Potionlikhein aur dekhein ki#N/Aaata hai. - Wahi price XLOOKUP aur INDEX MATCH se bhi nikalein.
Aksar puche jaane wale sawal (FAQ)
HLOOKUP aur VLOOKUP me kya fark hai?
VLOOKUP table ke pehle column me neeche ki taraf dhundhta hai, jabki HLOOKUP top row me right ki taraf dhundhta hai.
HLOOKUP me #N/A kyu aata hai?
FALSE ke saath, agar search value table ki top row me nahi milti to #N/A aata hai.
Range_lookup me FALSE likhna zaroori hai kya?
Ye optional hai, lekin chhodne par TRUE (approximate match) use hota hai, jo sorted na hone par galat result de sakta hai. Names aur items ke liye FALSE likhein.
Table range me labels wala column A kyu shamil nahi kiya?
HLOOKUP top row me dhundhta hai, aur column A me sirf labels hain. Isliye table range B1:H3 rakha gaya.
Summary
HLOOKUP table ki top row me search karta hai aur row_index_num se bataayi gayi row ki value return karta hai. Hamesha FALSE likhein taaki exact match mile. Naye Excel me XLOOKUP chhota aur aasan hai, aur har version me INDEX + MATCH bharosemand vikalp hai. Formula yaad rakhein: =HLOOKUP(lookup_value, table_array, row_index_num, FALSE).

Comments
Post a Comment