BTC USD 86,435.4 Gold USD 4,181.72
Time now: Jun 1, 12:00 AM

Excel Formulas & Functions: Learn with Basic EXAMPLES

Numeric Functions​

As the name suggests, these functions operate on numeric data. The following table shows some of the common numeric functions.

S/NFUNCTIONCATEGORYDESCRIPTIONUSAGE
1ISNUMBERInformationReturns True if the supplied value is numeric and False if it is not numeric=ISNUMBER(A3)
2RANDMath & TrigGenerates a random number between 0 and 1=RAND()
3ROUNDMath & TrigRounds off a decimal value to the specified number of decimal points=ROUND(3.14455,2)
4MEDIANStatisticalReturns the number in the middle of the set of given numbers=MEDIAN(3,4,5,2,5)
5PIMath & TrigReturns the value of Math Function PI(π)=PI()
6POWERMath & TrigReturns the result of a number raised to a power.
POWER( number, power )
=POWER(2,4)
7MODMath & TrigReturns the Remainder when you divide two numbers=MOD(10,3)
8ROMANMath & TrigConverts a number to roman numerals=ROMAN(1984)
 

String functions​

These basic excel functions are used to manipulate text data. The following table shows some of the common string functions.

S/NFUNCTIONCATEGORYDESCRIPTIONUSAGECOMMENT
1LEFTTextReturns a number of specified characters from the start (left-hand side) of a string=LEFT(“GURU99”,4)Left 4 Characters of “GURU99”
2RIGHTTextReturns a number of specified characters from the end (right-hand side) of a string=RIGHT(“GURU99”,2)Right 2 Characters of “GURU99”
3MIDTextRetrieves a number of characters from the middle of a string from a specified start position and length.
=MID (text, start_num, num_chars)
=MID(“GURU99”,2,3)Retrieving Characters 2 to 5
4ISTEXTInformationReturns True if the supplied parameter is Text=ISTEXT(value)value – The value to check.
5FINDTextReturns the starting position of a text string within another text string. This function is case-sensitive.
=FIND(find_text, within_text, [start_num])
=FIND(“oo”,”Roofing”,1)Find oo in “Roofing”, Result is 2
6REPLACETextReplaces part of a string with another specified string.
=REPLACE (old_text, start_num, num_chars, new_text)
 

Date Time Functions​

These functions are used to manipulate date values. The following table shows some of the common date functions

S/NFUNCTIONCATEGORYDESCRIPTIONUSAGE
1DATEDate & TimeReturns the number that represents the date in excel code=DATE(2015,2,4)
2DAYSDate & TimeFind the number of days between two dates=DAYS(D6,C6)
3MONTHDate & TimeReturns the month from a date value=MONTH(“4/2/2015”)
4MINUTEDate & TimeReturns the minutes from a time value=MINUTE(“12:31”)
5YEARDate & TimeReturns the year from a date value=YEAR(“04/02/2015”)
 

VLOOKUP function​

The VLOOKUP function is used to perform a vertical look up in the left most column and return a value in the same row from a column that you specify. Let’s explain this in a layman’s language. The home supplies budget has a serial number column that uniquely identifies each item in the budget. Suppose you have the item serial number, and you would like to know the item description, you can use the VLOOKUP function. Here is how the VLOOKUP function would work.

050215_0816_Introductio4.png


=VLOOKUP (C12, A4:B8, 2, FALSE)
 
HERE,

  • "=VLOOKUP" calls the vertical lookup function
  • "C12" specifies the value to be looked up in the left most column
  • "A4:B8" specifies the table array with the data
  • "2" specifies the column number with the row value to be returned by the VLOOKUP function
  • "FALSE," tells the VLOOKUP function that we are looking for an exact match of the supplied look up value
The animated image below shows this in action

VLOOKUP_demo.gif


Download the above Excel Code
 

Summary​

Excel allows you to manipulate the data using formulas and/or functions. Functions are generally more productive compared to writing formulas. Functions are also more accurate compared to formulas because the margin of making mistakes is very minimum.
 

Here is a list of important Excel Formula and Function​

  • SUM function = =SUM(E4:E8)
  • MIN function = =MIN(E4:E8)
  • MAX function = =MAX(E4:E8)
  • AVERAGE function = =AVERAGE(E4:E8)
  • COUNT function = =COUNT(E4:E8)
  • DAYS function = =DAYS(D4,C4)
  • VLOOKUP function = =VLOOKUP (C12, A4:B8, 2, FALSE)
  • DATE function = =DATE(2020,2,4)
 
Back
Top
Log in Register