StepFormula · How-to guides
Excel How-To Guides
Formulas that start from "How do I do this in Excel?". Each guide shows a formula you can copy right away, and links the functions it uses to a playground where you can move them yourself.
- How to Calculate Age in Excel
=DATEDIF(B2, TODAY(), "Y")DATEDIF · TODAY · YEAR · DATE - How to Calculate Years of Service in Excel
=DATEDIF(B2, C2, "Y")&" years "&DATEDIF(B2, C2, "YM")&" months"DATEDIF · EDATE · DAYS · TODAY - How to Find, Mark and Count Duplicates in Excel
=COUNTIF($A$2:$A$100, A2)>1COUNTIF · COUNTIFS · IF · SUMPRODUCT · TRIM - How to Rank in Excel (Including Ties)
=RANK.EQ(B2, $B$2:$B$10)RANK.EQ · RANK.AVG · RANK · COUNTIFS · COUNTIF · LARGE - How to Add a Line Break in an Excel Cell (Including Formulas)
=A2 & CHAR(10) & B2CHAR · TEXTJOIN · SUBSTITUTE · CONCAT · CODE - How to Remove Spaces in Excel (Leading, Trailing, Extra and All)
=TRIM(A2)TRIM · SUBSTITUTE · LEN · CODE · VALUE - How to Sum Only Filtered Rows in Excel
=SUBTOTAL(9, C2:C100)SUBTOTAL · SUM · SUMIF · COUNTIF - How to Calculate Loan Payments, Interest Rates and Terms in Excel
=PMT(5%/12, 36, 10000)PMT · RATE · NPER · PV · FV - How to Get Rid of #N/A Errors in Excel (VLOOKUP Not Found)
=IFNA(VLOOKUP(E2, $A$2:$C$100, 3, FALSE), "Not found")IFNA · IFERROR · VLOOKUP · XLOOKUP · ISNA · TRIM - How to Calculate Dates Excluding Weekends and Holidays in Excel
=WORKDAY(A2, 10, $H$2:$H$20)WORKDAY · NETWORKDAYS · WORKDAY.INTL · NETWORKDAYS.INTL · WEEKDAY - Rounding in Excel: Round, Round Up and Round Down to Any Unit
=ROUNDDOWN(A2, -3)ROUND · ROUNDUP · ROUNDDOWN · MROUND · CEILING · FLOOR · INT · TRUNC - How to Convert Numbers Stored as Text to Numbers in Excel
=VALUE(A2)VALUE · ISTEXT · ISNUMBER · TRIM · SUMPRODUCT - How to Fix the #VALUE! Error in Excel
=SUM(A2:C2)VALUE · TRIM · SUM · ISTEXT · ISNUMBER · DATEVALUE · IFERROR - How to Fix the #REF! Error in Excel
=SUM(B2:D2)VLOOKUP · INDEX · OFFSET · INDIRECT · SUM - How to Fix the #DIV/0! Error in Excel
=IF(B2=0, "", A2/B2)IF · IFERROR · AVERAGE · AVERAGEIF · COUNTIF - How to Fix the #NAME? Error in Excel
=SUM(A2:A9)SUM · COUNTIF · IF · XLOOKUP - How to Fix the #NUM! Error in Excel
=IRR(B2:B7, -0.1)IRR · RATE · SQRT · DATEDIF · POWER - How to Fix the #SPILL! Error in Excel
=UNIQUE(B2:B9)UNIQUE · FILTER · SORT · SEQUENCE · VLOOKUP - How to Fix the #CALC! Error in Excel
=FILTER(A2:D9, A2:A9="Jeju", "None")FILTER · UNIQUE · SEQUENCE · IFERROR · OFFSET - How to Generate Random Numbers in Excel
=RANDBETWEEN(1, 100)RANDBETWEEN · RAND · INDEX · RANK - How to Extract the Month, Year or Day from a Date in Excel
=MONTH(A2)MONTH · YEAR · DAY · TEXT · ROUNDUP · SUMIFS - How to Change Uppercase and Lowercase in Excel
=UPPER(A2)UPPER · LOWER · PROPER · EXACT