excel, though a powerful software, can be a menace to use if we had to do everything manually. keeping this in mind, excel was well equipped with something known as functions in which certain formulas are incorporated. what it actually means is that we don’t need to do every calculation and many other things manually, but excel can do it for us if we tell it what formula we need to use.

in this article, we’ll see a lot of different functions that one can use to get around their way in ms excel.

## 1. automatically calculating the number of days

if we have two dates in two different cells, then we can use a function to calculate the number of days between those dates. for instance, we can see the screenshots below, in which we have different dates in cells e18 and e19, and if we wish to calculate the number of days between the two dates then we just enter the formula as **‘=days360(start date, end date, method)’**

it will be better to focus more on start date and end date initially and not on the method.

as you can see in the example, if you enter the formula with e4 as the initial day and e5 as the final day, then we get the result as the total number of days between the dates written in e4 and e5.

## 2. percent rank

percent rank is a function that helps us to find the percent rank of any number with respect to a defined range and also allows us to define the number of significant digits to return the rank for.

to use this function, we need to enter **‘=percentrank(array,x,significance)’** in the cell where we wish to obtain our output. as mentioned, array defines the specified range on the basis of which we are going to rank our number, x is the number for which we wish to find a rank and finally, significance is defined as the number of significant digits to which we wish our rank to be returned.

we take the image below as an example for the percent-rank function, we can see that the array/defined range is taken from e15 to e21 and x is taken as 750, the number of significant digits that we have mentioned in this example is 4. finally the output that we get is equal to 0.8125.

## 3. automatically calculating the number of working days (5 days a week)

this formula is somewhat similar to the first formula, but this formula is really useful if we wish to find the number of working days between two different dates. we can use this formula by entering **‘=networkdays(start date, end date, holidays)’**, entering start date and the end date will help the system to remove all the saturdays and sundays(and extra holidays, if entered) from the total number of days between those two dates.

as you can see in the example taken, when we enter this networkdays formula in cell c21, then add the dates from cells c18 and c19, then we get the result as 523, as opposed to 721 in c20 that we got by using the formula of calculating the total number of days.

## 4. trim

when we copy data from certain places or use tools to import data from the web, we end up having spaces around the data in individual data cells. excel provides a wonderful formula to take care of this issue, and the formula or function is known as trim. so for using trim, we enter **‘=trim(cell’s address)’** into the cell where we wish to get our result and then press enter.

as can be seen in the example, trimming c22 (which happens to be the cell with epiphone written in it) gives us epiphone without spaces, and same is the case with all the other cells below epiphone down to ibanez, as we trim all of them to get a final result without any extra spaces.

## 5. percentile

the percentile function helps to return the nth percentile from a set of values. for this, we need to enter **‘=percentile(array, nth_percentile)’** into a cell where we intend to get our result/output. here array is the range from which we wish our function to return the nth percentile and as the name suggests, nth percentile is the percentile that we wish to see in our output. the value of percentile can be anywhere between 0 and 1.

for example, we can see the image below, in which we have our cell g15, with the function of percentile entered in it, and as we can see the 0.4^{th} percentile in this given set of values, i.e. between e15 and e21 is 420.

## 6. concatenate

ever felt like combining the contents of various cells into one single cell? then excel has got a function just for you, it is called the concatenate function, to use it you just need to enter **‘=concatenate(cell 1’s address, cell 2’s address, cell 3’s address,.. cell n’s address)’** and upon pressing enter you’ll see all of your data from the mentioned cells coming into the cell where you entered the concatenation function.

for instance, in the example we can see the concatenation of cells e22 to e25 (which happen to be the highlighted cells from epiphone to ibanez), and the end result of using the concatenation function turns out to be the concatenation of data from all the selected cells (e22 to e25).

## 7. datevalue

every date has a value associated with it in excel; these values can be used for calculation if the need arises. for getting the value of a date, all you need to do is enter **‘=datevalue(“date”)’** into a cell, and on pressing enter, you’ll see the value that excel provides you corresponding to that particular date.

as an example, we have taken the date to be ‘june 14, 2015’, and on using the datevalue function on it, we get a value of 42169.

## 8. slope

almost all of us who have studied mathematics or maybe physics to a certain level know what slope is. we all can recall finding slope of a line or a set of points or of some data, using different formulas. when it all comes down to excel, it gets as easy as it can get, excel makes it easy by straightway providing a function for it, it is called the slope function. in this function, we need to enter **‘=slope (known y’s, known x’s)’**. known x and known y are nothing but the x and y coordinates, using which we need to find our slope. so we take a number of x values and an exact same number of y values for this formula, we can do it by selecting all the x values when we are asked to mention the x coordinates in the formula and select all the y values when we are asked to do that.

for instance, we can see that in the example below, we have taken the cell g15 and entered the formula ‘=slope (f15:f21, e15:e21)’ and as a result, we get a value of 0.427857 in it. (you can see the formula on the top in front of ‘f_{x}’.

## 9. lookup

let us suppose that we have a huge stack of data, and we need to lookup for values corresponding to some other values in the system. for instance, if we have a stack of data with entries in two different columns (let us assume all the entries in first column are related to the entries in second column), for example we can take the value of shares on any particular day, but here shares are marked with numbers instead of their names. so if we were to find the value of a share at a given day, we would use a function known as lookup to straightaway provide us a result, instead of doing a manual search for it. for this formula, we enter** ‘=lookup(lookup value, lookup vector, result vector)’**, lookup value is the value that we need to look up against(i.e. the name of the share in our example), and the lookup vector is the vector in which our lookup value exists (in our example, lookup vector is the vector containing name of the shares, but we need to remember that here shares are represented by numbers and not by words or alphabets). finally, the result vector is the one in which we intend to locate the result (in our example, result vector contains the value of shares on a given day).

now if we have a look at the image below, we’ll see the function lookup added in the cell g15, and we take our lookup value as 500(present in the column e), take the lookup vector as the set of values in column e(from e15 to e21), and finally the result vector as the set of values in the column f from f15 to f21.

when we enter this formula, excel looks for the value 500 in lookup vector and then presents the corresponding value from result vector, and hence the result comes out to be 24132.

## 10. match function

the microsoft excel match function searches for a value in an array and returns the relative position of that item. for using the match function, all you need to do is enter **‘=match(value, array, [match_type])’** in the cell where you wish to get the result. here value signifies the value to be searched in the array, array signifies the range of cells that contain the value that you are searching for and finally match_type is an optional thing that works by having match work in a way in which if match_type =1 the match function finds the largest value less than or equal to value, 0 finds the first value equal to the value and finally -1 will find the smallest value that is greater than or equal to value.

as you can see in the example when we add ‘=match(10572,a2:a6,1)’ , you get the value 3

## 11. if

using an if function would not be alien to anyone who has tried his/her hand on coding, but anyways, one can explain if function as a conditional function which can provide a specific value if a condition we enter is met, and some other specific value if our condition is not met.

for using the if function, one needs to write **‘=if (logical test, value if true, value if false)’** in the cell where one intends to obtain his/her result from the if function. logical test in this function signifies the logical condition that we wish to use, for instance in the example below we’ll impose a logical condition on a cell e17 by logically testing if the value in it is greater than 370. if the answer to this logical question is true, then a value that we enter in ‘value if true’ in the function, comes out as our answer, otherwise, we’ll get the value entered by us in ‘value if false’.

## 12. forecast

forecast is a function that helps us to forecast a particular value by looking at the trend in a specified set of data. to use this function, we need to enter **‘=forecast(x, known y’s, known x’s)’**. here x and y are two related data sets and known x and known y are the values that are already mentioned. the first x that we write in the function is the one for which we need to find the corresponding value of y.

we take a simple example to show the working of this function. in the image below, we can see a simple data set with a pretty easy to decipher relation. so when we mention the easy data set’s values as known x(e23 to e32) and known y(f23 to f32) values, and at the same time we mention the x as 11, in a way we ask our function to forecast the corresponding ‘y’ value when we enter 11 as the value of ‘x’.

as one might have expected, the y value, when x is given a value of 11, turns out to be 1100.

## 13. averageif

we all know what average is, but excel has a special function which combines the if function along with the average function. it is done by averaging only those values that meet a specific criteria mentioned by the if function. for using the if function, one needs to enter the following into a cell **‘ =averageif(range, criteria, average range)’**. here, range defines the set of values on which we’ll be applying the ‘criteria’ mentioned next to it. criteria helps us to define our if function, we can set a criteria here to use only a specific set of values from the range that we have defined (as we’ll see in the example that follows this description), and finally average range signifies the range of values that we need to average, if we omit the average range part, then our range will be averaged.

in the example below, we see that range is taken from e23 to e32, and the criteria is mentioned as ‘>5’, and finally the range is taken from f23 to f32. the result we get is obtained by averaging the values of cells in column f corresponding to the cells in column e that satisfy the criteria (i.e. e28 to e32), and hence we get an average of the values of cells from f28 to f32 (average=800, as can be seen in cell h23).

## 14. stdev.p

the stdev.p function in excel returns the standard deviation of a given population. standard deviation might not be a new term for those who have studied statistics, but it is a long calculative task to measure it manually. thankfully excel provides a simple way to do it, to use this function, we just need to enter **‘= stdev.p( number1, [number2, number3,… number])’** here number one is any number or reference to a number and number 2 to number n can be a single number or a set of numbers that we wish to inculcate in the process of calculating standard deviation. a total of 30 values can be entered at a time. an example is shown in the image where we find the standard deviation of a population from f6 to f11.

## 15. roundup

roundup is a pretty nice tool that helps us to roundup our entries to the places we want. to use this function, we need to enter** ‘=roundup (number, num_digits)’** in a cell and then press enter. here number signifies the number that we wish to roundup and num_digits represents the number of decimal places to which we wish to roundup our number.

as an example, we take h23 in the image below; the function roundup has entries of 100.23 as the number and num_digits as 1. so we get 100.3 as the rounded up value in h23.

**see also: 15 cool excel tips and tricks you should try**

we hope this article helped you learn some really helpful excel functions. if you have any query or suggestion, feel free to let us know in comments.