Excel Reference Guide for Data Analytics
Essential Functions
Basic Calculations
SUM(range)
- Adds all numbers in a rangeAVERAGE(range)
- Calculates the arithmetic meanCOUNT(range)
- Counts cells containing numbersCOUNTA(range)
- Counts non-empty cellsMAX(range)
- Returns the largest valueMIN(range)
- Returns the smallest value
Common Syntax
=FUNCTION(argument1, [argument2], ...)
- Arguments in square brackets are optional
- Use comma (,) to separate arguments
- Use colon (:) for ranges (A1:A10)
Data Cleaning Functions
Removing Whitespace
TRIM(text)
- Removes extra spacesCLEAN(text)
- Removes non-printing characters
Case Manipulation
UPPER(text)
- Converts to uppercaseLOWER(text)
- Converts to lowercasePROPER(text)
- Capitalizes first letter of each word
Data Validation
ISNUMBER(value)
- Checks if value is a numberISTEXT(value)
- Checks if value is textISBLANK(value)
- Checks if cell is empty
Error Handling
IFERROR(value, value_if_error)
- Returns alternative if errorIFNA(value, value_if_na)
- Returns alternative if #N/A
Lookup and Reference Functions
VLOOKUP
=VLOOKUP(lookup_value, table_array, col_index_num, [range_lookup])
Example:
=VLOOKUP("John", A2:C100, 2, FALSE)
INDEX-MATCH
=INDEX(return_array, MATCH(lookup_value, lookup_array, 0))
Example:
=INDEX(B2:B100, MATCH("John", A2:A100, 0))
XLOOKUP (Excel 365)
=XLOOKUP(lookup_value, lookup_array, return_array, [missing], [match_mode])
Example:
=XLOOKUP("John", A2:A100, B2:B100, "Not Found", 0)
Statistical Functions
Basic Statistics
MEDIAN(range)
- Middle valueMODE.SNGL(range)
- Most frequent valueSTDEV.P(range)
- Population standard deviationVAR.P(range)
- Population varianceCORREL(array1, array2)
- Correlation coefficient
Advanced Statistics
PERCENTILE.INC(array, k)
- kth percentileQUARTILE.INC(array, quart)
- Specified quartileRANK.EQ(number, ref, [order])
- Rank of a number
Text Functions
Text Manipulation
LEFT(text, num_chars)
- Extracts characters from leftRIGHT(text, num_chars)
- Extracts characters from rightMID(text, start_num, num_chars)
- Extracts from middleCONCATENATE(text1, [text2], ...)
- Joins text strings&
- Text join operatorSUBSTITUTE(text, old_text, new_text, [instance_num])
Text Analysis
LEN(text)
- Returns length of stringFIND(find_text, within_text, [start_num])
- Returns positionSEARCH(find_text, within_text, [start_num])
- Case-insensitive FIND
Date & Time Functions
Date Calculations
TODAY()
- Current dateNOW()
- Current date and timeDATEDIF(start_date, end_date, unit)
- Difference between datesEDATE(start_date, months)
- Date months awayWORKDAY(start_date, days, [holidays])
- Workday date
Date Components
YEAR(date)
- Year componentMONTH(date)
- Month componentDAY(date)
- Day componentWEEKDAY(date, [return_type])
- Day of week
Logical Functions
Basic Logic
=IF(logical_test, value_if_true, value_if_false)
Nested Logic
=IF(test1, value1,
IF(test2, value2,
IF(test3, value3, value_if_all_false)))
Multiple Conditions
AND(logical1, [logical2], ...)
- TRUE if all TRUEOR(logical1, [logical2], ...)
- TRUE if any TRUENOT(logical)
- Inverts logical value
Power Query Basics
Common Transformations
- Remove Columns
- Filter Rows
- Change Type
- Replace Values
- Group By
- Pivot/Unpivot
- Merge Queries
- Append Queries
M Formula Language Example
let
Source = Excel.CurrentWorkbook(){[Name="Table1"]}[Content],
#"Changed Type" = Table.TransformColumnTypes(Source,{
{"Date", type date},
{"Value", type number}}),
#"Filtered Rows" = Table.SelectRows(#"Changed Type",
each [Value] > 0)
in
#"Filtered Rows"
PivotTables
Creation Steps
- Select data range
- Insert → PivotTable
- Choose fields for:
- Rows
- Columns
- Values
- Filters
Common Value Calculations
- Sum
- Count
- Average
- Min/Max
- % of Total
- Running Total
Keyboard Shortcuts
Navigation
Ctrl + Arrow
- Move to edge of dataCtrl + Home
- Go to beginning of worksheetCtrl + End
- Go to last cell with dataAlt + Page Down/Up
- Move one screen right/leftF5
- Go to specific cell
Selection
Shift + Arrow
- Extend selectionCtrl + Space
- Select entire columnShift + Space
- Select entire rowCtrl + A
- Select allCtrl + Shift + Arrow
- Select to edge of data
Editing
Ctrl + C
- CopyCtrl + X
- CutCtrl + V
- PasteCtrl + Z
- UndoCtrl + Y
- RedoF2
- Edit cellAlt + Enter
- New line in cell
Formatting
Ctrl + 1
- Format cells dialogCtrl + B
- BoldCtrl + I
- ItalicCtrl + U
- UnderlineAlt + H + H
- Fill colorAlt + H + FC
- Font color
Data
Ctrl + T
- Create tableAlt + A + T
- FilterAlt + A + C
- Clear filterF11
- Create new chartAlt + F1
- Create embedded chart
Formula Bar
F4
- Toggle absolute/relative referencesCtrl + Shift + Enter
- Array formula (pre-365)Alt + =
- AutoSumCtrl + Shift + U
- Expand/collapse formula bar
Window Management
Ctrl + N
- New workbookCtrl + O
- Open workbookCtrl + S
- SaveCtrl + W
- Close windowCtrl + Tab
- Switch between workbooksAlt + Tab
- Switch between applications