Skip to content
- Excel UNIQUE Formula: Return a List Without DuplicatesIn Microsoft 365, Excel 2021, or Excel 2024, use =UNIQUE(A2:A100) to return a list of distinct values from A2:A100. Enter it in…Formulas & functions
- Excel Formula to Return 0 If There’s an ErrorTo make an Excel formula return 0 whenever it produces an error, wrap it in IFERROR. If the value to calculate is…Errors & fixes
- Excel Formula to Randomly Select From a ListWith names in A2:A20, use =INDEX(A2:A20,RANDBETWEEN(1,ROWS(A2:A20))) to return one randomly chosen entry. The formula selects a row position from the list and…Formulas & functions
- Excel Formula to Randomize a List (With Examples)To randomize a list in Microsoft 365, enter =SORTBY(A2:A20,RANDARRAY(ROWS(A2:A20))) in an empty cell, replacing A2:A20 with your list’s range. Excel spills the…Formulas & functions
- Excel Formula to Pull Out Text Between Two CharactersTo pull text out from between two characters in Excel, use MID with FIND. If A2 contains Order [Blue Widget] shipped, this…Formulas & functions
- Excel Formula to Pick Randomly From a ListWith a contiguous list in A2:A10, use =INDEX(A2:A10,RANDBETWEEN(1,ROWS(A2:A10))) to return one randomly selected item. The result can change whenever Excel recalculates, and…Formulas & functions
- Excel Formula to List Unique Values in a Column with UNIQUEIn Microsoft 365 for Windows, use =UNIQUE(A2:A100) to list distinct values from cells A2:A100; Excel spills the results into the cells below.…Formulas & functions
- Excel Formula to List Only Weekdays in a Date RangeWith actual Excel dates in A2:A100, use =FILTER(A2:A100,IFERROR(WEEKDAY(A2:A100,2)<=5,FALSE),"No weekdays") to return only Monday-to-Friday dates from that list. If you want Excel to…Formulas & functions
- Excel Formula to List All Sheet Names in a WorkbookExcel does not have a standard worksheet function that directly returns every tab name. In Excel for Microsoft 365 on Windows, you…Formulas & functions
- Excel Formula to List All Sheet Names in a WorkbookExcel has no built-in worksheet formula that directly returns every sheet name. In Excel for Microsoft 365 on Windows, you can list…Formulas & functions
- Excel Formula to Highlight Dates Before Today in a RangeIf your dates are in A2:A100, select that range and create a formula-based conditional-formatting rule using =AND(ISNUMBER(A2),A2<TODAY()). Choose a fill color, and…Formulas & functions
- Excel Formula to Get a Distinct List (With Examples)In Excel for Microsoft 365, use =UNIQUE(A2:A20) to return a distinct list from the values in A2:A20, with each different value appearing…Formulas & functions
- Excel Formula to Find Unique Names in a List With ExamplesIn Microsoft 365 or Excel 2021 and later, enter =UNIQUE(A2:A100) to return each distinct name from the list in A2:A100 once. The…Formulas & functions
- Excel Formula to Find Duplicate Names in a Name ListTo find duplicate names in Excel, use =COUNTIF($A$2:$A$20,A2)>1 beside a list in A2:A20, then fill the formula down. It returns TRUE for…Formulas & functions
- Excel Formula to Find All Tab Names in Your WorkbookExcel has no built-in worksheet formula that directly returns every tab name. In Microsoft 365 for Windows, you can list them with…Formulas & functions
- Excel Formula to Fill Blank Cells in a List AboveTo fill blank cells with the value from the row above in Excel for Microsoft 365, select the list, choose Home >…Formulas & functions
- Excel Formula to Calculate Hours WorkedFor a shift that starts in B2, ends in C2, and has an unpaid break entered as a duration in D2, use…Formulas & functions
- Excel Percentage Change Formula: Examples and Common ErrorsTo calculate percentage change in Excel, subtract the old value from the new value, divide by the old value, and format the…Formulas & functions
- Excel Formula to Check If a Value Is in a ListTo check whether a value in D2 appears anywhere in the list A2:A10, use =COUNTIF($A$2:$A$10,D2)>0. Excel returns TRUE if it finds the…Formulas & functions
- Excel Formula for Choosing a Random Name from a ListWith names in A2:A20, enter =INDEX($A$2:$A$20,RANDBETWEEN(1,ROWS($A$2:$A$20))) in an empty cell to choose one at random. Excel returns a name from that range;…Formulas & functions
- Excel Formula to Check Whether a Cell Matches a ListTo check whether a cell’s value appears in a list, use =COUNTIF($D$2:$D$10,A2)>0, assuming the value to check is in A2 and the…Formulas & functions
- Excel Formula to Calculate Total Hours WorkedTo calculate hours worked in Excel, subtract the start time from the end time and multiply by 24: =(B2-A2)*24. With a start…Formulas & functions
- Excel Formula to Calculate Percentage Change: ExamplesTo calculate percentage change in Excel, subtract the old value from the new value, then divide by the old value: =(B2-A2)/A2. If…Formulas & functions
- Excel Formula to Convert Minutes to HoursTo convert a number of minutes in cell A2 to decimal hours in Microsoft Excel, divide by 60: =A2/60. For example, if…Formulas & functions
- Excel Percent Change Formula and ExamplesTo calculate percent change in Excel, subtract the old value from the new value, then divide by the old value. If the…Formulas & functions
- Excel Formula to Add Dates in a Weekly Sequence AutomaticallyTo add dates in weekly sequence in Excel, enter a starting date in A2, then put =A2+7 in A3 and fill the…Formulas & functions
- Excel SUMIFS Between Two Dates: Formula and ExamplesTo sum values in Excel between two dates, use SUMIFS with the date range as a criteria range and two criteria: one…Formulas & functions
- Excel Formula to Add Dates in SequenceTo add dates in sequence in Excel, enter a starting date in A2, then enter =A2+1 in A3 and fill the formula…Formulas & functions
- Excel Formula Returns FALSE Instead of a Value? Here’s WhyAn Excel formula often returns FALSE because an IF function has no value specified for the condition that fails. Add a third…Formulas & functions
- Excel Formula Returning 0 Instead of a Value? How to Fix ItIf an Excel formula returns 0 instead of the value you expect, first check whether it is referencing a blank cell, calculating…Errors & fixes