0% found this document useful (0 votes)
2 views

Excel functions

The document provides a comprehensive list of various Microsoft Excel functions categorized into string functions, math functions, and date/time functions. Each function is accompanied by its syntax, example, and a brief description of its purpose. This resource is intended for users at the AS level to enhance their understanding and application of Excel functions.

Uploaded by

vidhya
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
2 views

Excel functions

The document provides a comprehensive list of various Microsoft Excel functions categorized into string functions, math functions, and date/time functions. Each function is accompanied by its syntax, example, and a brief description of its purpose. This resource is intended for users at the AS level to enhance their understanding and application of Excel functions.

Uploaded by

vidhya
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 11

lOMoARcPSD|51275989

Excelfunctions - This a list of the various Ms Excel functions


that can be covered at AS level
lOMoARcPSD|51275989

String Functions
=B2&C2 Joins two cell contents where value
RituAfana
=CONCATENATE(B2,C2) returned with no space in between
=B2&” “&C2 To add a space between two
Ritu Afana
=CONCATENATE(B2,” “,C2) strings
=C2&”, “&B2
Add a space and a comma between
=CONCATENATE(C2,”, Afana, Ritu
two strings
“,B2)
=LEFT(A2,1)(Eg:SCHOOL) Extracts left most character from
S
the string
=LEFT(A2,2) Extracts two characters from the
SC
left
=LEFT(A2,4) Extracts four characters from the
SCHO
left.
=RIGHT(A2,1) Extracts right most character from
L
the string.
=RIGHT(A2,2) Extracts the right two characters
OL
from the string
=RIGHT(A2,4) Extracts the right four characters
HOOL
from the string
=MID(A2,3,1) Extracts the third character from
H
the string
=MID(A2,3,4) Extracts four characters from the
HOOL string starting at the third
character
=MID(A2,5,2) Extracts two characters from the
OL
string starting at the fifth character
=LEN(A2) Counts the number of characters in
the cell.
The LEN function simply counts all
characters that appear in a cell. All
6
characters are counted, including
space characters. Numbers are also
counted in their raw form (i.e.
number formatting is not included)
FIND(find_text, FIND locate one text string within a
within_text, [start_num]) second text string, and return the
number of the starting position of
the first text string from the first
=FIND("M",”Miriam”) character of the second text string.
It is case sensitive and don't allow
wildcard characters. If find_text is
"" (empty text), FIND matches the
first character in the search string
=EXACT(text1, text2) Word word Compares two text strings and
returns TRUE if they are exactly the

Page 1 of 10
lOMoARcPSD|51275989

same, FALSE otherwise. EXACT is


case-sensitive but ignores
formatting differences. In this
example, Excel returns False as W
is capital in the first text.
=FIXED(number, Rounds a number to the specified
[decimals], [no_commas]) number of decimals, formats the
=FIXED(1234.567, 1) =
number in decimal format using a
1,234.6
period and commas, and returns
=FIXED(1234.567, -1) =
the result as text. If decimals is
1,230
negative, number is rounded to the
=FIXED(A3, -1, TRUE) =
left of the decimal point. If you
-1230
omit decimals, it is assumed to be
=FIXED(44.332) =
2. If no_commas is FALSE or
44.33
omitted, then the returned text
includes commas as usual.
=LOWER(text) Converts all uppercase letters in a
=LOWER(“E. E. Cummings”) text string to lowercase. LOWER
= e. e. cummings does not change characters in text
that are not letters.
=UPPER(text) =UPPER(total) = TOTAL Converts text to uppercase.
=PROPER(text) Capitalizes the first letter in a text
string and any other letters in text
=PROPER(“this is a TITLE”)
that follow any character other
= This Is A Title
than a letter. Converts all other
letters to lowercase letters.
=REPLACE(old_text, =REPLACE(“abcdefghijk”,6,5 REPLACE replaces part of a text
start_num, num_chars, ,"*") =abcde*k string, based on the number of
new_text) (Replaces five characters in characters you specify, with a
abcdefghijk with a single * different text string.
character, starting with the
sixth character (f)).
SEARCH(find_text,within_ The SEARCH functions locate one
text,[start_num]) text string within a second text
=SEARCH("e",” string, and return the number of
Statements”,6) the starting position of the first
text string from the first character
of the second text string.
=REPT(text, Repeats text a given number of
=REPT("*-", 3) = *-*-*-
number_times) times
= SUBSTITUTE(text, Substitutes new_text for old_text
old_text, new_text, in a text string. Use SUBSTITUTE
[instance_num]) when you want to replace specific
=SUBSTITUTE(A2, "Sales",
text in a text string; use REPLACE
"Cost") = Cost Data
when you want to replace any text
that occurs in a specific location in
a text string.

Page 2 of 10
lOMoARcPSD|51275989

=TEXT(Value you want to The TEXT function lets you change


format, "Format code you the way a number appears by
want to apply") applying formatting to it with
=TEXT(TODAY(),"MM/DD/Y
format codes. It's useful in
Y")
situations where you want to
(Today’s date in MM/DD/YY
display numbers in a more
format, like 03/14/12)
readable format, or you want to
combine numbers with text or
symbols.
=TRIM(text) =TRIM(“ First Quarter Removes all spaces from text
Earnings “) Removes except for single spaces between
leading and trailing spaces words.
from the text in the
formula
=VALUE(text) Converts a text string that
represents a number to a number.
Text can be in any of the constant
=VALUE("$1,000")
number, date, or time formats
(Number equivalent of the
recognized by Microsoft Excel. If
text string "$1,000")
text is not in one of these formats,
VALUE returns the #VALUE! error
value

Math Functions
=INT(number) =INT(8.9) = 8 Rounds a number down to the
=INT(-8.9) = 9 nearest integer.
(Rounds -8.9 down. Rounding a
negative number down rounds
it away from 0)
=MOD(number, =MOD(3, 2) = 1 (Remainder of Returns the remainder after
divisor) 3/2) number is divided by divisor. The
result has the same sign as
divisor.
=RAND() =RAND()*100 RAND returns an evenly
distributed random real number
A random number greater than greater than or equal to 0 and
or equal to 0 and less than 100 less than 1. A new random real
number is returned every time
the worksheet is calculated.
To generate a random real
number between a and b, use:

=RAND()*(b-a)+a

If you want to use RAND to

Page 3 of 10
lOMoARcPSD|51275989

generate a random number but


don't want the numbers to
change every time the cell is
calculated, you can enter
=RAND() in the formula bar, and
then press F9 to change the
formula to a random number. The
formula will calculate and leave
you with just a value.
=RANDBETWEEN(bott =RANDBETWEEN(1,100) Returns a random integer
om, top) (Random number between 1 number between the numbers
and 100 (varies)) you specify. A new random
integer number is returned every
time the worksheet is calculated.
=ROUND(number, =ROUND(2.15, 1) =2.2 The ROUND function rounds a
num_digits) number to a specified number of
digits.
=ROUNDDOWN(numb =ROUNDDOWN(76.9,0) = 76 Rounds a number down, toward
er, num_digits) zero.
=ROUNDUP(number, =ROUNDUP(3.2,0) =4 Rounds a number up, away from
num_digits) 0 (zero).
=SUBTOTAL(function_ =SUBTOTAL(9,A2:A5) Returns a subtotal in a list or
num,ref1,[ref2],...) (The sum of the subtotal of the database.
cells A2:A5)
=Sum(val1,val2) =SUM(A2:A10) The SUM function adds values.
You can add individual values, cell
references or ranges or a mix of
all three.
=Sumif(range,criteria,s =SUMIF(B2:B5, "John", C2:C5) You use the SUMIF function to
umrange) (sums only the values in the sum the values in a range that
range C2:C5, where the meet criteria that you specify.
corresponding cells in the range
B2:B5 equal "John.")
=SUMIFS(sum_range, =SUMIFS(A2:A9,B2:B9,"<>Banan The SUMIFS function adds all of
criteria_range1, as",C2:C9,"Tom") its arguments that meet multiple
criteria1, criteria.
[criteria_range2,
criteria2], ...)

Page 4 of 10
lOMoARcPSD|51275989

Date and Time Fucntion

=DATE(year,month,day) =DATE(2009,12,21) = DATE function when you need


21/12/2009 to take three separate values
and combine them to form a
date.
=YEAR(serial_number) =YEAR(7/5/2008) = 2008 Returns the year corresponding
to a date. The year is returned
n integer in the range 1900-
9999.
=MONTH(serial_number) =MONTH(15-Apr-11) = 4 Returns the month of a date
(Month of the date in cell represented by a serial number.
A2) The month is given as an
integer, ranging from 1
(January) to 12 (December).
=DAY(serial_number) =DAY(15-Apr-11) = 15 Returns the day of a date,
represented by a serial number.
The day is given as an integer
ranging from 1 to 31.
=DATEDIF(start_date,end_date Start Date=1/1/2001 Calculates the number of days,
,unit) months, or years between two
End Date=1/1/2003 dates.

=DATEDIF(Start_date,End
_date,"Y")

Two complete years in


the period (2)
=DAYS(end_date, start_date) =DAYS("3/15/11","2/1/11 Returns the number of days
") = 42 between two dates.
=DAYS360(start_date,end_dat =DAYS360(“1/30/2011”,” The DAYS360 function returns
e,[method]) 2/1/2011”) the number of days between
two dates based on a 360-day
year (twelve 30-day months),
which is used in some
accounting calculations.
=EDATE(start_date, months) =EDATE(A2,1) = 15-Feb-11 Returns the serial number that
(The date, one month represents the date that is the
after the date above) indicated number of months
before or after a specified date
=EDATE(A2,-1) = 15-Dec- (the start_date). Use EDATE to
10 calculate maturity dates or due
dates that fall on the same day
(The date, one month of the month as the date of
before the date above) issue.

=EOMONTH(start_date, =EOMONTH(“1-Jan-11”,1) Returns the serial number for


months) = 2/28/2011 the last day of the month that is

Page 5 of 10
lOMoARcPSD|51275989

the indicated number of


Date of the last day of the months before or after
month, one month after start_date. Use EOMONTH to
the given date calculate maturity dates or due
dates that fall on the last day of
the month.
=HOUR(serial_number) =HOUR(7/18/2011 7:45) Returns the hour of a time
=7 value. The hour is given as an
integer, ranging from 0 (12:00
(Returns the hour portion A.M.) to 23 (11:00 P.M.).
of the date/time value.)

=MINUTE(serial_number) =MINUTE(12:45:00 Returns the minutes of a time


PM) = 45 value. The minute is given as an
integer, ranging from 0 to 59.
(Minute portion of the
given time.)

=SECOND(serial_number) =SECOND(4:48:18 PM) = Returns the seconds of a time


18 value. The second is given as an
=SECOND(4:48 PM) = 0 integer in the range 0 (zero) to
59.
=TIME(hour, minute, second) =TIME(12,0,0) =0.5 Returns the decimal number for
a particular time.
=NOW() =NOW() (Returns the Returns the serial number of
current date and time.) the current date and time.

=NOW()-0.5 (Returns the


date and time 12 hours
ago (-0.5 days ago).)
=NETWORKDAYS(start_date, =NETWORKDAYS(10/1/20 Returns the number of whole
end_date, [holidays]) 12, 3/1/2013, working days between
11/22/2012) = 109 start_date and end_date.
(Number of workdays Working days exclude weekends
between the start and any dates identified in
(10/1/2012) and end date holidays. Use NETWORKDAYS to
(3/1/2013), with the calculate employee benefits
11/22/2012 holiday as a that accrue based on the
non-working day.) number of days worked during
a specific term.
= TODAY() = YEAR( TODAY())-1963 Returns the serial number of
(This formula uses the the current date
TODAY function as an
argument for the YEAR
function to obtain the

Page 6 of 10
lOMoARcPSD|51275989

current year, and then


subtracts 1963, returning
the person's age.)
=WEEKDAY(serial_number, =WEEKDAY(2/14/2008) = Returns the day of the week
[return_type]) 5 corresponding to a date. The
day is given as an integer,
ranging from 1 (Sunday) to 7
(Saturday), by default.
=WEEKNUM(serial_number, =WEEKNUM(3/9/2012) = Returns the week number of a
[return_type]) 10 specific date. For example, the
(Number of the week in week containing January 1 is
the year that 3/9/2012 the first week of the year, and is
occurs, based on weeks numbered week 1.
beginning on Sunday
(default).)
=WORKDAY(start_date, days, =WORKDAY(10/1/2008,15 Returns a number that
[holidays]) 1) = represents a date that is the
4/30/2009 indicated number of working
days before or after a date (the
starting date). Working days
exclude weekends and any
dates identified as holidays. Use
WORKDAY to exclude weekends
or holidays when you calculate
invoice due dates, expected
delivery times, or the number
of days of work performed.
=YEARFRAC(start_date, =YEARFRAC(1/1/2012, YEARFRAC calculates the
end_date, [basis]) 7/30/2012) = 0.58055556 fraction of the year represented
(Fraction of the year by the number of whole days
between 1/1/2012 and between two dates (the
7/30/12, omitting the start_date and the end_date).
Basis argument.)

Logical Functions
=AND(condition1,condition2,…) =AND(A2>1,A2<100) Use the AND function,
(Displays TRUE if A2 is one of the logical
greater than 1 AND less functions, to
than 100, otherwise it determine if all
displays FALSE.) conditions in a test are
TRUE.
=OR(condition1,condition2,…) =OR(A2>1,A2<100) to determine if any
(Displays TRUE if A2 is conditions in a test are
greater than 1 OR less TRUE.

Page 7 of 10
lOMoARcPSD|51275989

than 100, otherwise it


displays FALSE.)
=NOT(condition1) =NOT(A2>100) Use the NOT function,
(A2 is NOT greater than when you want to
100) make sure one value is
not equal to another.
=IF( condition, value_if_true, =IF(E7=”Yes”,F5*0.0825,0) The IF function is one
[value_if_false] ) (In this example, the of the most popular
formula in F7 is saying functions in Excel, and
IF(E7 = “Yes”, then it allows you to make
calculate the Total Amount logical comparisons
in F5 * 8.25%, otherwise between a value and
no Sales Tax is due so what you expect.
return 0))
So an IF statement can
have two results. The
first result is if your
comparison is True,
the second if your
comparison is False.

LOOKUP FUNCTIONS
=LOOKUP(lookup_value, =LOOKUP(4.19, A2:A6, B2:B6) LOOKUP looks in a
lookup_vector, (Looks up 4.19 in column A, and one-row or one-
[result_vector]) returns the value from column B column range
that is in the same row.) (known as a vector)
for a value and
returns a value
from the same
position in a second
one-row or one-
column range.
=VLOOKUP (value, table, =VLOOKUP(C5,$G$5:$H$10,2,TRUE) Use VLOOKUP, one
col_index, of the lookup and
[range_lookup]) reference functions,
when you need to
find things in a
table or a range by
row. VLOOKUP only
looks right.
VLOOKUP retrieves
data based on

Page 8 of 10
lOMoARcPSD|51275989

column number.
your data must be
sorted in ascending
order by lookup
value when you use
approximate match
mode with
VLOOKUP.
=HLOOKUP( lookup_valu ==HLOOKUP("Axles", A1:C4, 2, The Excel Hlookup
e, table_array, TRUE) function 'looks up' a
row_index_num, (Looks up "Axles" in row 1, and given value in the
[range_lookup] ) returns the value from row 2 that's top row of a data
in the same column (column A).) array (or table), and
returns the
corresponding
value from another
row of the array.
In text-related
Hlookups, when the
[match_type]
argument is set to
0, the lookup_value
can contain the
following wildcard
characters:

? - matches any
single character
* - matches any
sequence of
characters
=MATCH( lookup_value, =MATCH( "aaaa", A1:A5, 0 ) The Excel Match
lookup_array, (Returns the position of “aaaa” in function looks up a
[match_type] ) A1:A5) value in an array,
and returns the
position of the
value within the
array.
=INDEX( array, row_num, =INDEX(A2:B3,2,2) The Excel Index
[col_num] ) (Value at the intersection of the function returns a
second row and second column in reference to a cell
the range A2:B3.) that lies in a
specified row and
column of a range

Page 9 of 10
lOMoARcPSD|51275989

of cells.

Index Function Errors

If you get an error from the Excel Index function this is likely to be one of the following:
Common Errors
#REF! -
Occurs if either:

The supplied row_num argument is greater than the number of rows in the supplied range;
The supplied [col_num] argument is greater than the number of columns in the supplied range;
The supplied [area_num] argument is greater than the number of areas in the supplied range.
#VALUE! - Occurs if any of the supplied row_num, [col_num] or [area_num]
arguments are non-numeric.

Excel Hlookup or Vlookup Function Errors


If you get an error from the Excel Hlookup function this is likely to be one of the following:

#N/A -
Occurs if the Hlookup function fails to find a match to the supplied lookup_value

The cause of this will generally depend on the value of the supplied [range_lookup]:
if [range_lookup] = TRUE
(or is omitted) - the #N/A error is likely to be because the smallest value in the lookup
row is greater than the supplied lookup_value.
if [range_lookup] = FALSE -
the #N/A error is likely to be because an exact match to the lookup_value is not found in the
lookup row.

If you believe an exact match should have been found by the Hlookup function, see the Failure to
Match Values page for details on how to diagnose and resolve this problem.

Page 10 of 10

You might also like