Working with functions

Insert function

The ability to perform basic calculations is the principal reason for using a spreadsheet. Some of them are performed automatically when you select a cell range in your spreadsheet:

  • Average is used to analyze the selected cell range and find the average value.

  • Count is used to count the number of the selected cells with values ignoring the empty cells.

  • Min is used to analyze the range of data and find the smallest number.

  • Max is used to analyze the range of data and find the largest number.

  • Sum is used to add all the numbers in the selected range ignoring the empty cells or those contaning text.

The results of these calculations are displayed in the right lower corner on the status bar. You can manage the status bar by right-clicking on it and choosing only those functions to display that you need.

To perform any other calculations, you can insert the required formula manually using the common mathematical operators or insert a predefined formula - Function.

The abilities to work with Functions are accessible from both the Home and Formula tab or by pressing Shift+F3 key combination. On the Home tab, you can use the Insert function button to add one of the most commonly used functions (SUM, AVERAGE, MIN, MAX, COUNT) or open the Insert Function window that contains all the available functions classified by category. Use the search box to find the exact function by its name.

On the Formula tab you can use the following buttons:

  • Function: to open theInsert Functionwindow that contains all the available functions classified by category.

  • Autosum: to quickly access the SUM, MIN, MAX, COUNT functions. When you select a functions from this group, it automatically performs calculations for all cells in the column above the selected cell so that you don't need to enter arguments.

  • Recently used: to quickly access 10 recently used functions.

  • Financial, Logical, Text and data, Date and time, Lookup and references, Math and trigonometry: to quickly access functions that belongs to the corresponding categories.

  • More functions: to access the functions from the following groups:Database,Engineering,Informationand Statistical.

  • Named ranges: to open the Name Manager, or define a new name, or paste a name as a function argument.

  • Calculation: to force the program to recalculate functions.

To insert a function,

  1. Select a cell where you wish to insert a function.

  2. Proceed in one of the following ways:

  • switch to theFormulatab and use the buttons available on the top toolbar to access a function from a specific group, then click the necessary function to open theFunction Argumentswizard. You can also use theAdditionaloption from the menu or click the Functionbutton on the top toolbar to open theInsert Functionwindow.

  • switch to the Home tab , click theInsert function icon, select one of the commonly used functions (SUM, AVERAGE, MIN, MAX, COUNT) or click theAdditionaloption to open theInsert Functionwindow.

  • right-click within the selected cell and select theInsert Functionoption from the contextual menu.

  • click the  icon before the formula bar.

  1. In the openedInsert Functionwindow, enter its name in the search box or select the necessary function group, then choose the required function from the list and click OK.

    Once you click the necessary function, the Function Arguments window will open:

  2. In the openedFunction Argumentswindow, enter the necessary values of each argument.

    You can enter the function arguments either manually or by clicking the icon and selecting a cell or cell range to be included as an argument.

    Note: Generally, numeric values, logical values (TRUE, FALSE), text values (must be quoted), cell references, cell range references, names assigned to ranges and other functions can be used as function arguments.

    The function result will be displayed below

  3. When all the arguments are specified, click the OK button in theFunction Argumentswindow.

To enter a function manually using the keyboard,

  1. Select a cell.

  2. Enter the equal sign (=).

    Each formula must begin with the equal sign (=).

  3. Enter the function name.

    Once you type the initial letters, theFormula Autocompletelist will be displayed. As you type, the items (formulas and names) that match the entered characters are displayed in it. If you hover the mouse pointer over a formula, a tooltip with the formula description will be displayed. You can select the necessary formula from the list and insert it by clicking it or pressing theTabkey.

  4. Enter the function arguments either manually or by dragging to select a cell range to be included as an argument. If the function requires several arguments, they must be separated by commas.

    Arguments must be enclosed into parentheses. The opening parenthesis '(' is added automatically if you select a function from the list. When you enter arguments, a tooltip that contains the formula syntax is also displayed.

  5. When all the arguments are specified, enter the closing parenthesis ')' and press Enter.

If you enter new data or change the values used as arguments, recalculation of functions is performed automatically by default. You can force the program to recalculate functions by using the Calculation button on the Formula tab. Click the Calculation button to recalculate the entire workbook, or click the arrow below the button and choose the necessary option from the menu: Calculate workbook or Calculate current sheet.

You can also use the following key combinations: F9 to recalculate the workbook, Shift +F9 to recalculate the current worksheet.

Here is the list of the available functions grouped by categories:

Tip:Detailed description of each function is available in the F1 help available in both online version and desktop client. (Press F1 key, then navigate to Work with functions -> Insert function).

Function Category

Description

Functions

Text and Data Functions

Used to correctly display the text data in the spreadsheet.

ASCCHARCLEANCODECONCATENATECONCATDOLLAREXACTFINDFINDBFIXEDLEFTLEFTBLENLENBLOWERMIDMIDBNUMBERVALUEPROPERREPLACEREPLACEBREPTRIGHTRIGHTBSEARCHSEARCHBSUBSTITUTETTEXTTEXTJOINTRIMUNICHARUNICODEUPPERVALUE

Statistical Functions

Used to analyze data: finding the average value, the largest or smallest values in a cell range.

AVEDEVAVERAGEAVERAGEAAVERAGEIFAVERAGEIFSBETADISTBETA.DISTBETA.INVBETAINVBINOMDISTBINOM.DISTBINOM.DIST.RANGEBINOM.INVCHIDISTCHIINVCHISQ.DISTCHISQ.DIST.RTCHISQ.INVCHISQ.INV.RTCHITESTCHISQ.TESTCONFIDENCECONFIDENCE.NORMCONFIDENCE.TCORRELCOUNTCOUNTACOUNBLANKCOUNTIFCOUNTIFSCOVARCOVARIANCE.PCOVARIANCE.SCRITBINOMDEVSQEXPON.DISTEXPONDISTF.DISTFDISTF.DIST.RTF.INVFINVF.INV.RTFISHERFISHERINVFORECASTFORECAST.ETSFORECAST.ETS.CONFINTFORECAST.ETS.SEASONALITYFORECAST.ETS.STATFORECAST.LINEARFREQUENCYFTESTF.TESTGAMMAGAMMA.DISTGAMMADISTGAMMA.INVGAMMAINVGAMMALNGAMMALN.PRECISEGAUSSGEOMEANGROWTHHARMEANHYPGEOMDISTHYPGEOM.DISTINTERCEPTKURTLARGELINESTLOGESTLOGINVLOGNORM.DISTLOGNORM.INVLOGNORMDISTMAXMAXAMAXIFSMEDIANMINMINAMINIFSMODEMODE.MULTMODE.SNGLNEGBINOMDISTNEGBINOM.DISTNORMDISTNORM.DISTNORMINVNORM.INVNORMSDISTNORM.S.DISTNORMSINVNORM.S.INVPEARSONPERCENTILEPERCENTILE.EXCPERCENTILE.INCPERCENTRANKPERCENTRANK.EXCPERCENTRANK.INCPERMUTPERMUTATIONAPHIPOISSONPOISSON.DISTPROBQUARTILEQUARTILE.EXCQUARTILE.INCRANKRANK.AVGRANK.EQRSQSKEWSKEW.PSLOPESMALLSTANDARDIZESTDEVSTDEV.SSTDEVASTDEVPSTDEV.PSTDEVPASTEYXTDISTT.DISTT.DIST.2TT.DIST.RTT.INVT.INV.2TTINVTRENDTRIMMEANTTESTT.TESTVARVARAVARPVAR.PVAR.SVARPAWEIBULLWEIBULL.DISTZTESTZ.TEST

Math and Trigonometry Functions

Used to perform basic math and trigonometry operations such as adding, multiplying, dividing, rounding, etc.

ABSACOSACOSHACOTACOTHAGGREGATEARABICASINASINHATANATAN2ATANHBASECEILINGCEILING.MATHCEILING.PRECISECOMBINCOMBINACOSCOSHCOTCOTHCSCCSCHDECIMALDEGREESECMA.CEILINGEVENEXPFACTFACTDOUBLEFLOORFLOOR.PRECISEFLOOR.MATHGCDINTISO.CEILINGLCMLNLOGLOG10MDETERMMINVERSEMMULTMODMROUNDMULTINOMIALMUNITODDPIPOWERPRODUCTQUOTIENTRADIANSRANDRANDARRAYRANDBETWEENROMANROUNDROUNDDOWNROUNDUPSECSECHSERIESSUMSIGNSINSINHSQRTSQRTPISUBTOTALSUMSUMIFSUMIFSSUMPRODUCTSUMSQSUMX2MY2SUMX2PY2SUMXMY2TANTANHTRUNC

Date and Time Functions

Used to correctly display the date and time in the spreadsheet.

DATEDATEDIFDATEVALUEDAYDAYSDAYS360EDATEEOMONTHHOURISOWEEKNUMMINUTEMONTHNETWORKDAYSNETWORKDAYS.INTLNOWSECONDTIMETIMEVALUETODAYWEEKDAYWEEKNUMWORKDAYWORKDAY.INTLYEARYEARFRAC

Engineering Functions

Used to perform some engineering calculations: converting between different bases number systems, finding complex numbers etc.

BESSELIBESSELJBESSELKBESSELYBIN2DECBIN2HEXBIN2OCTBITANDBITLSHIFTBITORBITRSHIFTBITXORCOMPLEXCONVERTDEC2BINDEC2HEXDEC2OCTDELTAERFERF.PRECISEERFCERFC.PRECISEGESTEPHEX2BINHEX2DECHEX2OCTIMABSIMAGINARYIMARGUMENTIMCONJUGATEIMCOSIMCOSHIMCOTIMCSCIMCSCHIMDIVIMEXPIMLNIMLOG10IMLOG2IMPOWERIMPRODUCTIMREALIMSECIMSECHIMSINIMSINHIMSQRTIMSUBIMSUMIMTANOCT2BINOCT2DECOCT2HEX

Database Functions

Used to perform calculations for the values in a certain field of the database that meet the specified criteria.

DAVERAGEDCOUNTDCOUNTADGETDMAXDMINDPRODUCTDSTDEVDSTDEVPDSUMDVARDVARP

Financial Functions

Used to perform some financial calculations: calculating the net present value, payments etc.

ACCRINTACCRINTMAMORDEGRCAMORLINCCOUPDAYBSCOUPDAYSCOUPDAYSNCCOUPNCDCOUPNUMCOUPPCDCUMIPMTCUMPRINCDBDDBDISCDOLLARDEDOLLARFRDURATIONEFFECTFVFVSCHEDULEINTRATEIPMTIRRISPMTMDURATIONMIRRNOMINALNPERNPVODDFPRICEODDFYIELDODDLPRICEODDLYIELDPDURATIONPMTPPMTPRICEPRICEDISCPRICEMATPVRATERECEIVEDRRISLNSYDTBILLEQTBILLPRICETBILLYIELDVDBXIRRXNPVYIELDYIELDDISCYIELDMAT

Lookup and Reference Functions

Used to easily find information from the data list.

ADDRESSCHOOSECOLUMNCOLUMNSFORMULATEXTHLOOKUPHYPERLINLKINDEXINDIRECTLOOKUPMATCHOFFSETROWROWSTRANSPOSEUNIQUEVLOOKUP

Information Functions

Used to provide information about the data in the selected cell or cell range.

CELLERROR.TYPEISBLANKISERRISERRORISEVENISFORMULAISLOGICALISNAISNONTEXTISNUMBERISODDISREFISTEXTNNASHEETSHEETSTYPE

Logical Functions

Used to check if a condition is true or false.

ANDFALSEIFIFERRORIFNAIFSNOTORSWITCHTRUEXOR