RankBoltRank higher. Grow faster.
Home › UGC-NET › Teaching & Research Aptitude › 16 January 2025 (Shift 1)

Consider the following MS-EXCEL function entered in cell

UGC-NET · Teaching & Research Aptitude16 January 2025 (Shift 1)Question 36Answer key not yet verified

Consider the following MS-EXCEL function entered in cell Cl: = IF (A1>B1, 1, IF (A1=10, 2, IF(A1<B1, 3, 4))) The above function will return a value of 4 in cell C1 if the values in cell A1 and cell B1 are ............ respectively
  1. A
    11 and 10
  2. B
    9 and 10
  3. C
    11 and 11
    ✓ Correct
  4. D
    10 and 10

Answer: option C — 11 and 11

Detailed solution

Correct Answer

C. 11 and 11

Explanation

A nested IF is an IF placed inside another IF. Excel checks it from the outside inwards. It stops at the first condition that is TRUE.

The value 4 sits in the innermost value_if_false. So it is returned only when all three tests fail, one after another:

Conditions 1 and 3 together force A1 = B1. Condition 2 says this common value cannot be 10.

The pair 11 and 11 passes all three checks. 11 > 11 is FALSE. 11 = 10 is FALSE. 11 < 11 is FALSE. So the formula falls to the last argument and returns 4.

Note that the order of tests matters. The trap here is that the equality test compares A1 with the constant 10, not with B1. So for 10 and 10, the formula still returns 2.

Key Points
Why the other options are incorrect
A
11 and 10→The very first test is TRUE, because 11 > 10. So the function returns 1 and never reaches the nested IFs.
B
9 and 10→9 > 10 is FALSE and 9 = 10 is FALSE. But 9 < 10 is TRUE, so the third test fires. The result is 3.
D
10 and 10→A1 is not greater than B1, so the second test is reached. There A1=10 is TRUE. So the function returns 2, not 4.
Remember

In nested IFs, the last value_if_false is the "none of the above" branch. Make every condition fail to reach it.

Sit the whole UGC-NET 16 January 2025 (Shift 1) paper — in the printed order, on the official clock, with every answer explained when you submit.

Start this paper →

30 free practice questions every day. 1 real full-length paper free, no login to start.

⬇ Download this paper's solutions as a PDF — free

Every solved question of this paper with its answer and step-by-step solution, in one printable file. Free with a RankBolt account.

More questions from this paper

All questions of UGC-NET 16 January 2025 (Shift 1) →