Excel CheatSheet


 


Keyboard Shortcuts

Excel for WindowsExcel for MacShortcut Description
Ctrl+HomeFn+Ctrl+Left ArrowNavigates to cell A1 of the given worksheet.
Ctrl+Right ArrowCtrl+Right ArrowNavigates to the right edge of the current row, in the current data region.
Ctrl+Left ArrowCtrl+Left ArrowNavigates to the left edge of the current row, in the current data region.
Ctrl+Up ArrowCtrl+Up ArrowNavigates to the top edge of the current column, in the current data region.
Ctrl+Down ArrowCtrl+Down ArrowNavigates to the bottom edge of the current column, in the current data region.
Ctrl+EndCtrl+EndNavigates to the last cell used in the current worksheet.

Selecting Cells

Excel for WindowsExcel for MacShortcut Description
Ctrl+SpacebarCtrl+SpacebarSelects an entire worksheet column.
Shift+SpacebarShift+SpacebarSelects an entire worksheet row.
Ctrl+Shift+Up ArrowCtrl+Shift+Up ArrowExtends the selection of cells to the last cell at the top edge of the current data region.
Ctrl+Shift+Down ArrowCtrl+Shift+Down ArrowExtends the selection of cells to the last cell at the bottom edge of the current data region.
Ctrl+Shift+Right ArrowCtrl+Shift+Right ArrowExtends the selection of cells to the last cell at the right edge of the current data region.
Ctrl+Shift+Left ArrowCtrl+Shift+Left ArrowExtends the selection of cells to the last cell at the left edge of the current data region.
Ctrl+Shift+HomeFn+Ctrl+Right ArrowExtends the selection of cells up and to the left, to cell A1.
Ctrl+Shift+EndFn+Ctrl+Shift+Right ArrowExtends the selection of cells down and to the right, to the last used cell in the worksheet.
Ctrl+ACommand+ASelects all the cells in the current data region of the worksheet.

Editing Cells

Excel for WindowsExcel for MacShortcut Description
Ctrl+CCommand+CCopies the selected cells or content.
Ctrl+VCommand+VPastes the copied cells or content.
Ctrl+Alt+VCommand+Ctrl+VDisplays the Paste Special dialog box; available only after something has been copied to the clipboard.
Ctrl+XCommand+XCuts the selected cells or content.
Ctrl+FCommand+FDisplays the Find and Replace dialog, with the Find tab selected.
Ctrl+HCtrl+HDisplays the Find and Replace dialog, with the Replace tab selected.

Formatting Cells

Excel for WindowsExcel for MacShortcut Description
Ctrl+1Ctrl+1Displays the format cells dialog box.
Ctrl+BCommand+BApplies or removes bold formatting.
Ctrl+UCommand+UApplies or removes underline formatting.
Ctrl+ICommand+IApplies or removes italic formatting.

Editing Data & Formulas

Excel for WindowsExcel for MacShortcut Description
Alt+EnterCtrl+Option+ReturnMoves the cursor to a new line in the cell being edited.
Shift+Right ArrowShift+Right ArrowSelects a character to the right of cursor.
Shift+Left ArrowShift+Left ArrowSelects a character to the left of cursor.
F2Control+UEdits (places the cursor in) the active cell.
F9Fn+F9Calculates all worksheets in all open workbooks.
F4F4Cycles through combinations of absolute and relative references for the selected cell reference.

Working With Worksheets & Workbooks

Excel for WindowsExcel for MacShortcut Description
Ctrl+OCommand+ODisplays the menu for opening a workbook.
Ctrl+NCommand+NCreates a new workbook.
Ctrl+WCommand+WCloses the active workbook window.
Ctrl+SCommand+SSaves the current workbook.
Shift+F11Fn+Shift+F11Inserts a new worksheet.

Miscellaneous

Excel for WindowsExcel for MacShortcut Description
Ctrl+ZCommand+ZUndo last action.
Ctrl+YCommand+YRedo last action.
Ctrl+Shift+LCommand+Shift +FAdds or removes Autofilters from the current data region.
Ctrl+TCtrl+TInserts a table based on either the current selection or the current data region.
Alt+F11Fn+Option+F11Displays the VBA Editor.
F1F1Displays the Excel Help task pane.
F7F7Displays the Spellcheck dialog box.

The 10% of Excel Functions You’ll Use 99% of the Time

Brackets surrounding an argument in function syntax (e.x., [argument1]) indicate that the argument is optional.

Date & Time Functions

FunctionDescriptionSyntax
DATEReturns a date based on inputs of year, month, and day.DATE(year,month,day)
DATEDIFCalculates the number of days, months, or years between two dates.DATEDIF(start_date,end_date,unit)
DAYConverts a date value to a day of the month.DAY(serial_number)
EOMONTHReturns the date value of the last day of the month before or after a specified number of months.EOMONTH(start_date, months)
MONTHConverts a date value to a month.MONTH(serial_number)
NETWORKDAYSReturns the number of whole workdays between two dates.NETWORKDAYS(start_date, end_date, [holidays])
NOWReturns the current date and time.NOW() - The NOW function syntax has no arguments.
TODAYReturns today's date.TODAY() - The TODAY function syntax has no arguments.
WEEKDAYConverts a date value to a day of the week.WEEKDAY(serial_number,[return_type])
YEARConverts a date value to a year.YEAR(date_value)

Financial Functions

FunctionDescriptionSyntax
FVReturns the future value of an investment based on periodic, constant payments and a constant interest rate.FV(rate,num_periods,payment,[present_value],[type])
PMTCalculates the payment on a loan based on constant payments and a constant interest rate.PMT(rate, num_periods, present_value, [future_value], [type])

Information Functions

FunctionDescriptionSyntax
ISBLANKChecks whether a value is blank, and returns TRUE or FALSE.ISBLANK(value)
ISERRORChecks whether a value is an error, and returns TRUE or FALSE.ISERROR(value)
ISNUMBERChecks whether a value is a number, and returns TRUE or FALSE.ISNUMBER(value)

Logical Functions

FunctionDescriptionSyntax
ANDTests whether all arguments are TRUE, and returns TRUE if so, FALSE if not.AND(logical1,logical2,…)
IFReturns one value if a specified logical condition is met, and an alternate value if it is not.IF(logical_test,value_if_true,value_if_false)
IFERRORReturns a value you specify if a formula evaluates to an error; otherwise, returns the result of the formula.IFERROR(value, value_if_error)
NOTChanges FALSE to TRUE, and TRUE to FALSE.NOT(logical)
ORTests whether any arguments are TRUE, and returns TRUE if so, FALSE if not.OR(logical1,logical2,…)

Lookup Functions

FunctionDescriptionSyntax
HLOOKUPSearches for a lookup value in the top row of an range; if a match is found, HLOOKUP returns the value of a cell in the same column, but offset a specified number of rows down.HLOOKUP(lookup_value, table_array, row_index_num, [range_lookup])
INDEXUses an index to choose a value from a reference or array.INDEX(array, row_num, [column_num])
MATCHLooks up values in a reference or array, and returns their position.MATCH(lookup_value, lookup_array, [match_type])
VLOOKUPSearches for a lookup value in the first column of a range; if a match is found, VLOOKUP returns the value of a cell in the same row, but offset a specified number of columns to the right.VLOOKUP (lookup_value, table_array, col_index_num, [range_lookup])

Mathematical Functions

FunctionDescriptionSyntax
ABSReturns the absolute value of a number.ABS(number)
MODReturns the remainder after a number is divided by another number.MOD(number, divisor)
ROUNDRounds a number to a specified number of digits.ROUND(number, num_digits)
ROUNDDOWNRounds a number down, toward zero.ROUNDDOWN(number, num_digits)
ROUNDUPRounds a number up, away from zero.ROUNDUP(number, num_digits)
RANDReturns a random real number between 0 and 1.The RAND function syntax has no arguments.
RANDBETWEENReturns a random integer between two integers you specify.RANDBETWEEN(bottom, top)
SUMAdds all the numbers in a range of cells.SUM(number1,[number2],...)
SUMIFSums the values in a range that meet criteria that you specify.SUMIF(range, criteria, [sum_range])
SUMIFSAdds all of its arguments that meet multiple criteria.SUMIFS(sum_range, criteria_range1, criteria1, [criteria_range2, criteria2], ...)
SUMPRODUCTReturns the sum of the products of corresponding ranges or arrays.SUMPRODUCT(array1, [array2], [array3], ...)

Statistical Functions

FunctionDescriptionSyntax
AVERAGEReturns the average (arithmetic mean) of the arguments.AVERAGE(number1, [number2], ...)
AVERAGEIFReturns the average (arithmetic mean) of all the cells in a range that meet a given criteria.AVERAGEIF(range, criteria, [average_range])
AVERAGEIFSReturns the average (arithmetic mean) of all cells that meet multiple criteria.AVERAGEIFS(average_range, criteria_range1, criteria1, [criteria_range2, criteria2], ...)
COUNTCounts how many numbers are in the list of arguments.COUNT(value1, [value2], ...)
COUNTACounts how many values (numeric and non-numeric) are in the list of arguments.COUNTA(value1, [value2], ...)
COUNTBLANKCount the number of empty cells in a range of cells.COUNTBLANK(range)
COUNTIFCounts the number of cells within a range that meet the given criteria.COUNTIF(range, criteria)
COUNTIFSCounts the number of cells within a range that meet multiple criteria.COUNTIFS(criteria_range1, criteria1, [criteria_range2, criteria2]…)
MAXReturns the maximum value in a list of arguments.MAX(number1, [number2], ...)
MEDIANReturns the median of the given numbers.MEDIAN(number1, [number2], ...)
MINReturns the minimum value in a list of arguments.MIN(number1, [number2], ...)
STDEV.PCalculates standard deviation based on the entire population, given as arguments.STDEV.P(number1,[number2],...)

Text Functions

FunctionDescriptionSyntax
CONCATENATEJoins two or more text strings into one string.CONCATENATE(text1, [text2], ...)
FINDReturns the starting position of one text string within another text string (case sensitive).FIND(find_text, within_text, [start_num])
LEFTReturns the first character or characters in a text string, based on the number of characters you specify.LEFT(text, [num_chars])
LENReturns the number of characters in a text string.LEN(text)
LOWERConverts text to lowercase.LOWER(text)
MIDReturns a specific number of characters from a text string, starting at the position you specify, based on the number of characters you specify.MID(text, start_num, num_chars)
PROPERCapitalizes the first letter in each word of a text string.PROPER(text)
RIGHTReturns the rightmost characters from a text string.RIGHT(text)
SUBSTITUTESubstitutes new text for old text in a text string.SUBSTITUTE(text, old_text, new_text, [instance_num])
TEXTChanges the way a number appears by applying formatting to it with format codes.TEXT(value, text_format)
TRIMRemoves all spaces from text except for single spaces between words.TRIM(text)
UPPERConverts text to uppercase.UPPER(text)

Handy Excel Formula & Function “Recipes”

Offset date values with the DATE function

ScenarioSyntax
Dynamically calculate a date 3 months from the current date.=DATE(YEAR(TODAY()),MONTH(TODAY())+3,DAY(TODAY()))

Use EOMONTH to return the first day of the month

ScenarioSyntax
Dynamically return the first day of the current month.=EOMONTH(TODAY(),-1)+1

Error-proof lookups with IFERROR and VLOOKUP

ScenarioSyntax
Return a customized error message if VLOOKUP can't find a value.=IFERROR(VLOOKUP(A2,Sheet2!A:B,2,FALSE),"Value not found.")

Classify a lookup value as "found" or "not found" in a list with ISERROR and MATCH

ScenarioSyntax
Return "Found" if the keyword "Excel" is found in a list of names in column A, and "Not found" otherwise.=IF(ISERROR(MATCH("Excel",A:A,0)),"Not found","Found")

Create a multi-level classification with nested IF functions

ScenarioSyntax
Classify a product price in cell A1 as "High" (> $1,000), "Medium" (>= $200), or "Low" (< $200)=IF(A1>1000,"High",IF(A1>=200,"Medium","Low"))

Apply complex logical conditions with IF + AND

ScenarioSyntax
Calculate whether a salesperson qualified for a bonus by testing whether they exceeded their sales goal of $1,000,000 and their new accounts goal of 20. The value for sales is in cell A1, while the value for new accounts is in cell B1.=IF(AND(A1>1000000,B1>20),"Yes","No")

Combine INDEX and MATCH for two-way lookups

ScenarioSyntax
Return a grade from a two-way matrix (column AND row headers) of student names and class names in cells A1:J10, at the intersection of "Excel" (rows) and "Travis" (columns).=INDEX(A1:J10,MATCH("Excel",A1:A10,0),MATCH("Travis",A1:J1,0))

Randomly sample data with RANDBETWEEN and INDEX

ScenarioSyntax
Randomly select a name from a list of 10 names in cells A1:A10.=INDEX(A1:A10,RANDBETWEEN(1,10))

Use TEXT to return the name of the current day of the week

ScenarioSyntax
Return the name of the current day of the week.=TEXT(TODAY(),"dddd")

Dynamically extract a person's first name with FIND and LEFT

ScenarioSyntax
Return the first name from a person's name stored in cell A1, regardless of length.=LEFT(A1,FIND(" ",A1)-1)

Remove multiple characters from a text string with nested SUBSTITUTE functions

ScenarioSyntax
Remove all periods and commas from a text string in cell A1.=SUBSTITUTE(SUBSTITUTE(A1,".",""),",","")

Common Formula Errors

Common Formula Errors

ErrorDescription
#DIV/0The formula attempts to divide a number by zero.
#NAME?Some part of the formula references a name (for example, a function name) that Excel doesn't recognize.
#VALUE!One or more function arguments have been supplied with data that is incompatible with the argument.
#REF!The formula references a cell that no longer exists.
######The value is too wide to fit within its column.

No comments:

Post a Comment