OR Condition ka matlab hai ki do ya do se zyada conditions mein se koi ek condition TRUE ho to result TRUE ho sakta hai.
Excel mein OR condition ka use tab hota hai jab humein multiple possible conditions mein se kisi ek ke satisfy hone par data select ya analyze karna ho.
👉 Simple words mein:
OR = Koi bhi ek condition TRUE honi chahiye.
Maan lijiye student data hai:
| Student | Marks | Attendance |
|---|---|---|
| Amit | 85 | 70% |
| Rahul | 65 | 90% |
| Neha | 75 | 80% |
| Karan | 50 | 60% |
Condition:
Marks > 80
OR
Attendance > 85%
Result:
| Student | Marks | Attendance | Result |
|---|---|---|---|
| Amit | 85 | 70% | ✅ Selected |
| Rahul | 65 | 90% | ✅ Selected |
| Neha | 75 | 80% | ❌ |
| Karan | 50 | 60% | ❌ |
Amit ka Marks condition satisfy karta hai, jabki Rahul ka Attendance condition satisfy karta hai. Isliye dono select hote hain.
| Condition 1 | Condition 2 | OR Result |
|---|---|---|
| TRUE | TRUE | TRUE |
| TRUE | FALSE | TRUE |
| FALSE | TRUE | TRUE |
| FALSE | FALSE | FALSE |
AND → Sabhi conditions
OR → Koi bhi condition
Excel mein OR condition ke liye OR() function use kiya ja sakta hai.
=OR(condition1, condition2, ...)
=OR(A2>80,B2>85%)
Iska matlab:
Agar dono mein se koi ek condition TRUE hai, to formula TRUE return karega.
Advanced Filter mein different rows mein criteria likhne par generally OR relationship create hota hai.
Example:
| City | Marks |
|---|---|
| Delhi | >80 |
| Mumbai | >90 |
Iska meaning:
City = Delhi AND Marks > 80
OR
City = Mumbai AND Marks > 90
Yaani jo record pehli condition ya doosri condition satisfy karega, woh result mein aa sakta hai.
Maan lijiye sales data:
| Employee | Department | Sales |
|---|---|---|
| Amit | Sales | ₹80,000 |
| Rahul | HR | ₹90,000 |
| Neha | Sales | ₹45,000 |
| Pooja | Marketing | ₹70,000 |
Condition:
Department = Sales
OR
Sales > ₹85,000
Result:
| Employee | Department | Sales |
|---|---|---|
| Amit | Sales | ₹80,000 |
| Rahul | HR | ₹90,000 |
| Neha | Sales | ₹45,000 |
Yahan Amit aur Neha Sales department mein hain, aur Rahul ki sales ₹85,000 se zyada hain.
Custom AutoFilter mein bhi OR ka use kiya ja sakta hai.
Example:
Marks < 50
OR
Marks > 90
Agar marks hain:
45
65
75
92
95
Filtered result:
45
92
95
| AND Condition | OR Condition |
|---|---|
| Sabhi conditions satisfy honi chahiye | Koi ek condition satisfy ho sakti hai |
| More restrictive | Relatively less restrictive |
A AND B |
A OR B |
| TRUE only when all are TRUE | TRUE when at least one is TRUE |
AND:
Marks > 80 AND Attendance > 75%
Dono conditions required hain.
OR:
Marks > 80 OR Attendance > 75%
Koi ek condition satisfy ho to record qualify kar sakta hai.
OR condition ka use:
mein kiya ja sakta hai.
Leave a Reply