Consider the following MS-Excel spreadsheet in which the population column represents the city's population in millions of people : Suppose the formula - IF($B2 = D$1, $A2, 0) is entered into cell D2 and then the cell D2 is copied and pasted to D2 : F9. How many cells in the range D2 : F9 contains 0?A B C D E F 1. City State Population Haryana MP UP 2. Patiala Panjab 8.34 3. Sonipat Haryana 3.86 4. Noida UP 2.71 5. Indore MP 2.16 6. Mandi HP 1.49 7. Sagar MP 1.38 8. Panipat Haryana 1.39 9. Gwalior MP 1.24
18
The problem asks us to determine the number of cells that will contain the value 0 within a specific range (D2:F9) of an MS-Excel spreadsheet after a formula is entered into cell D2 and then copied to the entire range.
The given spreadsheet contains data about cities, their states, and population. The formula provided is IF($B2 = D$1, $A2, 0).
The formula uses the IF function, which has the structure IF(logical_test, value_if_true, value_if_false).
Let's analyze the cell references used in the formula and how they behave when copied:
The formula IF($B_{current\_row} = Current\_column\$1$, $A_{current\_row}$, 0) is copied into the range D2:F9. This range includes cells in columns D, E, and F, and rows 2 through 9. There are 3 columns and 8 rows in this range, making a total of $3 \times 8 = 24$ cells.
The condition $B_{current\_row} = Current\_column\$1$ checks if the State listed in column B of the current row matches the State abbreviation found in row 1 of the current column (D1, E1, or F1). If the condition is TRUE, the cell will contain the City name from column A (e.g., $A2, A3, ...$); if the condition is FALSE, the cell will contain 0.
We need to count how many times the condition is FALSE in the range D2:F9.
Let's list the states in column B for rows 2 through 9 and the states in row 1 for columns D, E, and F:
The condition is `$B_{row} = 'Haryana'$` for rows 2 through 9.
Number of cells containing 0 in Column D: 6 (D2, D4, D5, D6, D7, D9)
The condition is `$B_{row} = 'MP'$` for rows 2 through 9.
Number of cells containing 0 in Column E: 5 (E2, E3, E4, E6, E8)
The condition is `$B_{row} = 'UP'$` for rows 2 through 9.
Number of cells containing 0 in Column F: 7 (F2, F3, F5, F6, F7, F8, F9)
The total number of cells in the range D2:F9 that contain 0 is the sum of the counts from each column:
Total 0s = (0s in Col D) + (0s in Col E) + (0s in Col F)
Total 0s = 6 + 5 + 7 = 18
Thus, 18 cells in the range D2:F9 will contain the value 0 after the formula is copied.
| Cell Range | Column Header (Row 1) | Rows where $B_{row}$ Matches Header (Non-Zero Result) | Count of Non-Zero Results | Count of Zero Results (Total Rows - Non-Zero Count) |
|---|---|---|---|---|
| D2:D9 | Haryana | 3, 8 | 2 | 8 - 2 = 6 |
| E2:E9 | MP | 5, 7, 9 | 3 | 8 - 3 = 5 |
| F2:F9 | UP | 4 | 1 | 8 - 1 = 7 |
Total cells containing 0 = 6 + 5 + 7 = 18.
| Concept | Description | Example from Problem |
|---|---|---|
| Relative Reference | Changes row and/or column when copied (e.g., A1) | Used partially in B2, D1, A2 (the number part) |
| Absolute Reference | Stays fixed when copied ($A$1) | Not used entirely, but parts are used in mixed references ($B, $A, $1) |
| Mixed Reference | Either column or row is fixed ($A1$ or A$1$) | $B2$ (col fixed, row relative), D$1$ (col relative, row fixed), $A2$ (col fixed, row relative) |
| IF Function | Performs a logical test and returns one value for TRUE, another for FALSE | IF(condition, true_value, false_value) |
| Range | A block of cells specified by top-left and bottom-right cell references | D2:F9 |
Mixed references are very useful when you need part of a formula reference to change and part to stay fixed as you copy it across a spreadsheet. The dollar sign ($) is the key indicator.
In this problem, $B2 locks onto column B but moves down rows, D$1 locks onto row 1 but moves across columns, and $A2 locks onto column A but moves down rows. This setup effectively allows the formula in each cell of D2:F9 to check if the state in its row (from column B) matches the state header in its column (from row 1).
Suppose that the class grade for a six-week period is based on three tests (T1, T2, T3), each of which counts for 15%, four quizzes (Q1, Q2, Q3, Q4), each of which counts for 10%. and a homework note book (HW), which counts for 15%. The grades are recorded in a spreadsheet similar to the one below.
| A | B | C | D | E | F | G | H | I | J | |
| 1 | Name | T1 | T2 | T3 | Q1 | Q2 | Q3 | Q4 | HW | AVG |
| 2 | Jatin | 87 | 92 | 80 | 76 | 79 | 87 | 74 | 90 | |
| 3 | Amit | 91 | 85 | 77 | 78 | 88 | 96 | 90 | 92 | |
| 4 | Anil | 65 | 72 | 70 | 80 | 81 | 74 | 77 | 80 | |
| 5 | Anita | 96 | 88 | 91 | 76 | 91 | 100 | 74 | 98 |
Which of the following formulae would NOT be a correct calculation of the six-week weighted average for Jatin?
Consider the following spreadsheet:
| A | B | C | |
| 1 | 4 | 3 | |
| 2 | 5 | 2 | |
| 3 | 7 | ||
| 4 | 8 | 9 | |
| 5 | 9 | ||
| 6 |
If the formula = $A3 + B2 in cell C4 is copied to cell C5, then what is the value in cell C5?
Given below are two statements:
Statement I: Shareware is a software that the users can try out for a trial period only. before being charged.
Statement II: Freeware is a software that the users can download free of charge. but they cannot modify the source code in any way.
In the light of the above statements. choose the correct answer from the options given below
In MS-EXCEL, Cell B9 contains the value 3, and B10 contains the value 6. You select both the cells and drag the fill handle down to B13. The contents of the cell B11, B12, and B13 will be ________