KutoolsforOffice — One Suite. Five Tools. Get More Done.

Excel Formulas Examples | ExtendOffice

Count
Count cells equal toCOUNTIFSUMPRODUCTEXACT
Count cells not equal toCOUNTIF
Count cells equal to either x or yCOUNTIFSUMPRODUCTSUM
Count cells equal to both x and yCOUNTIFS
Count cells greater than or less thanCOUNTIF
Count number of cells between two values / datesCOUNTIFS
Count number of cells not between two given numbersCOUNTIFSUMPRODUCT
Count number of cells equals to one of many valuesCOUNTIFSUMPRODUCT
Count number of cells not equal to many valuesCOUNTIFCOUNTASUMPRODUCTISNAMATCH
Count number of cells not equal to x or yCOUNTIFSSUMPRODUCT
Count blank or nonblank cellsCOUNTBLANKCOUNTIF
Count cells that begin/end with specific textCOUNTIF
Count cells that contain either x or ySUMPRODUCTISNUMBERFIND
Count cells that contain specific text with case sensitiveSUMPRODUCTISNUMBERFIND
Count How Many Cells Contain ErrorsSUMPRODUCTISNUMBERSUM
Count number of cells contain numeric or non-numeric valuesSUMPRODUCTISNUMBERNOTCOUNT
Count number of cells that contain odd or even numbers SUMPRODUCTMOD
Count number of cells that contain positive or negative values COUNTIF
Count number of cells that contain specific number of characters COUNTIFSUMPRODUCTLENN
Count Number Of Cells That Contain Specific Text COUNTIFSUMPRODUCTFINDISNUMBER
Count the number of text cellsCOUNTIFCOUNTIFS
Count cells that do not contain errorsISERRORSUMPRODUCTSUM
Count cells that do not contain specific textCOUNTIFCOUNTIFS
Count Number Of Cells That Do Not Contain Many ValuesSUMMMULTISNUMBERTRANSPOSEROW
Count Number Of Dates By Day Of WeekSUMSUMPRODUCTWEEKDAY
Count Multiple Criteria With NOT LogicSUMPRODUCTMATCH
Count Numbers That Begin With A Specific Number SUMPRODUCTLEFT
Count Occurrences Of Particular Text In Entire Excel Workbook SUMPRODUCTCOUNTIFINDIRECT
Count Or Sum Only Whole Numbers SUMPRODUCT MOD
Count Numbers Where The Nth Digit Equals To XSUMPRODUCT MID
Count cells that match two or more criteriaCOUNTIFS
Count matches between two columns SUMPRODUCT
Count number of dates by year, month SUMPRODUCTYEARMONTH
Count rows if meet internal criteriaSUMPRODUCT
Count Rows If Meet Multiple CriteriaSUMPRODUCT
Count All Matches / Duplicates Between Two ColumnsSUMPRODUCTCOUNTIFCOUNTMATCHISNUMBER
Count Number Of Rows That Contain Specific ValuesSUMMMULTTRANSPOSECOLUMN
Count Number Of Rows With Multiple OR CriteriaSUMPRODUCT
Count Unique Numeric Values Based On CriteriaSUMFREQUENCYROWSUNIQUEFILTER
Count Unique Numeric Values Or Dates In A ColumnSUMFREQUENCYISNUMBERUNIQUECOUNTIFCOUNT
Count Number Of Visible Rows In A Filtered ListSUBTOTAL
Count Unique Values In A RangeSUMPRODUCTFREQUENCYMATCHROWCOUNTIF
Count Unique Values With Criteria SUMFREQUENCYMATCHROWIF
Count Visible Rows With CriteriaSUMPRODUCTSUBTOTALROWMIN
Use COUNTIF On A Non-Contiguous RangeSUMCOUNTIFINDIRECT
Countifs With OR Logic For Multiple Criteria SUMCOUNTIFSUMPRODUCTMATCHISNUMBER
Calculate Percentage Breakdown Of Items In A List COUNTIFCOUNTA
Create A Summary Count By Month With COUNTIFS COUNTIFSEDATE
Do Running Count Of Occurrence In A List COUNTIFIF
Summary Count Of Non-Blank Categories COUNTIFS
Sum
3D sum or sumif across multiple worksheetsSUMSUMPRODUCTSUMIFINDIRECT
Calculate Running TotalSUM
Get Subtotal By Invoice NumberCOUNTIFSUMIFIF
Sum Values By Group SUMIFIF
Subtotal By ColorsSUMIF
Two-Way Summary CountingCOUNTIF
Subtotal Invoice Amounts By Age SUMIF
Sum All Number Cells Ignoring Errors SUMIFIFERRORAGGREGATE
Sum Smallest Or Bottom N Values SUMPRODUCTSMALL
Sum Smallest Or Bottom N Values Based On Criteria SUMSMALLIF
Sum Values By Month (With Or Without Year)SUMIFSSUMPRODUCTEOMONTHMONTH
Sum Values By The Week Of A Given DateSUMIFS
Sum Values By Weeknum Or WeekdayWEEKNUMSUMPRODUCTWEEKDAY
Sum Every N Rows Or ColumnsSUMOFFSETROWCOLUMNS
Sum Every Nth Row Or ColumnSUMPRODUCTMODROWCOLUMN
Sum If Begins With Or Ends With Specific Text Or CharactersSUMIF
Sum If Cells Contain Specific Text In Another ColumnSUMIFSUMPRODUCTSEARCHISNUMBER
Sum If Between Two Values SUMIFS
Sum Only Cells Containing FormulasSUMPRODUCTISFORMULA
Sum Values By YearSUMPRODUCTSUMIFSDATEYEAR
Sum If Cells Contain An AsteriskSUMIF
Sum If Cells Contain Both X And YSUMIFS
Sum If Cells Contain Or Equal To Either X Or YSUMPRODUCTISNUMBERSEARCHSUMIFS
Sum If Date Is Between Two DatesSUMIFS
Sum If Cells Are Equal Or Not Equal To A Certain ValueSUMIF
Sum If Greater Than Or Less Than A Specific ValueSUMIF
Sum If Date Is Greater Than Or Less Than A Specific DateSUMIF
Sum If Equal To One Of Many Things SUMIFSUMPRODUCT
Sum Values Based On Blank Or Not-Blank Criteria SUMIF
Sumif With Multiple Criteria Based On OR And AND LogicSUMIFSUMIFS
Sum Multiple Columns If One Criterion Is MetSUMPRODUCT
Sum The Last N ColumnsSUMINDEXCOLUMNS
Sum Top N Values Or Top N Values With CriteriaSUMPRODUCTLARGE
Sum Values Based On Column Or Both Column And RowSUMPRODUCT
Sum Values In Last N Days Based On CriteriaSUMIFSTODAY
Sum only visible cells or rows in a filtered listSUBTOTAL
Sum values in horizontal rangeSUMIFS
Use SUMIFS with multiple criteria based on OR logicSUMSUMIFS
Use SUMPRODUCT with IF functionSUMPRODUCT
Financial
Calculate interest payments per period or totalIPMTCUMIPMT
Lookup
Approximate match with INDEX and MATCHINDEXMATCH
Approximate match with VLOOKUPVLOOKUP
Case-sensitive lookupINDEXMATCHVLOOKUPEXACTCHOOSE
Case-sensitive lookup to return matching numbersSUMPRODUCTMATCHEXACT
Count missing valuesSUMPRODUCTMATCHISNACOUNTIF
Dynamic worksheet or workbook referenceINDIRECT
Exact match with INDEX and MATCHINDEXMATCH
Exact match with VLOOKUPVLOOKUP
Find longest or shortest text string in a column or rowINDEXMATCHLENMAXMIN
Find longest text string with criteriaINDEXMATCHLENMAX
Find missing valuesIFISNAMATCHVLOOKUPCOUNTIF
Get cell address of lookup resultsINDEXMATCHCELL
Get first non-blank value in a column or rowINDEXMATCHISBLANK
Get first numeric value in a column or rowINDEXMATCHISNUMBER
Get first text value in a columnINDEXMATCHVLOOKUP
Get first text value in a rowHLOOKUP
Get information corresponding to maximum valueINDEXMATCHMAX
Get information corresponding to minimum valueINDEXMATCHMIN
Get last text value in a columnINDEXMATCH
Get student or employee information with VLOOKUPVLOOKUP
Get value at given row and columnINDEXMATCHSMALL
INDEX and MATCH across multiple columnsINDEXMATCHMMULTTRANSPOSECOLUMN
INDEX and MATCH with multiple arraysINDEXMATCHCHOOSE
Left lookup with INDEX and MATCHINDEXMATCH
Left lookup with VLOOKUPVLOOKUPCHOOSE
Locate maximum value in a rangeMATCHMAX
Locate first errorMATCHISERROR
Locate first match that does not begin withMATCHLEFTIF
Locate first match that does not containMATCHISNUMBERSEARCH
Locate first partial match with wildcardsMATCH
Lookup a value containing specific text with wildcardsINDEXMATCH
Lookup closest matchINDEXMATCHABSMIN
Lookup closest match value with multiple criteriaIFINDEXMATCH
Lookup and retrieve entire columnINDEXMATCHSUMAVERAGEMAXLARGE
Lookup and retrieve entire rowINDEXMATCHSUMAVERAGEMIN
Lookup next largest match with INDEX and MATCHINDEXMATCH
Lookup the first partial match numberMATCHTEXTINDEX
Lookup values in descending orderINDEXMATCH
Lookup values from another worksheet or workbookVLOOKUP
Merge tables with INDEX and MATCHINDEXMATCH
Multiple-criteria lookup with INDEX and MATCHINDEXMATCH
Partial match with VLOOKUPVLOOKUP
Retrieve first list value from a cellINDEXMATCHSEARCHISNUMBER
Retrieve first matching value in cell against a listINDEXMATCHSEARCHAGGREGATE
Retrieve information associated with lowest n valuesVLOOKUP
Retrieve nth match with INDEXINDEXROWSMALLIF
Retrieve nth match with VLOOKUPVLOOKUP
Shipping cost calculatorVLOOKUP
Two-way approximate match with multiple criteriaINDEXMATCHIF
Two-way lookup with INDEX and MATCHINDEXMATCH
Vlookup with dymanic sheet nameVLOOKUPINDIRECT
Math
Convert binary value to decimal or octal or hex valueBIN2DECDECIMALBIN2OCTBIN2HEX
Convert hexadecimal value to decimal or binary or octal valueHEX2DECDECIMALHEX2OCTHEX2BIN
Convert octal value to decimal or binary or hexadecimal valueOCT2DECDECIMALOCT2HEXOCT2BIN
Convert decimal value to binary or octal or hexadecimal valueDEC2DECDEC2OCTDEC2HEX
Convert decimal number to IP addressMID
Convert decimal to whole number in ExcelROUNDROUNDDOWNROUNDUP
Date and Time
Add business days to date WORKDAYWORKDAT.INTL
Add hours to time TIMEMOD
Add minutes to time TIMEMOD
Add hours minutes seconds to time TIME
Add months to date  
Add years to date DATEYEARMONTHDAY
Assign points based on late timeIFVALUE
Add or subtract days to date  
Calculate days hours minutes seconds between two datesTEXT
Calculate days remaining from todayMAXTODAY
Calculate days remaining between dates 
Calculate days remaining in monthEOMONTH
Calculate days remaining in year 
Calculate difference between two datesDATEDIF
Calculate difference between two timesIF
Calculate expiry dateEOMONTHEDATE
Calculate hours minutes seconds between to timesHOUR  MINUTESECOND
Calculate network timeMOD
Calculate retirement dateEDATE
Calculate overlapping daysMAXMIN
Calculate overtime pay 
Calculate years months days between two datesDATEDIF
Check if dates is workdayWORKDAY   WORKDAY.INTL
Check if date is last n dayTODAY    AND
Check if date is last n month from todayTODAY    AND     EOMONTH
Check if two dates are in same year monthMONTH  YEAR
Combine date and timeTEXT   CONCATENATE
Convert date to JulianTEXT  YEAR  DATE
Convert date to month year dayTEXT
Convert date to textTEXT
Convert datetime string to datetimeLEFT  MID
Convert decimal hours to time 
Convert decimal minutes to time 
Convert month name to numberDATEVALUE   MONTH
Convert number to dateTEXT  LEFT  MID  RIGHT  DATE
Convert time to another time zoneMOD
Convert time to decimal hours 
Convert time to decimal minutes 
Convert time to decimal seconds 
Convert time to money 
Convert time to UnixDATE
Convert timestamp to timeMID  TIME
Convert text to timeDATEVALUE  VALUE  
Count days of monthEOMONTH  DAY
Count days until expiration dateTODAY
Count day of week between two datesINDIRECR  ROW  WEEKDAY  SUMPRODUCT
Count day of week in a date rangeWEEKDAY  SUMPRODUCT
Count days from TodayTODAY  IF  ISBLANK  ABS
Count days between two datesDATEDIF
Count dyas left in current month yearEOMONTH  YEAR  DATE
Count holidays between two datesSUMPRODUCT
Count months between two datesDATEDIF   YEARFRAC
Count number of calls in a time rangeCOUNTIFS
Count times in a rangeCOUNTIFS
Count workday onlyNETWORKDAYS  NETWORKDAYS.INTL
Create date range from two datesTEXT
Create dynamic date listROWS
Create weekly date rangeROWS  TEXT
Custom format weekday nameWEEKDAY  CHOOSE
Display current date or timeTODAY   NOW
Extract time only from datetime in ExcelTIMEMOD
Extract date only from datetime in ExcelINTTRUNCDATE
Find earlest or latest date of each groupIF MAX  MIN
Find last weekday of monthEOMONTH  WEEKDAY
Find next date in schedule list 
Get day name from given dateTEXT  WEEKDAY  CHOOSE
Get date from day month yearDATE
Get first or last workday in monthYEAR    MONTH       DATE  WORKDAY
Get fiscal month from dateMONTH  CHOOSE
Get fiscal quarter from dateMONTH   CHOOSE
Get fiscal year from dateMONTH   YEAR
Get first or last day of month by given dateDAY  EOMONTH
Get first day of month by month text name IF
Get first or last day of previous monthEOMONTH
Get midpoint of two datesSUM  WORKDAY
Get Monday of weekWEEKDAY
Get month from dateMONTH
Get most recently day of weekMOD
Get next specific weekdayWEEKDAY
Get nth day of week in month by given dateWEEKDAYDAY
Get nth day of year by given dateYEAR  DATE
Get number of workday between two datesNETWORKDAYS  NETWORKDAYS.INTL
Get percentage of year complete or remainedYEAR  DATE YEARFRAC
Get quarter from dateMONTH  YEAR
Get same date last month or next monthEDATE
Get same date last year or next yearEDATE
Get week number from date in ExcelWEEKNUM
Get work hours between two dates in ExcelNETWORKDAYSNETWORKDAYS.INTL
Get or calculate age from birth date in ExcelYEARFRACDATEDIF
List holidays between two datesIF   TEXTJOIN
Text
Abbreviate Words or NamesTEXTJOINISNUMBERROWINDIRECTLENMATCHMIDTRIMLEFTSUBSTITUTEFINDUPPER
Add area code or country code to phone numberCONCATENATE
Add character before each wordSUBSTITUTE
Add comma after first wordREPLACEFIND
Add comma between namesFINDREPLACETRIMSUBSTITUTE
Add dashes to phone numberREPLACE
Add dashes to SSN in a cellLEFTMIDRIGHTSUBSTITUTE
Add leading zeros to fix text lengthTEXT
Add text in middleLEFTMIDREPLACE
Add space after commaTRIMSUBSTITUTE
Add space between number and textTRIMREPLACEMINFINDMAXIFERRORROWINDIRECTLEN
Capitalize first letter of text string or each wordUPPERLENFINDLOWERREPLACELEFTMID
Check if a cell contains a specific textISNUMBERSEARCHFIND
Check if cell contains all of many thingsSUMPRODUCTISNUMBERSEARCHCOUNTA
Check if cell contains one of many thingsSUMPRODUCTISNUMBERSEARCH
Check if a cell contains one of several values but exclude other valuesSUMPRODUCTISNUMBERSEARCH
Check if cell contains some texts but not contains othersCOUNTSEARCHAND
Convert letter to numberCOLUMNINDIRECT
Check if cell contains numberCOUNTFIND
Combine cells with line breakCONCATENATE
Combine date and time into one cell in ExcelTEXT
Combine text and date into same cell in ExcelTEXTCONCATENATE
Count comma separated values in a cellLENSUBSTITUTETRIM
Count specific character in cellLENSUBSTITUTE
Count specific character in a range of cellsSUMPRODUCTLENSUBSTITUTE
Count specific words in cellLENSUBSTITUTE
Count specific words in a range of cellsSUMPRODUCTLENSUBSTITUTE
Count number of characters in a cellLEN
Count number of characters in a range of cellsSUMPRODUCTLEN
Count number of words in a cellLENTRIMSUBSTITUTE
Count number of words in a range of cellsSUMPRODUCTLENTRIMSUBSTITUTE
Use double quotes in formulasCHAR
Check if cell equals any value in listSUMPRODUCT
Clean and reformat telephone numbersSUBSTITUTE
Combine cells with commasTRIMSUBSTITUTECONCATENATE
Combine initial and last nameLEFTCONCATENATE
Compare two or more text stringsEXACTIFCOUNTIF
Concatenate cells but ignore blanksTEXTJOIN
Convert numbers to text in ExcelTEXTFIXED
Convert text to number in ExcelVALUERIGHTLEFTMID
Count keywords cell contains based on a listSUMPRODUCTISNUMBERSEARCH
Count lines which are separated by line breaks in a cell or a rangeLENSUBSTITUTE
Show specific text based on value in ExcelREPTIF
Extract all words but first or last from a cellRIGHTLENFINDLEFTSUBSTITUTE
Extract capital letters onlySUBSTITUTE
Extract extension from filenameRIGHTLENFINDSEARCHREPLACE
Extract filename from a path in ExcelMIDFINDSUBSTITUTELENIFERROR
Extract first line of cellSEARCHLEFT
Extract first and last name from emailFINDLEFTLENRIGHT
Extract folder name from pathFINDSUBSTITUTELENRIGHT
Extract from right until a characterSEARCHRIGHTSUBSTITUTELENIFERROR
Extract initials from namesMIDIFFINDLEFT
Extract multiple lines from a cellTRIMMIDREPTLENSUBSTITUTE
Extract last line of text from a multi-line cellSUBSTITUTEREPTRIGHTTRIM
Extract nth word from text string in ExcelSUBSTITUTEREPTMIDTRIMLEN
Extract path from full pathFINDSUBSTITUTELENLEFT
Extract substring from text string in ExcelMIDLEFTRIGHTSEARCH
Extract the last two words from a cellMIDFINDSUBSTITUTELEN
Extract text between parentheses from text stringMIDSEARCH
Extract word beginning with a specific character in ExcelMIDTRIMLEFTFINDREPTLENSUBSTITUTE
Extract word which containing specific text in ExcelMIDTRIMFINDREPTMAXSUBSTITUTE
Extract first initial and last name from full nameLEFTRIGHTFINDLEN
Extract first middle and last names from full name in ExcelLEFTRIGHTFINDLENMIDSEARCHSUBSTITUTE
Extract text before or after second space or commaLEFTMIDFINDSUBSTITUTETRIM
Extract text after the last instance of a specific characterRIGHTSEARCHLENSUBSTITUTETRIMREPT
Extract text between first and second comma from text stringsMIDSEARCHFINDSUBSTITUTE
Find and replace multiple values in ExcelSUBSTITUTEINDEX
Find nth occurrence of character in a cellSUBSTITUTEFIND
Find most frequenst text in a rangeMODEINDEXMATCH
Find most frequenst text with criteriaMODEINDEXIFMATCH
Find position of nth occurrenceFINDSUBSTITUTE
Flip or reverse first and last names in Excel listMIDSEARCHLEN
Get or extract the first word from text string in ExcelFINDLEFT
Get or extract the last word from text string in ExcelTRIMRIGHTREPT
If cell contains text then display in ExcelIFISNUMBERSEARCH
Make text same lengthREPTLEN
Make first letter lowercaseLEFTLOWERREPLACE
Move or combine multiple cell contents into one cellCONCATENATETRANSPOSE TEXTJOIN
Normalize textTRIMSUBSTITUTELOWER
Remove extension from filenameFINDLEFT
Remove first n charactersLENRIGHT
Remove first or last word from a stringRIGHTLENFINDLEFTTRIMSUBSTITUTE
Remove from right of textLENLEFT
Excel remove last or trailing comma in a cellIFRIGHTLEFTLEN
Remove leading and tailing spaceCLEANTRIMSUBSTITUTE
Remove line breaks from cells in ExcelCLEANTRIMSUBSTITUTE
Remove middle initial from full name in ExcelLEFTRIGHTFINDTRIMSUBSTITUTEREPT
Remove prefix or suffix from stringRIGHTLENLEFT
Remove text from cell by matching the content SUBSTITUTE
Remove text from a cell based on specific positionREPLACESUBSTITUTE
Remove text based on variable position in ExcelREPLACEFIND
Remove unwanted characters from cell in ExcelSUBSTITUTE
Remove text before or after first or last specific character from text stringsRIGHTLEFTFINDSEARCHLENSUBSTITUTE
Remove text after or before the second or nth space from text stringsRIGHTLEFTFINDLEN SUBSTITUTE
Remove text within parentheses or brackets from text stringsFINDMIDLENSUBSTITUTE
Replace a specific character in a cell with another SUBSTITUTE
Reverse the text string in a cell in ExcelTEXTJOINMID
Split dimensions into individual length, height and widthLEFTMIDRIGHTFINDLENSUBSTITUTE
Split dimensions into two parts in ExcelLEFTRIGHTFINDLENSUBSTITUTE
Separate numbers from units of measurementMAXISNUMBERVALUEMIDLEFTTRIMRIGHT
Separate octets of IP address in ExcelLEFTMIDLENFIND
Separate Email addresses to usernames and domainsLEFTRIGHTLENFIND
Split dollars and centsFINDRIGHTLEN
Split a cell by first space in ExcelLEFTFINDRIGHTLEN
Split number into individual digitsMIDCOLUMN
Split sentence into wordsSEARCHMIDROWCOLUMNIF
Split text and numbersMID   FIND  LEFTRIGHTLEN
Split text string at specific character in a cell in ExcelMID   FIND  LEFTRIGHTLEN
Split text with delimiter in a cell in ExcelMID   TRIM  SUBSTITUTELEN
Strip or remove non-numeric characters from text stringsTEXTJOINIFERRORMIDROWINDIRECT
Strip or remove numeric characters from text stringsTEXTJOINIFISERRMIDROWINDIRECTLEN
Strip or remove html tags from text stringsMID   LEN
Trim text to n wordsSUBSTITUTE   FIND  LEFT