=IF(logical_test, value_if_true, value_if_false), comparison operators (> 50, < 100, = 'Delhi'), aur Pass/Fail student result formula.
This lesson is a free preview. No account is needed to read it.
The video for this lesson has not been published yet. The written lesson below is the full material for this session.
=IF(logical_test, value_if_true, value_if_false), comparison operators (> 50, < 100, = 'Delhi'), aur Pass/Fail student result formula.
==================================================
Is chapter mein hum seekhenge:
Logical Functions kya hote hain?
TRUE aur FALSE ka meaning.
IF Function — condition ke basis par result.
Nested IF — multiple conditions.
AND Function — sabhi conditions TRUE honi chahiye.
OR Function — kam se kam ek condition TRUE honi chahiye.
NOT Function — logical result ko reverse karna.
IFS Function — multiple conditions ko aasani se check karna.
IF + AND, IF + OR, IF + NOT.
IFERROR ka introduction.
Real-life projects: student result, sales bonus, attendance aur eligibility.
Common errors, practice questions aur answer key. ==================================================
LOGICAL FUNCTIONS KYA HOTE HAIN? ==================================================
Logical Functions kisi condition ko check karte hain aur uske result ke basis par output dete hain.
Examples:
Example:
=A1>=50
Agar A1 mein 75 hai, result TRUE hoga.
Agar A1 mein 30 hai, result FALSE hoga.
Important comparison operators:
= Equal to
<> Not equal to
Greater than
< Less than
= Greater than or equal to
<= Less than or equal to
Examples:
=A1=100
=A1<>0
=A1>50
=A1<50
=A1>=33
=A1<=100
[!NOTE] Note: Formula mein text ko double quotation marks mein likhte hain, jaise "PASS".
==================================================
TRUE ka matlab condition sahi hai.
FALSE ka matlab condition sahi nahi hai.
Example data:
A1 = 80
A2 = 25
Formula: =A1>50
Result: TRUE
Formula: =A2>50
Result: FALSE
Formula: =A1=80
Result: TRUE
Formula: =A2<>25
Result: FALSE
TRUE aur FALSE logical values hain. Inka use IF, AND, OR, NOT aur doosre logical formulas mein hota hai.
==================================================
IF function kisi condition ko check karta hai aur condition TRUE ya FALSE hone par alag-alag result deta hai.
Syntax:
=IF(logical_test, value_if_true, value_if_false)
Parts:
A2 mein marks hain.
=IF(A2>=33,"PASS","FAIL")
Agar A2 = 75, result PASS.
Agar A2 = 20, result FAIL.
Agar A2 = 33, result PASS.
Example 2: Adult ya Minor ki jagah generic age eligibility
=IF(A2>=18,"Eligible","Not Eligible")
Example 3: Sales target
A2 mein sales aur B2 mein target hai.
=IF(A2>=B2,"Target Achieved","Target Not Achieved")
Example 4: Bonus
A2 mein sales amount hai.
=IF(A2>=50000,5000,0)
Sales 50,000 ya zyada hui to 5,000 bonus; warna 0.
Example 5: Discount
=IF(B2>=10000,B2*10%,0)
Agar B2 ki value 10,000 ya zyada hai, to 10% discount; otherwise zero.
Example 6: Cell blank hai ya nahi
=IF(A2="","Blank","Filled")
Example 7: Payment status
=IF(C2="Paid","Complete","Pending")
[!NOTE] Note: Agar cells mein extra spaces ya inconsistent spelling hai, to result expected se alag aa sakta hai.
==================================================
IF FUNCTION KE PRACTICAL RULES ==================================================
Formula hamesha = se start hota hai.
Text output ko double quotes mein likho: "PASS".
Number ko normally quotes ke bina likho: 100.
Logical test mein comparison operator use kar sakte ho.
Text conditions mein spelling aur spaces ka dhyan rakho.
Excel ke regional settings ke hisaab se argument separator comma (,) ki jagah semicolon (;) ho sakta hai.
Excel mein IF ke andar doosra IF use karna possible hai.
Formula ko neeche copy karne se relative references update hote hain. ==================================================
NESTED IF — MULTIPLE RESULTS
[!TIP] Open Microsoft Excel 365 / 2024 on your computer right now and practice each step described above. Memorize the keyboard shortcuts and try them in a fresh worksheet.
Practice live Excel formulas directly in your browser. Real calculation verified by HyperFormula.
Calculate total revenue in cell D6 by summing all items in column D (cells D2 to D5).
Every formula you enter is evaluated by a real spreadsheet engine in your browser — results are not pre-computed.
| # | A | B | C | D |
|---|---|---|---|---|
| 1 | Product | Quantity | Unit Price | Total |
| 2 | Laptop | 5 | 45000 | 225000 |
| 3 | Mouse | 20 | 500 | 10000 |
| 4 | Keyboard | 15 | 1200 | 18000 |
| 5 | Monitor | 8 | 12500 | 100000 |
| 6 | Grand Total |
5 challenging business logic and decision-making formula questions.
This quiz has 5 questions. Sign in to answer them — results are saved to your account.
Sign in to attemptSign in to submit your work for this assignment.
Stuck on a formula or edge case? Ask questions, upvote solutions, and earn community XP.
No questions yet on this lesson
Be the first to ask a doubt or start a discussion with peers and mentors!
Module 8: Mathematical & Statistical Functions
Module 9: Conditional Functions & Criteria-Based Analysis