EXCELLYES

Excel IF Function – The Clearest Guide You’ll Read in 2025

Master one of Excel’s most-used functions with practical, copy-ready formulas and clean explanations.

Last updated: 21 Aug 2025 Reading time: 10–15 mins Skill level: Beginner β†’ Pro
πŸ“‘ On this page Logical Functions (IF, AND, OR, NOT, IFS, etc.) Lookup & Reference Functions (VLOOKUP, XLOOKUP, INDEX, MATCH, etc.) Date & Time Functions (NOW, DATE, DATEDIF, NETWORKDAYS, etc.) Filter & Sort Functions (FILTER, SORT, UNIQUE, SORTN) Text Functions (String Manipulation & Formatting) Math & Trig Functions (Calculations & Numeric Operations) Parser Functions (Data Conversion) Operator Functions (Arithmetic & Comparison) Statistical Functions (Data Analysis & Metrics) Engineering Functions (Conversions, Binary, Complex Numbers) Financial Functions (Loans, Investments, Bonds, Depreciation) Array Functions (Matrix, Dynamic Arrays, Transformations) Database Functions (Conditional Calculations & Analysis) Google Functions (Sheets & Dynamic Data) Information Functions (Error Checking, Validation, Cell Info) Web Functions (Data Import, URLs, Links) Cube Functions (Data Model, KPIs, Members)

Logical Functions

FunctionDescription
IFReturn one value if condition is TRUE, another if FALSE (e.g., pass/fail check).
IFERRORReturn fallback value if formula results in error (e.g., "N/A" instead of #DIV/0!).
ANDCheck if multiple conditions are all TRUE (e.g., bonus if sales >1000 and profit >10%).
ORReturns TRUE if at least one condition is TRUE (e.g., weekend = Saturday or Sunday).
NOTReverse logic (e.g., if not complete, show "Pending").
IFSTest multiple conditions without nesting many IFs (like grading systems).
IFNACatch only #N/A errors and return custom message.
TRUEReturn logical TRUE β€” often used in conditions.
FALSEReturn logical FALSE β€” often for comparisons.
SWITCHMatch one value against multiple β€” like a simplified multiple IF statement.
XORReturns TRUE if only one condition is TRUE (advanced logic testing).
LETDefine variables inside a formula to optimize performance.
LAMBDACreate custom functions directly in Excel (no VBA needed).

Lookup Functions

Function Description
VLOOKUPLook up value in the leftmost column and return data from another column.
XLOOKUPModern replacement for VLOOKUP β€” more flexible, works left/right.
INDEXReturn value from specific row & column in a range β€” powerful for dynamic data.
MATCHGet position of a value in a range β€” useful with INDEX.
HLOOKUPHorizontal lookup β€” search in top row and return value from a row below.
LOOKUPFind closest match and return corresponding value β€” older but flexible.
OFFSETReference a range offset from a starting cell β€” for dynamic ranges.
ROWReturn row number of a cell β€” often used in formulas.
COLUMNReturn column number of a cell.
ROWSCount rows in a range β€” e.g., for pagination or totals.
COLUMNSCount columns in a range.
CHOOSEPick a value from a list by position β€” handy for scenarios/alternatives.
INDIRECTConvert text to a cell reference β€” enables dynamic referencing.
FORMULATEXTShow the formula in a cell β€” for audits or documentation.
ADDRESSReturn cell reference as text β€” e.g., A1 for row 1, column 1.
GETPIVOTDATAExtract values from a PivotTable β€” for reporting dashboards.
SORTBYSort a range based on values in another range β€” dynamic sorting.
XMATCHModern MATCH with exact and wildcard matching β€” faster and easier.
AREASCount areas (ranges) in a reference β€” used in complex named ranges.
FIELDVALUEExtract field value from a data type β€” for linked data types.
RTDReal-time data from a COM automation server β€” used in finance/stock updates.

Date & Time Functions

Date & Time Functions (NOW, DATE, DATEDIF, NETWORKDAYS, etc.)

Function Description
NOWReturn current date & time β€” use in live timestamping.
DATEBuild a date from year, month, and day β€” helpful when combining fields.
DATEDIFCalculate difference between dates β€” e.g., age in years, months.
NETWORKDAYSCount working days between two dates (excludes weekends/holidays).
WORKDAYCalculate future/past working date by skipping weekends/holidays.
WEEKDAYReturn day of the week (e.g., Mon=2) β€” used in scheduling logic.
DAYExtract day from a date β€” useful for billing, due tracking.
MONTHExtract month β€” used in monthly reports or filters.
YEARGet year from a date β€” often used in summary dashboards.
WEEKNUMGet the week number β€” for production or timeline tracking.
TIMECombine hour, minute, second into time β€” for custom timestamps.
HOURExtract hour from a time β€” useful for shift planning or clock-ins.
MINUTEGet minutes part from time value.
SECONDReturn seconds part β€” e.g., for detailed logging.
DATEVALUEConvert text to a date β€” for imports or text-based data.
TIMEVALUEConvert text time to time value β€” used in cleaning data.
DAYSReturn total days between two dates β€” for tracking duration.
EDATEGet date after a given number of months β€” used in subscriptions/billing.
EOMONTHGet last day of the month β€” for payroll or invoicing.
YEARFRACYear difference as a fraction β€” often used in finance/interest calc.
NETWORKDAYS.INTLMore flexible NETWORKDAYS β€” choose weekends/holidays.
WORKDAY.INTLMore flexible WORKDAY β€” specify custom weekends/holidays.
DAYS360Days between dates using 360-day year β€” used in accounting/finance.
ISOWEEKNUMGet ISO week number (starting from Monday).
EPOCHTODATEConvert UNIX timestamp to readable date.

Filter Functions

Filter & Sort Functions (FILTER, SORT, UNIQUE, SORTN)

FunctionDescription
FILTERExtract rows that meet specific conditions β€” e.g., filter only "Completed" tasks.
SORTSort data by column (ascending/descending) β€” e.g., sales from high to low.
UNIQUERemove duplicates β€” e.g., list unique customer names from transactions.
SORTNReturn top n items based on a column β€” e.g., top 3 scorers or top-selling items.

Text Functions

Text Functions (String Manipulation & Formatting)

Function Description
TEXTFormat numbers or dates into a custom text format (e.g., "01-Jan-2025").
TEXTJOINCombine multiple values from cells with a delimiter (e.g., comma).
TRIMRemove extra spaces from messy imported text data.
UPPERConvert names or addresses to uppercase for standardization.
LOWERChange customer emails to lowercase for consistency.
PROPERCapitalize each word in names (e.g., "john doe" to "John Doe").
SUBSTITUTEReplace part of a text string (e.g., replace old product codes).
REPLACEModify text within a string at a specific position.
LEFTExtract area code from a phone number.
RIGHTGet last four digits from a number or ID.
MIDExtract a substring from the middle (e.g., middle name).
FINDLocate the position of a substring (e.g., find @ in email).
SEARCHSimilar to FIND but case-insensitive (e.g., search a word in sentence).
LENCount total number of characters in a cell.
VALUEConvert text-formatted numbers into numeric values.
CHARReturn character from ASCII code (e.g., CHAR(10) = line break).
CODEGet ASCII code of the first character in a string.
CONCATENATECombine cells like A1+B1+C1 into one.
JOINJoin values with delimiter (alternate to TEXTJOIN).
SPLITSplit full name into first and last name.
EXACTCheck if two strings are exactly the same.
TReturn text part of a value, or blank if it’s numeric.
DOLLARConvert number into currency format (e.g., $120.00).
FIXEDFormat number with fixed number of decimals.
REPTRepeat a character or symbol multiple times (e.g., for star ratings).
ARABICConvert Roman numerals to Arabic numbers.
ROMANConvert numbers to Roman numerals.
ASCConvert full-width characters to half-width (Japanese localization).
CLEANRemove non-printable characters (e.g., from imported data).
REGEXEXTRACTExtract part of text using pattern (e.g., extract domain from email).
REGEXMATCHCheck if text matches a pattern (e.g., email validation).
REGEXREPLACEReplace text using pattern (e.g., censor bad words).
LEFTBReturn first N bytes of text (used in double-byte languages).
RIGHTBReturn last N bytes of text.
MIDBReturn part of text from byte-based positions.
LENBCount number of bytes instead of characters (for Asian languages).
UNICHARReturns character by Unicode number.
UNICODEGet Unicode value of first character.

Math & Trig Functions

Math & Trig Functions (Calculations & Numeric Operations)

Function Description
SUMQuickly total up sales, expenses, or any numeric column.
SUMIFAdd values only if they meet a condition (e.g., sales > 1000).
SUMIFSSum with multiple conditions, like region and date range.
COUNTIFCount how many orders exceeded $500.
COUNTIFSCount how many rows match multiple conditions.
COUNTBLANKIdentify empty cells in a data range to ensure data completeness.
COUNTUNIQUECount unique values in a range like unique customer names.
ROUNDRound values to the nearest whole or decimal place for cleaner reporting.
ROUNDDOWNAlways round down final prices or tax values to avoid overcharges.
ROUNDUPAlways round up to ensure customer charges meet thresholds.
INTGet whole number from a decimal (e.g., strip cents from currency).
TRUNCRemove fractional digits without rounding for precise cutoff.
MODCheck for even/odd numbers or repeat patterns (modulo for periodic tasks).
ODDRound numbers up to the nearest odd number for schedule groupings.
EVENRound numbers up to the nearest even number for slot divisions.
ABSGet positive distance between numbers (ignore sign, e.g., balance diff).
POWERRaise numbers to powers (e.g., area calculation or exponential growth).
PRODUCTMultiply values together, like price Γ— quantity in invoices.
QUOTIENTDivide and get only the whole number part, ideal for packaging counts.
SQRTFind square root, e.g., for geometry, stats, or standard deviation prep.
SQRTPIMultiply square root of PI – used in specialized geometry scenarios.
LOGLogarithmic transformation in scientific and data modeling.
LNNatural logarithm, often used in compound interest or exponential decay.
LOG10Base-10 logarithm for scientific scale conversions.
PIUsed in geometry formulas (e.g., circle circumference).
RADIANSConvert degrees to radians for trigonometric calculations.
DEGREESConvert radians back to degrees for reporting.
SINCalculate sine of an angle – useful in waves, geometry, physics.
COSCalculate cosine – used in cycles, trigonometry, and animation.
TANGet tangent of angle – needed in slope and triangle height calculations.
ATAN2Get angle between two points in 2D space (navigation, plotting).
ACOSCalculate arc cosine – find angle when cosine is known.
ACOSHHyperbolic arc cosine – advanced math modeling.
ACOTArc cotangent – used in specific trigonometric modeling.
ACOTHInverse hyperbolic cotangent – niche advanced use.
ASINArc sine – retrieve angle when sine is known.
ASINHHyperbolic arc sine – useful in advanced calculations.
ATANGet inverse tangent – useful in geometry and plotting.
ATANHInverse hyperbolic tangent – advanced math/statistics.
COTCotangent of an angle – often used in trigonometric models.
COTHHyperbolic cotangent – used in physics or engineering.
CSCCosecant of angle – less common trigonometric function.
CSCHHyperbolic cosecant – niche scientific use.
SECSecant – reciprocal of cosine; used in trigonometry.
SECHHyperbolic secant – advanced math and engineering.
MROUNDRound to nearest multiple (e.g., round price to 5 or 10).
RANDGenerate random number between 0–1 for simulations or random selection.
RANDBETWEENRandom integer between two numbers (e.g., simulate lottery, pick).
RANDARRAYGenerate array of random numbers for simulations or test cases.
ISODDCheck if a number is odd – often used in row formatting logic.
ISEVENCheck if a number is even – used for alternate row logic.
CEILINGRound up to nearest specified multiple (e.g., shipping batch sizes).
CEILING.MATHRound up with control over direction, useful in financial calculations.
CEILING.PRECISEAlways rounds up towards zero to a multiple – precise control.
FLOORRound down to nearest specified multiple (e.g., price tiers).
FLOOR.MATHRound down with direction control, handy in accounting.
FLOOR.PRECISEAlways rounds down towards zero – for exact rounding needs.
GCDFind greatest common divisor (e.g., for simplifying ratios or fractions).
LCMFind least common multiple (e.g., resynchronizing schedules or cycles).
SEQUENCEGenerate ordered series (e.g., 1,2,3... for form IDs or test sets).
SIGNReturn -1, 0, or 1 to indicate sign of a number for directional logic.
EXPRaise Euler’s number to power (e.g., growth/decay rate modeling).
TANHHyperbolic tangent – used in machine learning or stat functions.
SINHHyperbolic sine – used in scientific simulations.
COSHHyperbolic cosine – niche uses in physics or engineering.
SERIESSUMCalculate power series – advanced scientific modeling.
GAMMALNLog Gamma function – useful in probability distributions.
GAMMALN.PRECISEImproved precision for GAMMALN – more accurate stats.
BASEConvert number to another base (e.g., decimal to binary for coding).
DECIMALConvert from other base (e.g., binary to decimal for analysis).
IMPOWERRaise complex number to a power – used in electrical engineering.
IMSQRTGet square root of a complex number – niche math applications.
MULTINOMIALUsed in probability theory for combinations.
MUNITReturn identity matrix (used in linear algebra and modeling).
IMLNNatural log of complex number – advanced mathematical analysis.
ERFCComplementary error function – used in statistics and probability.
ERFC.PRECISEMore accurate version of ERFC – useful in precise scientific analysis.
COMBINCalculate combinations – useful in probability/statistics.
COMBINACombinations with repetition – planning or permutations with overlap.

Parser Functions

Parser Functions (Data Conversion)

Function Description
CONVERTConvert between measurement units (e.g., meters to feet, Celsius to Fahrenheit).
TO_DATEConvert numeric serial (like 45123) to date format (e.g., "2023-07-01").
TO_DOLLARSConvert numbers into currency format with $ sign (e.g., 200 β†’ $200.00).
TO_PERCENTConvert decimal to percentage format (e.g., 0.85 β†’ 85%).
TO_PURE_NUMBERRemove formatting and return just the number (e.g., from "β‚Ή1,000" to 1000).
TO_TEXTConvert a value (number, date, etc.) to plain text (e.g., 123 β†’ "123").

Operator Functions

Operator Functions (Arithmetic & Comparison)

Function Description
ADDAdd two numbers together (e.g., base salary + bonus).
CONCATJoin multiple text values into one (e.g., first name + last name).
DIVIDEDivide one number by another (e.g., total cost Γ· units).
EQCheck if two values are equal (e.g., test result matches expected value).
GTReturn TRUE if one number is greater than another (e.g., sales > target).
GTEReturn TRUE if a value is greater than or equal to another (e.g., >= minimum requirement).
ISBETWEENCheck if a number falls between two values (e.g., score between 60 and 90).
LTReturn TRUE if a value is less than another (e.g., expenses < limit).
LTEReturn TRUE if a value is less than or equal to another.
MINUSSubtract one number from another (e.g., budget - spending).
MULTIPLYMultiply two numbers (e.g., unit price Γ— quantity).
NEReturn TRUE if two values are not equal.
POWRaise a number to a power (e.g., 3^2 = 9).
UMINUSReturn the negative value of a number (e.g., -profit).
UNARY_PERCENTReturn a value expressed as a percentage (e.g., 0.25 becomes 25%).
UNIQUEExtract a list of distinct values (e.g., unique names from a dataset).
UPLUSReturn a number unchanged but ensure it's positive (rarely needed).

Statistical Functions

Statistical Functions (Data Analysis & Metrics)

Function Description
AVERAGECalculate average marks, salary, expenses.
MEDIANFind the median value in a dataset (e.g., middle salary).
MODEFind the most frequent value (e.g., most common grade).
STDEV.SCalculate sample standard deviation for data spread.
STDEVLegacy: sample standard deviation.
VAR.SSample variance for data (e.g., test score analysis).
VARLegacy: sample variance.
COUNTCount numeric values (e.g., number of sales).
COUNTACount all non-empty values (e.g., filled survey fields).
MAXFind highest value (e.g., max revenue).
MINFind lowest value (e.g., min expenses).
LARGEFind nth largest value (e.g., 2nd highest score).
SMALLFind nth smallest value (e.g., 3rd lowest sales).
AVERAGEIFAverage with single condition (e.g., scores > 70).
AVERAGEIFSAverage with multiple conditions.
MAXIFSMax value with multiple conditions.
MINIFSMin value with multiple conditions.
FORECAST.LINEARPredict future sales, revenue, or stock levels.
CORRELFind correlation between two variables (e.g., height vs weight).
PEARSONReturn the Pearson correlation coefficient.
SLOPEReturn slope of regression line.
INTERCEPTFind y-intercept of regression line.
RSQReturn R-squared value to measure linear fit.
RANKRank values in a dataset (e.g., top performer).
RANK.EQRank values with equal values assigned same rank.
RANK.AVGAverage ranking for ties.
QUARTILE.INCDivide data into 4 equal quartiles.
PERCENTILE.INCReturn value at given percentile (e.g., 90th).
STDEVAStandard deviation including text/logical values.
STDEVPAPopulation standard deviation including logical/text values.
VARASample variance including logical/text.
VARPAPopulation variance including logical/text.
DEVSQSum of squared deviations.
CONFIDENCE.TConfidence interval using T-distribution.
CONFIDENCE.NORMConfidence interval assuming normal distribution.
T.TESTCompare two data sets (e.g., drug vs placebo).
T.DISTT-distribution analysis.
T.DIST.2TTwo-tailed T-distribution.
T.DIST.RTRight-tailed T-distribution.
T.INVInverse of T-distribution.
T.INV.2TInverse of two-tailed T-distribution.
Z.TESTZ-test for mean comparison.
KURTMeasure peakedness of a distribution.
SKEWMeasure asymmetry of distribution.
STEYXStandard error of Y estimates in regression.
TRIMMEANMean excluding outliers.
GEOMEANCalculate geometric mean (e.g., growth rates).
HARMEANCalculate harmonic mean (e.g., ratios, rates).
BETA.DISTProbability in beta distribution.
BETA.INVInverse of beta distribution.
BINOM.DISTProbability in binomial distribution.
BINOM.INVInverse of binomial distribution.
CHISQ.TESTChi-square hypothesis test.
CHISQ.DIST.RTRight-tailed chi-square distribution.
CHISQ.DISTChi-square distribution.
CHISQ.INVInverse of chi-square distribution.
CHISQ.INV.RTInverse of right-tailed chi-square.
GAMMA.DISTGamma distribution value.
GAMMA.INVInverse of gamma distribution.
LOGNORM.DISTLog-normal distribution value.
LOGNORM.INVInverse of log-normal distribution.
HYPGEOM.DISTHypergeometric distribution.
WEIBULL.DISTWeibull distribution value.
EXPON.DISTExponential distribution value.
F.DISTF-distribution value.
F.INVInverse of F-distribution.
F.TESTF-test for comparing variances.
GAUSSStandard normal cumulative distribution.
PHIValue of standard normal PDF.
NORM.DISTNormal distribution value.
NORM.S.DISTStandard normal distribution value.
NORM.INVInverse of normal distribution.
NORM.S.INVInverse of standard normal.
PERMUTNumber of permutations.
PERMUTATIONAPermutations with repetitions.
PROBProbability based on frequency and values.
PERCENTRANK.INCPercent rank including boundaries.
PERCENTRANK.EXCPercent rank excluding boundaries.

Engineering Functions

Engineering Functions (Conversions, Binary, Complex Numbers)

Function Description
BIN2DECConvert binary sensor readings into decimal to make them readable in monitoring dashboards.
BIN2HEXTranslate binary memory addresses into hexadecimal format for low-level programming.
BIN2OCTConvert binary to octal in digital circuit diagrams and legacy systems.
BITANDPerform binary checks on feature flags or permissions within application settings.
BITLSHIFTSimulate hardware-level bitwise shifts in embedded system logic or optimization.
BITORCombine permission flags using binary OR operation for access control.
BITRSHIFTRight-shift bit values for efficient data compression in microcontroller design.
BITXORBuild lightweight encryption methods or data validation routines using XOR logic.
COMPLEXRepresent electrical impedance as complex numbers in alternating current analysis (e.g., 3+4i).
DEC2BINConvert decimal inputs into binary to ensure compatibility with digital interfaces.
DEC2HEXConvert decimal to hex for use in CSS color codes or memory address mapping.
DEC2OCTTranslate decimal to octal for use in industrial systems using octal standards.
DELTACheck whether two values are equal (returns 1 or 0), often used for simple quality control validation.
ERFEstimate probability range or tolerance errors in manufacturing or signal analysis.
ERF.PRECISECalculate more accurate error margins for scientific research or simulations.
GESTEPTest if a sensor input or reading exceeds a given threshold (returns 0 or 1).
HEX2BINConvert hexadecimal machine-level addresses into binary for debugging.
HEX2DECConvert microcontroller output in hex format into decimal for analysis.
HEX2OCTTransform hexadecimal color data or firmware settings into octal format.
IMABSFind the absolute value (magnitude) of a complex number for impedance analysis.
IMAGINARYExtract only the imaginary part of a complex signal for waveform study.
IMARGUMENTMeasure the phase angle of alternating current or wave signal.
IMCONJUGATEBalance an electrical load by using the conjugate of complex impedance.
IMCOSCompute the cosine of complex signals used in signal wave analysis.
IMCOSHApply hyperbolic cosine function on complex signals for energy modeling.
IMCOTEvaluate cotangent for complex angles in trigonometric computations.
IMCOTHAnalyze wave damping in complex hyperbolic equations.
IMCSCUse reciprocal of sine in waveform shaping or physics equations.
IMCSCHApply hyperbolic reciprocal in system stability analysis.
IMDIVDivide two electrical loads or voltages represented as complex values.
IMEXPModel signal gain by applying the exponential function to a complex number.
IMLOGDetermine signal attenuation or growth in logarithmic scale.
IMLOG10Evaluate power level of a complex signal using base-10 logarithms.
IMLOG2Useful in data encoding where binary (base-2) scaling is required.
IMPRODUCTMultiply complex impedances in serial circuit components.
IMREALReturn the real part of a signal for accurate display or further math.
IMSECCompute secant of complex phase angle in circuit signals.
IMSECHApply hyperbolic secant in high-frequency AC behavior modeling.
IMSINCalculate sine of a complex voltage, used in phasor representation.
IMSINHSolve for sinusoidal waveforms in differential physics.
IMSUBSubtract signal wave voltages modeled as complex numbers.
IMSUMAdd total voltage drop across multiple complex sources.
IMTANTangent function for determining current phase lag.
IMTANHSimulate alternating signal distortion in transmission systems.
OCT2BINConvert archived system logs stored in octal into binary.
OCT2DECRead octal-encoded inputs as decimal for modern applications.
OCT2HEXUpdate octal system values into hex for compatibility in modern tech.

Financial Functions

Financial Functions (Loans, Investments, Bonds, Depreciation)

FunctionDescription
PMTCalculate monthly loan EMIs for a home, car, or personal loan.
NPVAssess profitability of an investment project by comparing inflows to the initial cost.
IRRCalculate return rate from a series of business or investment cash flows.
FVPredict future value of savings with monthly contributions and compound interest.
PVDetermine the current value of a future cash flow (e.g., lump sum or series of payments).
RATEFind out the interest rate applied to a loan or investment.
NPERCalculate how long it will take to repay a loan or reach an investment goal.
IPMTIdentify the interest part of a loan payment for budgeting or amortization.
PPMTIdentify the principal part of a loan payment in a given month.
CUMIPMTGet total interest paid over a defined period of loan repayment.
CUMPRINCGet total principal paid over a specified number of payment periods.
SLNApply straight-line depreciation to business assets for tax purposes.
DDBUse accelerated depreciation to write off assets faster in early years.
DBUse declining balance depreciation for accounting more asset value loss upfront.
XNPVCalculate NPV with irregular cash flow dates (e.g., freelance invoices).
XIRRDetermine the return rate from cash flows with varying dates.
MIRRAdjust IRR for cost of capital and reinvestment rate, useful for complex projects.
PDURATIONEstimate how long an investment will take to double at a given interest rate.
EFFECTCompare effective annual interest rate from a nominal rate.
NOMINALConvert an effective interest rate into its nominal equivalent.
ACCRINTCalculate interest earned but not yet paid for bonds between payments.
ACCRINTMDetermine total interest at maturity for zero-coupon bonds.
PRICEEstimate bond price based on interest rates and terms.
PRICEDISCCompute discounted bond price (e.g., short-term Treasury bill).
PRICEMATDetermine bond price at maturity including interest.
YIELDEstimate annual return from a bond that pays regular interest.
YIELDDISCDetermine yield on discounted securities like T-bills.
YIELDMATEstimate the return on bonds paying interest only at maturity.
TBILLPRICECompute purchase price of a Treasury bill based on its yield.
TBILLYIELDFind yield on short-term government Treasury bills.
TBILLEQConvert T-bill yield into bond-equivalent yield for comparison.
COUPNUMCount how many coupon payments a bond will make before maturity.
COUPDAYSNCGet number of days until the next bond coupon payment.
COUPDAYSFind number of days in the current bond coupon period.
COUPDAYBSCalculate days from bond issue date to settlement.
COUPNCDFind next scheduled bond coupon date.
COUPPCDIdentify last coupon payment date before settlement.
DURATIONMeasure bond’s sensitivity to interest rate changes.
MDURATIONUse modified duration to analyze interest rate risk.
AMORLINCApply linear depreciation method based on French accounting standards.
ISPMTCalculate simple interest over time using straight-line method.
DISCCompute discount rate on a security purchased at a discount.
RRIDetermine equivalent interest rate for compound growth.
VDBApply variable declining depreciation with control over life and period.
FVSCHEDULEProject future value with varying interest rates per period.
DOLLARDEConvert bond prices from fractional to decimal format.
DOLLARFRConvert bond prices from decimal to fractional format.
INTRATECompute interest rate on securities with full investment.
RECEIVEDCalculate total amount received from an investment at maturity.
SYDUse sum-of-years' digits depreciation to reduce asset value over time.

Array Functions

Array Functions (Matrix, Dynamic Arrays, Transformations)

FunctionDescription
SUMPRODUCTCalculate total weighted scores or expenses (e.g., sales Γ— unit price).
TRANSPOSESwitch rows and columns for better report formatting.
MMULTPerform matrix multiplication for modeling financial forecasts or engineering formulas.
FREQUENCYGroup test scores or ages into frequency bins for analysis.
LINESTGenerate linear regression statistics to analyze trends.
TRENDPredict future values using existing data points.
LOGESTFit exponential growth models to historical data.
GROWTHForecast exponential trends like compound interest or population growth.
REDUCEAggregate data with custom logic, like computing running totals.
SCANTrack progressive totals or results row-by-row.
MAPApply custom calculations to multiple arrays (e.g., apply tax logic).
BYROWPerform row-wise calculations such as sum per student/test.
BYCOLPerform column-wise operations such as normalize scores per subject.
TOCOLConvert 2D data ranges into a single column for processing.
TOROWConvert matrix or range into a single row.
VSTACKStack multiple datasets vertically, useful for appending forms or logs.
HSTACKCombine columns from multiple sources side-by-side.
WRAPCOLSFormat a long list into a fixed number of columns (e.g., 3-column display).
WRAPROWSFormat a dataset into wrapped rows for reports.
CHOOSECOLSExtract only specific columns from a dataset for cleaner reports.
CHOOSEROWSSelect specific rows based on position for sampling or slicing.
FLATTENConvert ranges into a single column list, removing structure.
ARRAY_CONSTRAINLimit array output (rows/columns) for better display or summarization.
MAKEARRAYGenerate a custom-shaped array with dynamic formulas.
MDETERMCalculate matrix determinant for linear algebra analysis.
MINVERSEFind inverse of a matrix (used in solving equations).
SUMX2MY2Statistical calculation: βˆ‘(xΒ² βˆ’ yΒ²), used in variance analysis.
SUMX2PY2Statistical calculation: βˆ‘(xΒ² + yΒ²), often used in energy estimation.
SUMXMY2Statistical calculation: βˆ‘(x βˆ’ y)Β² for comparing datasets.

Database Functions

Database Functions (Conditional Calculations & Analysis)

FunctionDescription
DAVERAGECalculate average salary, score, or price where criteria are met.
DCOUNTCount numeric records (e.g., how many employees are above age 30).
DCOUNTACount non-empty entries (e.g., how many employees have department names filled).
DGETFetch a specific record's value (e.g., get department of employee with ID = 123).
DMAXFind maximum value (e.g., highest sale in a region).
DMINFind minimum value (e.g., lowest product cost in a category).
DPRODUCTMultiply values conditionally (e.g., quantity Γ— price for selected product type).
DSTDEVEstimate standard deviation of scores/salaries for filtered data (sample).
DSTDEVPCalculate population standard deviation (e.g., delivery times for all vendors).
DSUMSum up values that match condition (e.g., total sales for a product line).
DVAREstimate sample variance (e.g., time taken by selected employees for tasks).
DVARPCalculate population variance (e.g., salary range for all employees).

Google Functions

Google Functions (Sheets & Dynamic Data)

FunctionDescription
ARRAYFORMULAApply formulas across a range without copying (e.g., calculate totals for entire column).
DETECTLANGUAGEAutomatically identify the language of a sentence (e.g., detect if text is Hindi, French, etc.).
GOOGLEFINANCEFetch real-time stock prices, financial data (e.g., get current price of AAPL stock).
GOOGLETRANSLATETranslate text from one language to another (e.g., Hindi to English).
IMAGEDisplay an image directly in a cell using a URL (e.g., insert product images).
QUERYFilter, sort, and analyze data using SQL-like syntax (e.g., select only rows with sales > 500).
SPARKLINECreate mini-charts inside cells to visualize trends (e.g., sales trend for each month).

Information Functions

Information Functions (Error Checking, Validation, Cell Info)

FunctionDescription
ERROR.TYPEIdentify the type of error returned by a formula (e.g., distinguish #DIV/0!, #N/A).
ISBLANKCheck if a cell is empty (e.g., to validate required form fields).
ISDATECheck if a value is a valid date (e.g., validate DOB inputs).
ISEMAILCheck if the text is a valid email format (e.g., for user form validations).
ISERRTest if a formula results in an error except #N/A (e.g., check invalid math ops).
ISERRORCheck if a formula returns any error (e.g., use with IF to prevent breakage).
ISFORMULADetermine if a cell contains a formula (e.g., for auditing data).
ISLOGICALCheck if value is TRUE or FALSE (e.g., ensure a checkbox is used correctly).
ISNACheck if value is #N/A (e.g., lookup didn't find result).
ISNONTEXTCheck if value is not text (e.g., for data cleaning).
ISNUMBERValidate if value is numeric (e.g., ensure phone number or ID is a number).
ISREFCheck if value is a valid cell reference (used rarely, often in advanced formulas).
ISTEXTConfirm if value is text (e.g., for filtering names or categories).
NConvert non-numeric values to numbers (e.g., TRUE β†’ 1, text β†’ 0).
NAReturn #N/A intentionally (e.g., to show missing data or skip a value).
TYPEGet the data type of a value (e.g., 1 for number, 2 for text).
CELLReturn info about a cell (e.g., address, content type, formatting).

Web Functions

Web Functions (Data Import, URLs, Links)

FunctionDescription
ENCODEURLEncode text to make it URL-safe (e.g., for API links or query strings).
HYPERLINKCreate clickable text linking to a website or file.
IMPORTDATAImport raw CSV or TSV data from a public URL (e.g., from government data portals).
IMPORTFEEDImport data from an RSS or ATOM feed (e.g., latest news headlines).
IMPORTHTMLScrape tables or lists from public webpages (e.g., live stock data, movie listings).
IMPORTRANGEImport a range of cells from another Google Sheet (e.g., fetch team reports).
IMPORTXMLExtract structured data (e.g., price, rating) from XML or HTML using XPath queries.
ISURLValidate whether a string is a valid URL (e.g., in web forms or product links).

Cube Functions

Cube Functions (Data Model, KPIs, Members)

FunctionDescription
CUBEKPIMEMBERReturn a Key Performance Indicator (KPI) defined in the data model (e.g., profit margin).
CUBEMEMBERFetch a specific member (e.g., "Product A") from a cube hierarchy.
CUBEMEMBERPROPERTYReturn a property (e.g., description, color) of a cube member.
CUBERANKEDMEMBERReturn the nth most ranked item from a cube set (e.g., 3rd top-selling product).
CUBESETDefine a set of members from a cube for further analysis or filtering.
CUBESETCOUNTCount the number of items in a cube set (e.g., number of regions).
CUBEVALUEReturn the actual value from a cube intersection (e.g., sales for Q1 in Asia).
Need a ready workbook?
Download the full Excel file with all examples, answer keys, and printable cheatsheet.

Found an issue? Tell us. We’ll fix it quickly.