0
0

MS Excel — Logical & Conditional Functions

Introduction

MS Excel में logical और conditional functions users को conditions के आधार पर decisions लेने में मदद करते हैं। ये functions marksheets, attendance, salary calculations, और eligibility checks में काफ़ी ज़्यादा उपयोग होते हैं।

exams में यह pattern इसलिए test किया जाता है ताकि यह देखा जा सके कि candidates सिर्फ simple calculations ही नहीं, बल्कि decision-based spreadsheet logic को भी समझते हैं या नहीं।

Pattern: MS Excel — Logical & Conditional Functions

Pattern

मुख्य idea यह है कि logical tests का उपयोग करके conditions apply की जाएँ और condition TRUE या FALSE होने पर अलग-अलग results return किए जाएँ।

Step-by-Step Example

Question

कौन-सा MS Excel function किसी condition को check करता है और condition TRUE होने पर एक value तथा FALSE होने पर दूसरी value return करता है?

  • A. AND()
  • B. OR()
  • C. IF()
  • D. COUNTIF()

Solution

  1. Step 1: Requirement को समझें

    सवाल ऐसे function के बारे में है जो condition test करता है और result के आधार पर दो अलग-अलग outputs देता है।
  2. Step 2: Logical और conditional functions याद करें

    • AND() → सभी conditions TRUE हों तभी TRUE return करता है
    • OR() → किसी एक condition के TRUE होने पर TRUE return करता है
    • IF()TRUE और FALSE के लिए अलग-अलग value return करता है
    • COUNTIF() → condition के आधार पर cells की गिनती करता है
  3. Step 3: Requirement को सही function से match करें

    condition के आधार पर दो अलग-अलग results देने वाला function केवल IF() है।
  4. Final Answer:

    IF() → Option C
  5. Quick Check:

    IF(logical_test, value_if_true, value_if_false) इसका behaviour confirm करता है ✅

Quick Variations

• एक साथ multiple conditions check करना → AND()

• कम से कम एक condition check करना → OR()

• condition के आधार पर values count करना → COUNTIF()

• condition के आधार पर values add करना → SUMIF()

Trick to Always Use

  • Step 1 → पहचानें कि question TRUE/FALSE test के बारे में है या value-based result के बारे में।
  • Step 2 → keywords को match करें:
    • If condition then result → IF()
    • सभी conditions true हों → AND()
    • कोई एक condition true हो → OR()
    • Condition के साथ count → COUNTIF()

Summary

Summary

  • Logical functions Excel को automatically decisions लेने में मदद करते हैं।
  • IF() सबसे important और सबसे ज़्यादा tested conditional function है।
  • AND() और OR() multiple conditions को combine करने के लिए उपयोग होते हैं।
  • COUNTIF() और SUMIF() conditions को counting और addition पर apply करते हैं।

याद रखने का example:
IF marks ≥ 40 → Pass | Else → Fail

Practice

(1/5)
1. Which MS Excel function returns TRUE only when all given conditions are satisfied?
easy
A. AND()
B. OR()
C. IF()
D. COUNTIF()

Solution

  1. Step 1: Identify the logic requirement

    The function must check multiple conditions together.
  2. Step 2: Recall logical functions

    AND() returns TRUE only if all conditions are TRUE.
  3. Final Answer:

    AND() → Option A.
  4. Quick Check:

    AND(TRUE, TRUE) = TRUE; any FALSE makes it FALSE ✅
Hint: All conditions true = AND().
Common Mistakes: Using OR() when all conditions are required.
2. Which MS Excel function returns TRUE if at least one of the given conditions is satisfied?
easy
A. AND()
B. OR()
C. IF()
D. SUMIF()

Solution

  1. Step 1: Understand the condition

    The function should succeed even if one condition is TRUE.
  2. Step 2: Match with logical functions

    OR() returns TRUE when any one condition is TRUE.
  3. Final Answer:

    OR() → Option B.
  4. Quick Check:

    OR(FALSE, TRUE) = TRUE ✅
Hint: Any one true = OR().
Common Mistakes: Confusing OR() with AND().
3. Which MS Excel function is used to count the number of cells that satisfy a specific condition?
easy
A. COUNT()
B. SUM()
C. COUNTIF()
D. IF()

Solution

  1. Step 1: Identify the task

    The task is counting cells based on a condition.
  2. Step 2: Recall conditional counting functions

    COUNTIF() counts cells that meet a specified condition.
  3. Final Answer:

    COUNTIF() → Option C.
  4. Quick Check:

    COUNTIF(range, condition) applies condition-based counting ✅
Hint: Count with condition = COUNTIF().
Common Mistakes: Using COUNT() which ignores conditions.
4. Which MS Excel function adds values in a range only if they meet a specified condition?
medium
A. SUMIF()
B. SUM()
C. COUNTIF()
D. AVERAGE()

Solution

  1. Step 1: Understand the requirement

    The task involves addition with a condition.
  2. Step 2: Match with conditional sum function

    SUMIF() adds values that satisfy a condition.
  3. Final Answer:

    SUMIF() → Option A.
  4. Quick Check:

    SUMIF(range, criteria, sum_range) confirms conditional addition ✅
Hint: Sum with condition = SUMIF().
Common Mistakes: Using SUM() which adds all values.
5. Which MS Excel function can be used to display "Pass" if marks are 40 or above, otherwise "Fail"?
medium
A. AND()
B. OR()
C. COUNTIF()
D. IF()

Solution

  1. Step 1: Identify output-based decision

    The output changes based on a condition.
  2. Step 2: Match with conditional output function

    IF() returns different values for TRUE and FALSE.
  3. Final Answer:

    IF() → Option D.
  4. Quick Check:

    IF(marks≥40,"Pass","Fail") matches the requirement ✅
Hint: Condition with two outputs = IF().
Common Mistakes: Using AND/OR which only return TRUE/FALSE.

Mock Test

Ready for a challenge?

Take a 10-minute AI-powered test with 10 questions (Easy-Medium-Hard mix) and get instant SWOT analysis of your performance!

10 Questions
5 Minutes