17.3 MS Excel Formulas, Functions, Sorting & Charting
Key Takeaways
Relative references like
A1shift automatically when copied, absolute references like$A$1lock both column and row, and mixed references like$A1orA$1lock only one coordinateCOUNTcounts numeric entries in a range.COUNTAcounts cells containing information, including text and formulas returning an empty string.Number formatting can hide extra decimal places without changing an underlying value.
ROUNDreturns a rounded result for use in later formulas.Column/Bar charts compare discrete categories, Line charts track trends over time, and Pie charts display proportional shares of a single whole
Use a sample temple receipts or lease collection worksheet to practise the spreadsheet task in the APPSC Computer Proficiency Test (CPT). These examples use Excel for Windows desktop. Annexure II permits equivalent spreadsheet software. Accuracy depends on mastering cell referencing, built-in functions, data controls, and clear visualization.
Worksheet Layout and Cell Referencing
Workbook Structure and Formula Syntax
An Excel workbook (.xlsx) contains one or more tabbed worksheets. Each worksheet forms a grid of vertical columns (A, B, C) and horizontal rows (1, 2, 3), intersecting at individual cells identified by coordinates such as B4. Selecting multiple adjacent cells defines a range written with a colon, such as B2:B15, while cross-sheet references prefix the sheet name with an exclamation mark (for example, Budget!C5).
Enter an Excel formula with an equals sign (=). In ordinary arithmetic with positive operands, exponentiation precedes multiplication and division, which precede addition and subtraction. Operations with equal precedence are evaluated left to right. Use parentheses to make expressions with negation, percentages or mixed operations explicit.
Relative, Absolute, and Mixed Cell References
Understanding how cell addresses behave when copied via the Fill Handle or Ctrl+C / Ctrl+V is useful when applying the same calculation to several rows. Pressing F4 while editing a cell reference cycles through the four reference modes:
- Relative Reference (e.g.,
A1orB2*C2): Contains no dollar signs ($). Each coordinate adjusts by the offset in that direction. Copying only down changes row numbers, and copying only across changes column letters. Copying=B2*C2from row 2 to row 3 automatically updates it to=B3*C3. - Absolute Reference (e.g.,
$A$1): Places a dollar sign ($) before both the column letter and row number, locking the reference completely. To apply a fixed 8% practice rate held in cellF1across twenty rows, writing=B2*$F$1inC2and copying down keeps$F$1fixed on every row (=B3*$F$1,=B4*$F$1). - Mixed Reference (e.g.,
$A1orA$1): Locks only one coordinate.$A1locks columnAwhile letting the row adjust when copied vertically;A$1locks row1while letting the column shift when copied horizontally—ideal for two-dimensional fee or cess multiplication tables.
Essential MS Excel Functions and Error Diagnostics
Aggregation, Conditional, Lookup, and Rounding Functions
Functions simplify complex ledger math and eliminate manual errors. Notice the critical difference between COUNT (counts numeric entries only, ignoring text and blanks) and COUNTA (counts cells containing information, including text, errors and a formula returning an empty string). Similarly, ROUND(number, num_digits) returns a rounded result without changing the original input cell. Decimal-place display controls leave the result used by subsequent formulas unchanged.
For retrieving values across tables, VLOOKUP(lookup_value, table_array, col_index_num, [range_lookup]) searches the leftmost column of table_array and returns a value from col_index_num; always pass FALSE (or 0) as the fourth argument for an exact match on ID codes or survey numbers. Modern Excel also provides XLOOKUP(lookup_value, lookup_array, return_array), which searches in any direction (left or right) and defaults to an exact match.
| Function Category | Exact Formula Example | Purpose and Endowment Office Application |
|---|---|---|
| Total & Average | =SUM($B$2:$B$10) / =AVERAGE(B2:B10) | Totals or averages locked/unlocked income ranges across months |
| Extremes | =MIN(C2:C20) / =MAX(C2:C20) | Identifies lowest and highest shop-rent bids in an auction sheet |
| Counting | =COUNT(D2:D50) vs. =COUNTA(A2:A50) | Counts numeric payment entries vs. all non-empty temple names |
| Conditional Count | =COUNTIF(E2:E50, "Overdue") | Counts how many leaseholders currently have "Overdue" status |
| Conditional Sum | =SUMIF(B2:B20, "Hundi", C2:C20) | Sums income in C2:C20 only where category B2:B20 equals "Hundi" |
| Logical Test | =IF(D2>0.30, "Exceeds Cap", "Within Limit") | Flags a ratio above an assumed practice threshold of 30% |
| Exact Lookup | =VLOOKUP(A2, $F$2:$H$25, 3, FALSE) | Fetches column 3 grade from a locked lookup table using ID in A2 |
| Rounding | =ROUND(B2*0.03, 2) | Rounds an illustrative 3% calculation to two decimal places |
Recognizing Excel error indicators prevents broken reports: #DIV/0! occurs when dividing by zero or a blank cell; #NAME? signals a misspelled function name or unquoted text string; #VALUE! appears when mixing incompatible data types (such as adding text to a number); #REF! indicates a referenced row or column was deleted; and a row of # characters may mean the column is too narrow or a date/time value is negative.
Formatting, Sorting, Filtering, Validation, and Charting
Number Formatting, Conditional Formatting, and Data Validation
Number Formatting (Ctrl+1) controls how values appear—such as Currency (₹#,##0.00), Percentage (0.00%, displaying 0.30 as 30.00%), Date (DD-MM-YYYY), or Text (preserving leading zeros in bank account numbers or survey codes)—to suit the data. Apply Text format before entering an identifier when its leading zeros are significant. Conditional Formatting automatically highlights cells matching dynamic rules, such as shading overdue lease balances red or applying Data Bars to compare expenditure magnitudes visually.
Data Validation (Data > Data Validation) can restrict typed entries in a cell when configured with a Stop alert—for instance, creating a dropdown List (Class A, Class B, Class C), enforcing positive whole numbers, or limiting dates to the current financial year, complete with custom Error Alerts.
Multi-Level Sorting, AutoFilter, Freeze Panes, and Charts
For large endowment registries, Sorting orders rows alphabetically (A–Z / Z–A) or numerically (Smallest to Largest). Multi-Level Sort (Data > Sort > Add Level) sorts hierarchically—for example, ordering records first by District (A–Z) and then by Annual Income (Largest to Smallest). AutoFilter (Ctrl+Shift+L) places dropdown arrows on header cells to display only rows meeting selected criteria (such as institutions earning above ₹20,00,000). To keep column headings or institution names visible while scrolling long registers, apply Freeze Panes (View > Freeze Panes—choosing Freeze Top Row, Freeze First Column, or freezing above and left of the active cell).
Finally, Charts summarize spreadsheet tables visually. Select the right chart type for the data story, and include a descriptive title. Label axes and units on charts with axes, and use a legend or data labels when needed to identify series or slices:
- Column or Bar Chart: Best for comparing discrete categories side by side (for example, annual income across six temples).
- Line Chart: Best for displaying continuous trends over time (such as monthly hundi collections across 12 months).
- Pie Chart: Best for illustrating proportional parts of a single whole summing to 100% (such as splitting one institution's net balance across establishment, pilgrim amenities, and repairs—kept to five or six slices for legibility).
Timed Spreadsheet Practice
Arrange sample receipts in an Excel table with fields for date, institution, receipt type and amount. Add a calculated column, using an absolute reference for a rate shared by all rows. Apply a conditional format to highlight amounts meeting a stated criterion. Sort by institution and date, group subtotals by institution, and check that all rows stayed together during the sort. Copy the sample date sequence with AutoFill and set the number format separately from the stored values. In a district list that must follow an office-defined order, use a custom sort list. Before printing a wide register, set the print area, check column widths and page breaks, and inspect Print Preview. Add the next month to the source range and verify the chart includes it. Save the full workbook before exporting a separate CSV for data exchange. CSV does not carry workbook features such as formulas, formatting, charts or multiple sheets. Worksheet protection controls editing of locked cells in a practice file. It does not provide the access control of an encrypted file.
Sources checked 21 November 2026: Excel formulas and reference types, Excel function documentation, Excel formula error diagnostics, Excel data validation, custom number formats and custom filling and sorting lists.
In a practice lease worksheet, B2 holds the first amount and F1 holds a fixed rate of 3%. Which formula in C2 uses a fully relative amount reference and locks both coordinates of the rate reference?
=B2*$F$1
=$B$2*F1
=B2*F1
=$B2*F$1
Suppose cells A1:A5 contain 100, 250, "Exempt", 0, and an empty blank cell respectively. What values do =COUNT(A1:A5) and =COUNTA(A1:A5) return?
4 and 4
2 and 5
3 and 4
3 and 5
An Executive Officer needs to present a 12-month trend of monthly hundi collections from April to March on a single chart. Which MS Excel chart type communicates this time-series progression most effectively?
Pie chart
Line chart
Radar chart
Doughnut chart
Sections you finish are checked off in the contents.
You've completed this section
Continue exploring other exams