How-to guides
Get the task done, then practise it.
Pick the job you are stuck on. Each guide shows the methods side by side and ends with a live sheet to try it in.
30 of 30 guides
Add months to a date in Excel
Move a date forward or back by a number of months with EDATE, find month ends with EOMONTH, and see why adding 30 days is not the same.
EDATEEOMONTHCalculate a loan payment in Excel
Work out the monthly payment on a loan with PMT, then the total interest you will pay over the term.
PMTCalculate a running total in Excel
Build a cumulative total down a column with an anchored SUM range, or with a single SCAN formula that spills the whole running total.
SUMSCANLAMBDACalculate a weighted average in Excel
Work out a weighted average with SUMPRODUCT divided by the sum of the weights, including a weighted average for one category.
SUMPRODUCTSUMIFSSUMCalculate age from date of birth in Excel
Work out a person's age in whole years, or in years and months, from a date of birth with DATEDIF, and keep the as-of date in a cell.
DATEDIFYEARTEXTCalculate compound interest in Excel
Find the future value of an investment with the compound interest formula or FV, including regular monthly deposits.
FVPMTCalculate days between two dates in Excel
Find the number of days between two dates with simple subtraction, DAYS or DATEDIF, and count days overdue without negative results.
DAYSDATEDIFMAXCalculate percentage change in Excel
Work out percentage increase or decrease between two numbers with (new - old) / old, format it as a percentage, and handle a zero starting value.
IFIFERRORCalculate working days between two dates
Count business days between two dates with NETWORKDAYS, skip a holiday list, and use NETWORKDAYS.INTL for different weekends.
NETWORKDAYSNETWORKDAYS.INTLWORKDAYCase-sensitive lookup in Excel
Look up a code where upper and lower case matter, using EXACT inside XLOOKUP or INDEX and MATCH, since normal lookups ignore case.
EXACTXLOOKUPINDEXMATCHCombine first and last names in Excel
Join first and last name into one cell with the & operator, CONCAT or TEXTJOIN, and build a "Last, First" version for sorting.
CONCATTEXTJOINConvert text to numbers in Excel
Turn numbers stored as text into real numbers with VALUE, a double negative or NUMBERVALUE, or fix them in place with Text to Columns.
VALUENUMBERVALUECount unique values in Excel
Count distinct values in a list with COUNTA and UNIQUE, or with SUMPRODUCT and COUNTIF in any version, including a count that depends on a condition.
COUNTAUNIQUEFILTERSUMPRODUCTCount with OR conditions in Excel
Count rows that meet one condition or another with COUNTIF added together, an array constant, or SUMPRODUCT, without double counting.
COUNTIFCOUNTIFSSUMPRODUCTExtract numbers from text in Excel
Pull a number out of a text string such as INV-10452 or Box 12 kg using TEXTAFTER, TEXTBEFORE and VALUE, or by keeping only the digits.
TEXTAFTERTEXTBEFOREVALUETEXTJOINFind duplicates without highlighting
Flag duplicate values in a column with COUNTIF so you can filter, count and act on them, instead of only seeing them highlighted.
COUNTIFIFFind the nth occurrence of a character in Excel
Locate the second, third or nth hyphen, comma or space in text with SUBSTITUTE and FIND, or cut at the nth delimiter with TEXTAFTER.
SUBSTITUTEFINDTEXTAFTERGet the last value in a column in Excel
Return the last non-blank value in a column with LOOKUP, XLOOKUP searching from the bottom, or INDEX, so the result updates when you add rows.
LOOKUPXLOOKUPINDEXCOUNTGet the month name from a date in Excel
Turn a date into the month name, such as March, with TEXT and a format code, or show it without changing the value using a custom number format.
TEXTMONTHCHOOSEGet the top 5 values in Excel
Return the five largest values, and the names that go with them, using SORT and TAKE, or LARGE for older versions.
TAKESORTSORTBYLARGELookup to the left in Excel
Find a value in one column and return a value from a column to its left, using XLOOKUP or INDEX and MATCH, which VLOOKUP cannot do.
XLOOKUPINDEXMATCHVLOOKUPRank in Excel without ties
Rank values with RANK.EQ, then break ties with COUNTIF so every row gets a unique rank, with the first listed winning the tie.
RANK.EQCOUNTIFRemove duplicates in Excel
Return a list with every value once using UNIQUE, or delete repeated rows in place with the Remove Duplicates command.
UNIQUERemove extra spaces in Excel
Clean leading, trailing and repeated spaces with TRIM, and handle the non-breaking spaces that TRIM misses with SUBSTITUTE.
TRIMSUBSTITUTECLEANReverse first and last names in Excel
Turn "Last, First" into "First Last" and back again with TEXTBEFORE and TEXTAFTER, or with MID and FIND in any version.
TEXTAFTERTEXTBEFOREMIDFINDSplit full names into first and last name
Separate a full name into first and last name with TEXTBEFORE and TEXTAFTER, or use Text to Columns and Flash Fill on the ribbon.
TEXTBEFORETEXTAFTERTEXTSPLITSum values by month in Excel
Total sales for each month from a list of dated transactions with SUMIFS and date boundaries, or group by month in a PivotTable.
SUMIFSEDATECOUNTIFSSum visible rows only in Excel
Add only the rows left visible after filtering or hiding, using SUBTOTAL or AGGREGATE instead of SUM.
SUBTOTALAGGREGATESUMTranspose rows to columns in Excel
Flip a table or list so rows become columns and columns become rows, with the TRANSPOSE function or Paste Special on the ribbon.
TRANSPOSEVLOOKUP with two criteria
Look up a value that depends on two columns, such as product and size, with XLOOKUP and a joined key, INDEX and MATCH, or SUMIFS.
XLOOKUPINDEXMATCHSUMIFS