Excel functions
Lookup & reference functions
Lookup and reference functions find things. They search a list for a value and bring back the matching item (XLOOKUP, VLOOKUP, INDEX with MATCH), describe where something is (ROW, COLUMN, ADDRESS) or reshape whole ranges (FILTER, SORT, UNIQUE, VSTACK, TAKE). If you build reports, price lists or dashboards, these are the functions you will use every day.
Start with these
CHOOSEPicks one value from a list of options using an index number: 1 returns the first option, 2 the second, and so on.FILTERReturns only the rows (or columns) of a range that meet one or more conditions, as a live list that updates when the data changes.GROUPBYGroups rows by one or more fields and aggregates values for each group with a formula, like a mini PivotTable that updates itself.HLOOKUPSearches the top row of a table for a value and returns a value from a row further down in the same column.HYPERLINKCreates a clickable link in a cell that opens a web page, file, email or another place in the workbook.INDEXReturns the value at a given row and column position inside a range, or a whole row or column of it.INDIRECTTurns a text string such as "B3" or "Sales!A1:A10" into a real cell reference and returns what is there.MATCHReturns the position of a value within a single row or column, such as 3 if it is the third item.OFFSETReturns a reference shifted a given number of rows and columns from a starting cell, optionally resized to a new height and width.PIVOTBYSummarises data in a cross-tab with groups down the rows and across the columns, like a PivotTable built from one formula.SORTSorts the contents of a range or array by one or more columns and returns the sorted copy as a spilled list.TRANSPOSEFlips a range so its rows become columns and its columns become rows.UNIQUEReturns the distinct values (or distinct rows) from a range, removing duplicates, as a list that updates automatically.VLOOKUPSearches the first column of a table for a value and returns a value from another column in the same row.XLOOKUPFinds a value in one range and returns the item in the same position of another range, with built-in not-found text and flexible match modes.XMATCHReturns the position of an item in a row, column or array, with exact match by default and options to search backwards or find the next larger item.
All 40 lookup & reference functions
- ADDRESSBuilds a cell address as text, like "$B$3" or "Sales!B3", from a row number and a column number.
- AREASCounts how many separate areas (blocks of cells) a reference contains.
- CHOOSEPicks one value from a list of options using an index number: 1 returns the first option, 2 the second, and so on.
- CHOOSECOLSReturns only the columns you ask for from a range or array, in the order you list them.
- CHOOSEROWSReturns only the rows you ask for from a range or array, by position, in the order you list them.
- COLUMNReturns the column number of a cell reference, or of the cell holding the formula if no reference is given.
- COLUMNSCounts the number of columns in a range or array.
- DROPRemoves a given number of rows and/or columns from the start or end of a range or array and returns the rest.
- EXPANDEnlarges an array to a given number of rows and columns, filling the new cells with a value you choose (or #N/A).
- FILTERReturns only the rows (or columns) of a range that meet one or more conditions, as a live list that updates when the data changes.
- FORMULATEXTShows the formula in a cell as text, so you can display or document how a result was calculated.
- GETPIVOTDATAPulls a specific value out of a PivotTable by naming the value field and the items you want, so the result survives pivot layout changes.
- GROUPBYGroups rows by one or more fields and aggregates values for each group with a formula, like a mini PivotTable that updates itself.
- HLOOKUPSearches the top row of a table for a value and returns a value from a row further down in the same column.
- HSTACKJoins ranges or arrays side by side, left to right, into one array.
- HYPERLINKCreates a clickable link in a cell that opens a web page, file, email or another place in the workbook.
- IMAGEPlaces a picture from a web address inside a cell, so the image moves, sorts and filters with your data.
- INDEXReturns the value at a given row and column position inside a range, or a whole row or column of it.
- INDIRECTTurns a text string such as "B3" or "Sales!A1:A10" into a real cell reference and returns what is there.
- LOOKUPLooks up a value in a one-row or one-column range and returns the value in the same position of a second range. Expects sorted data.
- MATCHReturns the position of a value within a single row or column, such as 3 if it is the third item.
- OFFSETReturns a reference shifted a given number of rows and columns from a starting cell, optionally resized to a new height and width.
- PIVOTBYSummarises data in a cross-tab with groups down the rows and across the columns, like a PivotTable built from one formula.
- ROWReturns the row number of a cell reference, or of the cell holding the formula if no reference is given.
- ROWSCounts the number of rows in a range or array.
- RTDReceives live data from a real-time data (RTD) server program, such as a broker's price feed, and updates the cell as new values arrive.
- SORTSorts the contents of a range or array by one or more columns and returns the sorted copy as a spilled list.
- SORTBYSorts a range by the values in one or more other ranges, which do not have to be part of the output.
- TAKEReturns a given number of rows and/or columns from the start or end of a range or array.
- TOCOLTurns a range or array into a single column, reading row by row (or column by column), with options to skip blanks and errors.
- TOROWTurns a range or array into a single row, reading row by row (or column by column), with options to skip blanks and errors.
- TRANSPOSEFlips a range so its rows become columns and its columns become rows.
- TRIMRANGECuts empty rows and columns off the edges of a range, so formulas only see the part that actually holds data.
- UNIQUEReturns the distinct values (or distinct rows) from a range, removing duplicates, as a list that updates automatically.
- VLOOKUPSearches the first column of a table for a value and returns a value from another column in the same row.
- VSTACKStacks ranges or arrays on top of each other into one array - for example several monthly lists or the same table from several sheets.
- WRAPCOLSWraps a single row or column of values into a grid, filling down each column and starting a new column after a set number of values.
- WRAPROWSWraps a single row or column of values into a grid, filling across each row and starting a new row after a set number of values.
- XLOOKUPFinds a value in one range and returns the item in the same position of another range, with built-in not-found text and flexible match modes.
- XMATCHReturns the position of an item in a row, column or array, with exact match by default and options to search backwards or find the next larger item.