Lesson
09 of 26
Translate

Microsoft Excel

VLOOKUP, XLOOKUP, ROUND, MID, Pivot Tables, Data Validation, IF functions, cell references, and formulas for UPSSSC AGTA.

What is Microsoft Excel?

Microsoft Excel is a spreadsheet application developed by Microsoft. It is used for data entry, calculations, data analysis, charts, and reporting. An Excel file is called a Workbook and contains one or more Worksheets (sheets).

  • Default file extension: .xlsx (older: .xls)
  • A worksheet has rows (numbered 1, 2, 3…) and columns (lettered A, B, C…)
  • The intersection of a row and column is a Cell (e.g., cell B3 = column B, row 3)
  • Total rows in Excel: 10,48,576 | Total columns: 16,384 (XFD)

Cell References

TypeExampleBehavior when copied
RelativeA1Changes with position (default)
Absolute$A$1Never changes (locked)
Mixed$A1 or A$1Column or row locked, other changes

Absolute reference uses $ sign. Press F4 to toggle between reference types while editing a formula.


Essential Functions

Mathematical Functions

FunctionSyntaxPurposeExample
SUM=SUM(A1:A10)Adds valuesSum of A1 to A10
AVERAGE=AVERAGE(A1:A10)Mean valueAverage of range
ROUND=ROUND(3.456, 2)Rounds to digitsResult: 3.46
ROUNDUP=ROUNDUP(3.421, 1)Always rounds upResult: 3.5
ROUNDDOWN=ROUNDDOWN(3.789, 1)Always rounds downResult: 3.7
INT=INT(5.9)Integer part onlyResult: 5
MOD=MOD(10, 3)RemainderResult: 1
POWER=POWER(2, 3)ExponentResult: 8
MAX=MAX(A1:A10)Largest value
MIN=MIN(A1:A10)Smallest value

Counting Functions

FunctionPurpose
COUNTCounts cells with numbers only
COUNTACounts all non-empty cells
COUNTBLANKCounts empty cells
COUNTIFCounts cells matching a condition — =COUNTIF(A1:A10, ">50")

Text Functions

FunctionSyntaxResult
MID=MID("COMPUTER", 4, 3)PUT (start at 4th char, take 3)
LEFT=LEFT("HELLO", 3)HEL
RIGHT=RIGHT("HELLO", 2)LO
LEN=LEN("AGTA")4
TRIM=TRIM(" Hi ")”Hi” (removes extra spaces)
UPPER=UPPER("hello")HELLO
LOWER=LOWER("HELLO")hello
PROPER=PROPER("john doe")John Doe
CONCATENATE=CONCATENATE("Hi"," ","There")Hi There
SUBSTITUTE=SUBSTITUTE("Cat","C","B")Bat

Lookup Functions

VLOOKUP (Vertical Lookup)

VLOOKUP searches for a value in the first column of a table and returns a value from a specified column.

Syntax: =VLOOKUP(lookup_value, table_array, col_index_num, [range_lookup])

ParameterMeaning
lookup_valueValue to search for
table_arrayRange to search in
col_index_numColumn number to return (1, 2, 3…)
range_lookupFALSE = exact match, TRUE = approximate

Example: =VLOOKUP("Wheat", A2:C100, 3, FALSE) — finds “Wheat” in column A, returns value from column C.

HLOOKUP

Same as VLOOKUP but searches in the first row (horizontal).

XLOOKUP (Modern — Excel 365)

XLOOKUP is the newer, more flexible replacement for VLOOKUP/HLOOKUP.

Syntax: =XLOOKUP(lookup_value, lookup_array, return_array)

  • Can search left (VLOOKUP cannot)
  • No need to count column numbers
  • Handles errors with built-in if_not_found parameter

INDEX-MATCH

=INDEX(return_range, MATCH(lookup_value, lookup_range, 0)) — more flexible than VLOOKUP, can look in any direction.


Logical Functions

FunctionSyntaxPurpose
IF=IF(A1>50, "Pass", "Fail")Returns value based on condition
AND=AND(A1>10, B1<20)TRUE if ALL conditions are true
OR=OR(A1>10, B1<20)TRUE if ANY condition is true
NOT=NOT(A1>50)Reverses TRUE/FALSE
IFERROR=IFERROR(A1/B1, "Error")Returns custom value if error

Nested IF: =IF(A1>=90, "A", IF(A1>=75, "B", IF(A1>=60, "C", "F")))


Pivot Tables

A Pivot Table summarizes large datasets into a compact, interactive table.

  • Purpose: Quickly analyze data — sum, count, average by categories
  • Create: Select data → Insert tab → PivotTable
  • Components: Rows, Columns, Values (Sum/Count/Average), Filters
  • Example: From 10,000 sales records, instantly see total sales by state, by month, by product

Data Validation & Conditional Formatting

Data Validation

Restricts what can be entered in a cell:

  • Dropdown lists — select from predefined options
  • Number limits — only allow values between 1-100
  • Date range — only allow future dates
  • Custom formula — any rule you define
  • Access: Data tab → Data Validation

Conditional Formatting

Automatically highlights cells based on values:

  • Color cells above average in green
  • Highlight duplicates in red
  • Data bars, icon sets, color scales
  • Access: Home tab → Conditional Formatting

Charts

Chart TypeBest For
Bar/ColumnComparing values across categories
LineTrends over time
PieParts of a whole (percentages)
ScatterRelationship between two variables
AreaCumulative totals over time

Important Excel Shortcuts

ShortcutAction
Ctrl+;Insert current date
Ctrl+Shift+;Insert current time
F2Edit active cell
F4Toggle absolute/relative reference
Ctrl+`Show all formulas
Alt+=AutoSum
Ctrl+Shift+LToggle AutoFilter
Ctrl+TCreate table
Ctrl+DFill down
Ctrl+RFill right
Ctrl+Page Up/DownSwitch between sheets

Other Features

  • Freeze Panes: View → Freeze Panes — keeps headers visible while scrolling
  • Sort: Ascending (A-Z, 1-9) or Descending (Z-A, 9-1)
  • Filter: Show only rows matching criteria
  • Flash Fill: Auto-detects patterns (Ctrl+E)
  • Goal Seek: What-If analysis — finds input needed for desired output

Conditional Sum & Average Functions

FunctionSyntaxPurpose
SUMIF=SUMIF(range, criteria, sum_range)Adds values matching one condition
SUMIFS=SUMIFS(sum_range, criteria_range1, criteria1, criteria_range2, criteria2)Adds values matching multiple conditions
AVERAGEIF=AVERAGEIF(range, criteria, average_range)Average of values matching a condition
AVERAGEIFS=AVERAGEIFS(avg_range, criteria_range1, criteria1, ...)Average with multiple conditions

Example: =SUMIF(B2:B100, "Wheat", C2:C100) — sums all values in column C where column B is “Wheat”.


Additional Text Functions

FunctionDetails
CONCATModern replacement for CONCATENATE — =CONCAT(A1, " ", B1)
TEXTJOINJoins text with a delimiter, can ignore empty cells — =TEXTJOIN(", ", TRUE, A1:A5)
CLEANRemoves non-printable characters from text
TODAY()Returns current date (updates automatically)
NOW()Returns current date AND time (updates automatically)

Note: CONCATENATE is being replaced by CONCAT and TEXTJOIN in newer versions of Excel.


What-If Analysis Tools

What-If Analysis tools are found under the Data tab and help forecast outcomes:

ToolPurpose
Goal SeekFinds the input value needed to achieve a desired result (reverse calculation)
Data TablesShows how changing one or two variables affects a formula’s result
Scenario ManagerSaves and compares multiple sets of input values (best case, worst case, etc.)

Excel Interface Elements

ElementDescription
Name BoxShows the address of the selected cell (top-left corner of spreadsheet, e.g., “A1”)
Formula BarDisplays the content or formula of the currently selected cell (below the Ribbon)
Wrap TextDisplays cell content on multiple lines within the cell (Home tab)
Merge & CenterCombines multiple cells into one and centers the content (Home tab)
Flash Fill (Ctrl+E)Auto-detects data entry patterns and fills remaining cells accordingly

Excel File Formats

ExtensionDescription
.xlsxStandard Excel Workbook (default since 2007)
.xlsmMacro-enabled Workbook (contains VBA macros)
.xlsOlder Excel format (97-2003)
.csvComma-Separated Values (plain text, no formatting)
.xltxExcel Template (pre-designed workbook layout)
.xlsbExcel Binary Workbook (smaller file size)

Key Takeaways

  • Excel file = Workbook, sheets = Worksheets, intersection = Cell
  • Absolute reference (AA1) doesn’t change; Relative (A1) changes when copied
  • VLOOKUP searches first column (use FALSE for exact match); XLOOKUP is more flexible
  • MID extracts characters from middle of text; LEFT/RIGHT from start/end
  • ROUND rounds to specified decimal places
  • Pivot Tables summarize large data instantly
  • COUNTIF counts cells matching a condition; COUNTA counts non-empty cells
  • SUMIF/SUMIFS for conditional sums; AVERAGEIF for conditional averages
  • CONCAT replaces CONCATENATE; TEXTJOIN joins text with delimiters, can ignore blanks
  • TODAY() returns current date; NOW() returns current date and time
  • What-If Analysis: Goal Seek (reverse calculation), Scenario Manager, Data Tables
  • Flash Fill (Ctrl+E) auto-detects data patterns and fills cells
  • File formats: .xlsx (standard), .xlsm (macro-enabled), .csv (plain text)
  • Name Box shows cell address; Formula Bar shows cell content/formula
  • Wrap Text displays content on multiple lines; Merge & Center combines cells

Summary Cheat Sheet

ConceptKey Details
File Extension.xlsx (new), .xls (old)
Rows × Columns10,48,576 × 16,384
Absolute RefAA1 — locked, F4 to toggle
VLOOKUPSearches 1st column, FALSE = exact
XLOOKUPModern, flexible, searches any direction
MID=MID(text, start, length)
ROUND=ROUND(number, decimals)
COUNTIFCounts cells matching condition
IF=IF(condition, true_val, false_val)
Pivot TableSummarizes large datasets
Data ValidationRestricts cell input (dropdowns, limits)
Conditional FormattingAuto-highlights based on values
Freeze PanesKeeps headers visible
Ctrl+;Insert current date
F4Toggle cell reference type
SUMIF=SUMIF(range, criteria, sum_range) — conditional sum
SUMIFSMultiple conditions sum
AVERAGEIF=AVERAGEIF(range, criteria, avg_range) — conditional average
CONCATModern replacement for CONCATENATE
TEXTJOINJoins text with delimiter, ignores empty cells
TODAY()Returns current date (auto-updates)
NOW()Returns current date and time (auto-updates)
Goal SeekWhat-If Analysis — finds input for desired output
Scenario ManagerSaves/compares multiple input sets
Flash FillCtrl+E — auto-detects data patterns
Name BoxShows selected cell address (top-left)
Formula BarDisplays cell content or formula
Wrap TextMulti-line display within a cell
Merge & CenterCombines cells, centers content
.xlsxStandard Excel Workbook
.xlsmMacro-enabled Workbook
.csvComma-Separated Values (plain text)

Knowledge Check

Take a dynamically generated quiz based on the material you just read to test your understanding and get personalized feedback.

Lesson Doubts

Ask questions, get expert answers

Lesson Doubts is a Pro feature.Upgrade