Download as pdf or txt
Download as pdf or txt
You are on page 1of 38

SPK MULTISOFT IT SOLUTIONS PRIVATE LIMITED

Table of Contents
FILTER ...................................................................................................................................................... 2
Filter by text, Number, Date ............................................................................................................... 2
Filter by cell color, font color, or icon set ........................................................................................... 3
ADVANCE FILTER ..................................................................................................................................... 4
How to Use advance filter................................................................................................................... 4
Filter for unique values ....................................................................................................................... 5
Sorting ..................................................................................................................................................... 6
How to Use Simple Sorting ................................................................................................................. 6
How to Use Advance Sorting .............................................................................................................. 6
Functions (Formulas) .............................................................................................................................. 7
SUBTOTAL ........................................................................................................................................... 7
DateDif ................................................................................................................................................ 8
VLOOKUP............................................................................................................................................. 9
How to Return a Value Left of VLOOKUP’s Lookup Column ............................................................. 10
IF........................................................................................................................................................ 14
CONCATENATE .................................................................................................................................. 16
LEFT ................................................................................................................................................... 17
LOWER .............................................................................................................................................. 18
PROPER ............................................................................................................................................. 19
REPLACE ............................................................................................................................................ 20
RIGHT ................................................................................................................................................ 21
SEARCH.............................................................................................................................................. 22
SUBSTITUTE ....................................................................................................................................... 24
TRIM .................................................................................................................................................. 26
NETWORKDAYS ................................................................................................................................. 27
WORKDAY ......................................................................................................................................... 29
NOW .................................................................................................................................................. 31
TODAY ............................................................................................................................................... 31
SUMIF ................................................................................................................................................ 32
SUMIFS .............................................................................................................................................. 34
PMT function..................................................................................................................................... 37
FV function ........................................................................................................................................ 38

1
SPK MULTISOFT IT SOLUTIONS PRIVATE LIMITED

FILTER
Filtered data displays only the rows that meet condition that you specify and
hide rows that you do not want to display. You can also filter by more than one
column. .. Using AutoFilter, you can create three types of filters: by a list
values, by a format, or by criteria. For example, you can filter by cell color or
by a list of numbers, but not by both; you can filter by icon or by a custom filter,
but not by both.
How to apply Filter
1. Select the data where you want to apply Filter
2. On the Data tab, in the Sort & Filter group, click Filter.

Filter by text, Number, Date


1. Click the arrow in the column header.
2. In the list of values, select only that value/values for which you want to
display record or Point to Text Filters/number filters/Date filters and then
choose any condition, or click Custom Filter.
3. In the Custom AutoFilter dialog box, in the box on the right, enter text or
select the value from the list.
3. For multiple conditions, use second row in a same manner that you have used
the first row. To filter the table column or selection so that both criteria must be
true, select And. To filter the table column or selection so that either or both
criteria can be true, select or.

2
SPK MULTISOFT IT SOLUTIONS PRIVATE LIMITED

Filter by cell color, font color, or icon set


If you have formatted range of cells, by cell color or font color, you can also
filter by these colors. You can also filter by an icon set created through a
conditional format.
1. Make sure that the table column contains data formatted by cell color, font
color, or an icon set (No selection is required).
2. Click the arrow in the column header.
3. Select Filter by Color, and then depending on the type of format, select Filter
by Cell Color, Filter by Font Color, or Filter by Cell Icon.
4. Depending on the type of format, select a color, font color, or cell icon.

3
SPK MULTISOFT IT SOLUTIONS PRIVATE LIMITED

ADVANCE FILTER
Filter command has three limitations. To overcome these limitations, there
is a solution and the solution is Advance Filter (Advanced). Following are
the limitation in Filter:

1. More than 2 criteria in one column


2. Multiple criteria in multiple columns and we want OR

How to Use advance filter


1. Write the condition in any excel sheet anywhere with the following
rules:
a. Write down the equal sign (=) first, where we want to apply
condition.
b. After that write down the condition like logical test in if formula.
c. While writing condition, focus should be on the very first value
that is written just below the heading cell
d. Next condition will come in next column with same above rules
e. Conditions that are written in same row will work as AND, in
different rows will be treated as OR.
2. Go to the sheet where you have data
3. On the Data tab, in the Sort & Filter group, click Advanced.

4. Provide inputs one by one.


 List range: the whole data where you want to apply the filter. Make
sure selection must start from heading row
 Criteria range: where you have written the condition
5. Click OK

4
SPK MULTISOFT IT SOLUTIONS PRIVATE LIMITED

Filter for unique values


1. On the Data tab, in the Sort & Filter group, click Advanced.

2. Select the list range and condition

Select the Unique records only check box, and click OK.

5
SPK MULTISOFT IT SOLUTIONS PRIVATE LIMITED

Sorting
This tool arrange the data in a specified order.

How to Use Simple Sorting


1. Select the cell where you want to apply sorting
2. On the Data tab, in the Sort & Filter group, click AZ or ZA option to sort
data in ascending or descending order.

How to Use Advance Sorting


1. Select the cell where you want to apply sorting
2. On the Data tab, in the Sort & Filter group, Choose Sort

3. Add Levels according to your requirement


4. Choose order. If it is custom list then make a list and apply Ok

6
SPK MULTISOFT IT SOLUTIONS PRIVATE LIMITED

Functions (Formulas)
SUBTOTAL

Returns a subtotal in a list or database. Result of Subtotal will change every


time when you apply filter on your data.

Syntax

SUBTOTAL (function_num, ref1, ref2, ...)

Function_num is the number 1 to 11 (includes hidden values) or 101 to 111


(ignores hidden values) that specifies which function to use in calculating
subtotals within a list.

Function_num Function_num
(includes hidden values) (ignores hidden values) Function

1 101 AVERAGE

2 102 COUNT

3 103 COUNTA
4 104 MAX
5 105 MIN

6 106 PRODUCT

7 107 STDEV

8 108 STDEVP

9 109 SUM
10 110 VAR

11 111 VARP

7
SPK MULTISOFT IT SOLUTIONS PRIVATE LIMITED

DateDif

This formula is required to find out the difference between two dates. According
to your choice you can display the result in days, months or years.

Syntax:

= datedif (start date, end date, output mode)

Start Date: means start date or from date

End date: Means To date or end date

Output mode: if you want result in total years then mode will be “y”, in total
month it will be “m”, in total days it will be “d”. If you want to find out
remaining month then output mode will be “ym” and for remaining days it will
be “md”.

8
SPK MULTISOFT IT SOLUTIONS PRIVATE LIMITED

VLOOKUP

Searches for a value in the first column of a table array and returns a value in
the same row from another column in the table array.

The V in VLOOKUP stands for vertical. Lookup means searching.

Syntax

VLOOKUP(lookup_value,table_array,col_index_num,range_lookup)

Lookup_value: The value to search in the first column of the table or you can
say the common value in both table

Table_array: The master file, from you need result. Table will start from
common value column and will finish on that column from you need result.

Col_index_num: The column number in table_array from which the matching


value must be returned. A col_index_num of 1 returns the value in the first
column in table_array; a col_index_num of 2 returns the value in the second
column in table_array, and so on.

Range_lookup: A logical value that specifies whether you want VLOOKUP to


find an exact match or an approximate match:

If TRUE or omitted, an exact or approximate match is returned. If an


exact match is not found, the largest value that is less than lookup_value
is returned.

The values in the first column of table_array must be placed in ascending


sort order; otherwise, VLOOKUP may not give the correct value. For
more information, see Sort data.

If FALSE, VLOOKUP will only find an exact match. In this case, the
values in the first column of table_array do not need to be sorted. If there
are two or more values in the first column of table_array that match the
lookup_value, the first value found is used. If an exact match is not
found, the error value #N/A is returned.

9
SPK MULTISOFT IT SOLUTIONS PRIVATE LIMITED

How to Return a Value Left of VLOOKUP’s Lookup Column


If you have ever tried to return a value that physically lies to the left of the
lookup column, you quickly realize that this task is difficult to accomplish with
the VLOOKUP function. This is a perfect time to move beyond the VLOOKUP
function and explore the INDEX and MATCH functions.

Overview

Consider the following screenshot.

We are trying to populate the report’s CustName column. We would like to


look up the CustID from the Customers table, and return the CustName. The
problem is that in the lookup range, the CustName column lies to the left of the
CustID column. That is, the return column lies to the left of the lookup
column. VLOOKUP is a righty, can’t go left.*

10
SPK MULTISOFT IT SOLUTIONS PRIVATE LIMITED

And this brings us to the reason we are here, to get the hang of using the
INDEX/MATCH combination to return values that lie to the left of the lookup
column.

MATCH

Let’s take them one at a time. The MATCH function returns the relative
position of a list item. If we asked Excel to MATCH “Jun” in a list of month
abbreviations, it would return 6. ”Apr” would return 4. This idea is illustrated
in the screenshot below.

The syntax of the MATCH function follows:

=MATCH(lookup_value,lookup_array,[match_type])

Where:

 lookup_value is the value we are trying to find

 lookup_array is where we are looking

 [match_type] is typically 0 for exact match, but there are other choices to
explore here

In our screenshot, we use the following function to return the relative position
of the month name:

=MATCH(C6,B11:B22,0)
11
SPK MULTISOFT IT SOLUTIONS PRIVATE LIMITED

We are trying to find the relative position of our month (C6), in the list of
month abbreviations (B11:B22), and zero for exact match.

Just remember, the MATCH function returns the relative position of a list item.

INDEX

The INDEX function returns the cell value from a range at a given position.

The syntax of the INDEX function follows:

=INDEX(array, row_num, [column_num])

Where:

 array is the range that has the value you want to return

 row_num is the relative row position that has the value you want to
return

 [column_num] is the optional column number, useful when performing


two-dimensional lookups

What we’ll do is use the INDEX function to return a cell value, and we’ll nest
the MATCH function in there so that it can tell the INDEX function which row
has the value we want. Our INDEX/MATCH formula will look something like
this:

=INDEX(array, MATCH(...))

Where the MATCH function figures out the row number argument. The
MATCH function returns the relative row number to the INDEX function.

Consider the screenshot below:

12
SPK MULTISOFT IT SOLUTIONS PRIVATE LIMITED

We used the INDEX function to return a value from the CustName column. For
the row_num argument, we used the MATCH function to determine the relative
position of the CustID within the CustID column.**

The formula used in C7 is:

=INDEX($B$16:$B$27,MATCH(B7,$C$16:$C$27,0))

Where:

 $B$16:$B$27 is the list that contains the value we wish to return, the
CustName column

 MATCH(B7,$C$16:$C$27,0) determines the row for the INDEX


function

 Where:

 B7 is the value we are trying to find, our CustID

 $C$16:$C$27 is where we are looking, the CustID column

 0 means exact match

The INDEX/MATCH combination is quite handy, and can be used to return


values that lie to the left of the lookup column.

13
SPK MULTISOFT IT SOLUTIONS PRIVATE LIMITED

IF

Returns one value if a condition you specify evaluates to TRUE and another
value if it evaluates to FALSE.

Use IF to conduct conditional tests on values and formulas.

Syntax

IF(logical_test,value_if_true,value_if_false)

Logical_test: Means condition.

Value_if_true: is the value or result that you want if logical_test is TRUE.

Value_if_false: is the value or result that you want if logical_test is FALSE.

Example:

A B

1 Actual Expenses Predicted Expenses

2 1500 900
3 500 900

4 500 925

Formula Description (Result)

=IF(A2>B2,"Over Checks whether the first row is over


Budget","OK") budget (Over Budget)
=IF(A3>B3,"Over Checks whether the second row is
Budget","OK") over budget (OK)

14
SPK MULTISOFT IT SOLUTIONS PRIVATE LIMITED

Example:

1 Score
2 45
3 90

4 78

Description
Formula (Result)

=IF(A2>89,"A",IF(A2>79,"B", Assigns a letter


IF(A2>69,"C",IF(A2>59,"D","F")))) grade to the first
score (F)

=IF(A3>89,"A",IF(A3>79,"B", Assigns a letter


IF(A3>69,"C",IF(A3>59,"D","F")))) grade to the second
score (A)

=IF(A4>89,"A",IF(A4>79,"B", Assigns a letter


IF(A4>69,"C",IF(A4>59,"D","F")))) grade to the third
score (C)

In the preceding example, the second IF statement is also the value_if_false


argument to the first IF statement. Similarly, the third IF statement is the
value_if_false argument to the second IF statement. For example, if the first
logical_test (Average>89) is TRUE, "A" is returned. If the first logical_test is
FALSE, the second IF statement is evaluated, and so on.

The letter grades are assigned to numbers using the following key.

If Score is Then return

Greater than 89 A

From 80 to 89 B

From 70 to 79 C
From 60 to 69 D

15
SPK MULTISOFT IT SOLUTIONS PRIVATE LIMITED

CONCATENATE

Joins two or more text strings into one text string.

Syntax

CONCATENATE (text1,text2,...)

Text1, text2, ... are 2 to 255 text items to be joined into a single text item. The
text items can be text strings, numbers, or single-cell references.

Remarks

You can also use the ampersand (&) calculation operator instead of the
CONCATENATE function to join text items. For example, =A1&B1 returns the
same value as =CONCATENATE(A1,B1).

Example

1 Data

2 brook trout
3 Species
4 32

Formula Description
=CONCATENATE("Stream Concatenates a sentence
population for ",A2," ",A3," is from the data above
",A4,"/mile") (Stream population for
brook trout species is
32/mile)

16
SPK MULTISOFT IT SOLUTIONS PRIVATE LIMITED

LEFT

LEFT returns the first character or characters in a text string, based on the
number of characters you specify.

Syntax

LEFT(text,num_chars)

Text is the text string that contains the characters you want to extract.

Num_chars specifies the number of characters you want LEFT to extract.

Num_chars must be greater than or equal to zero.

If num_chars is greater than the length of text, LEFT returns all of text.

If num_chars is omitted, it is assumed to be 1.

Example

A
1 Data
2 Sale Price

3 Sweden

Formula Description (Result)

=LEFT(A2,4) First four characters in the first string (Sale)


=LEFT(A3) First character in the second string (S)

17
SPK MULTISOFT IT SOLUTIONS PRIVATE LIMITED

LOWER

Converts all letters in a text string to lowercase.

Syntax

LOWER(text)

Text is the text you want to convert to lowercase. LOWER does not change
characters in text that are not letters.

Example

1 Data
2 E. E. Cummings
3 Apt. 2B

Formula Description (Result)

=LOWER(A2) Lower case of first string (e. e. cummings)

=LOWER(A3) Lower case of last string (apt. 2b)

18
SPK MULTISOFT IT SOLUTIONS PRIVATE LIMITED

PROPER

Capitalizes the first letter in a text string and any other letters in text that follow
any character other than a letter. Converts all other letters to lowercase letters.

Syntax

PROPER(text)

Text is text enclosed in quotation marks, a formula that returns text, or a


reference to a cell containing the text you want to partially capitalize.

Example

1 Data
2 this is a TITLE

3 2-cent's worth

4 76BudGet

Formula Description (Result)


=PROPER(A2) Proper case of first string (This Is A Title)

=PROPER(A3) Proper case of second string (2-Cent'S Worth)


=PROPER(A4) Proper case of third string (76Budget)

19
SPK MULTISOFT IT SOLUTIONS PRIVATE LIMITED

REPLACE

REPLACE replaces part of a text string, based on the number of characters you
specify, with a different text string.

Syntax:

REPLACE(old_text,start_num,num_chars,new_text)

Old_text is text in which you want to replace some characters.


Start_num is the position of the character in old_text that you want to replace
with new_text.
Num_chars is the number of characters in old_text that you want REPLACE to
replace with new_text.
New_text is the text that will replace characters in old_text.

Example

1 Data

2 Abcdefghijk
3 2009

4 123456
Formula Description (Result)

=REPLACE(A2,6,5,"*") Replaces five characters, starting


with the sixth character (abcde*k)

=REPLACE(A3,3,2,"10") Replaces the last two digits of 2009


with 10 (2010)

=REPLACE(A4,1,3,"@") Replaces the first three characters


with @ (@456)

20
SPK MULTISOFT IT SOLUTIONS PRIVATE LIMITED

RIGHT

RIGHT returns the last character or characters in a text string, based on the
number of characters you specify.

Syntax

RIGHT(text,num_chars)

Text is the text string containing the characters you want to extract.

Num_chars specifies the number of characters you want RIGHT to extract.

Remarks

Num_chars must be greater than or equal to zero.

If num_chars is greater than the length of text, RIGHT returns all of text.

If num_chars is omitted, it is assumed to be 1.

Example:

1 Data

2 Sale Price

3 Stock Number

Formula Description (Result)


=RIGHT(A2,5) Last 5 characters of the first string (Price)

=RIGHT(A3) Last character of the second string (r)

21
SPK MULTISOFT IT SOLUTIONS PRIVATE LIMITED

SEARCH

SEARCH locate one text string within a second text string, and return the
number of the starting position of the first text string from the first character of
the second text string.

Syntax

SEARCH(find_text,within_text,start_num)

Find_text is the text you want to find.

Within_text is the text in which you want to search for find_text.

Start_num is the character number in within_text at which you want to start


searching.

Remarks

You can use the wildcard characters, question mark (?) and asterisk (*),
in find_text. A question mark matches any single character; an asterisk
matches any sequence of characters. If you want to find an actual
question mark or asterisk, type a tilde (~) before the character.

If find_text is not found, the #VALUE! error value is returned.

If start_num is omitted, it is assumed to be 1.

If start_num is not greater than 0 (zero) or is greater than the length of


within_text, the #VALUE! error value is returned.

22
SPK MULTISOFT IT SOLUTIONS PRIVATE LIMITED

Example:

1 Data

2 Statements

3 Profit Margin

4 Margin
Description
Formula (Result)
=SEARCH("e",A2,6) Position of the
first "e" in the
first string
above, starting
at the sixth
position (7)

=SEARCH(A4,A3) Position of
"margin" in
"Profit
Margin" (8)

=REPLACE(A3,SEARCH(A4,A3),6,"Amount") Replaces
"Margin" with
"Amount"
(Profit
Amount)

23
SPK MULTISOFT IT SOLUTIONS PRIVATE LIMITED

SUBSTITUTE

Substitutes new_text for old_text in a text string. Use SUBSTITUTE when you
want to replace specific text in a text string; use REPLACE when you want to
replace any text that occurs in a specific location in a text string.

Syntax

SUBSTITUTE(text,old_text,new_text,instance_num)

Text is the text or the reference to a cell containing text for which you want to
substitute characters.

Old_text is the text you want to replace.

New_text is the text you want to replace old_text with.

Instance_num specifies which occurrence of old_text you want to replace with


new_text. If you specify instance_num, only that instance of old_text is
replaced. Otherwise, every occurrence of old_text in text is changed to
new_text.

24
SPK MULTISOFT IT SOLUTIONS PRIVATE LIMITED

Example:

1 Data

2 Sales Data

3 Quarter 1, 2008

4 Quarter 1, 2011
Formula Description (Result)

=SUBSTITUTE(A2, Substitutes Cost for Sales (Cost


"Sales", "Cost") Data)

=SUBSTITUTE(A3, "1", Substitutes first instance of "1"


"2", 1) with "2" (Quarter 2, 2008)

=SUBSTITUTE(A4, "1", Substitutes third instance of "1"


"2", 3) with "2" (Quarter 1, 2012)

25
SPK MULTISOFT IT SOLUTIONS PRIVATE LIMITED

TRIM

Removes all spaces from text except for single spaces between words. Use
TRIM on text that you have received from another application that may have
irregular spacing.

Syntax

TRIM(text)

Text is the text from which you want spaces removed.

Example:

A B

1 Formula Description (Result)


2 =TRIM(" First Removes leading and trailing spaces from
Quarter Earnings ") the text in the formula (First Quarter
Earnings)

26
SPK MULTISOFT IT SOLUTIONS PRIVATE LIMITED

NETWORKDAYS

Syntax

NETWORKDAYS(start_date,end_date,holidays)

Start_date is a date that represents the start date.

End_date is a date that represents the end date.

Holidays is an optional range of one or more dates to exclude from the working
calendar, such as state and federal holidays and floating holidays. The list can
be either a range of cells that contains the dates or an array constant (array:
Used to build single formulas that produce multiple results or that operate on a
group of arguments that are arranged in rows and columns. An array range
shares a common formula; an array constant is a group of constants used as an
argument.) of the serial numbers that represent the dates.

Remarks

If any argument is not a valid date, NETWORKDAYS returns the


#VALUE! error value.

Example

A B

1 Date Description

2 10/01/2008 Start date of project

3 3/01/2009 End date of project


4 11/26/2008 Holiday

5 12/4/2008 Holiday

6 1/21/2009 Holiday
Formula Description (Result)

27
SPK MULTISOFT IT SOLUTIONS PRIVATE LIMITED

=NETWORKDAYS(A2,A3) Number of workdays


between the start and end
date above (108)

=NETWORKDAYS(A2,A3,A4) Number of workdays


between the start and end
date above, excluding the
first holiday (107)

=NETWORKDAYS(A2,A3,A4:A6) Number of workdays


between the start and end
date above, excluding
every holiday above (105)

28
SPK MULTISOFT IT SOLUTIONS PRIVATE LIMITED

WORKDAY

Returns a number that represents a date that is the 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.

Syntax

WORKDAY(start_date,days,holidays)

Start_date is a date that represents the start date.

Days is the number of nonweekend and nonholiday days before or after


start_date. A positive value for days yields a future date; a negative value yields
a past date.

Holidays is an optional list of one or more dates to exclude from the working
calendar, such as state and federal holidays and floating holidays. The list can
be either a range of cells that contain the dates or an array constant (array: Used
to build single formulas that produce multiple results or that operate on a group
of arguments that are arranged in rows and columns. An array range shares a
common formula; an array constant is a group of constants used as an
argument.) of the serial numbers that represent the dates.

Remarks

If any argument is not a valid date, WORKDAY returns the #VALUE!


error value.

If start_date plus days yields an invalid date, WORKDAY returns the


#NUM! error value.

If days is not an integer, it is truncated.

Example

29
SPK MULTISOFT IT SOLUTIONS PRIVATE LIMITED

A B

1 Date Description

2 10/01/2008 Start date

3 151 Days to completion

4 11/26/2008 Holiday

5 12/4/2008 Holiday

6 1/21/2009 Holiday
Formula Description (Result)

=WORKDAY(A2,A3) Date 151 workdays from the


start date (4/30/2009)

=WORKDAY(A2,A3,A4:A6) Date 151 workdays from the


start date, excluding holidays
(5/5/2009)

Notes

To view the number as a date, select the cell, and then on the Sheet tab,
in the Number group, click the arrow next to Number Format, and click
Short Date or Long Date.

30
SPK MULTISOFT IT SOLUTIONS PRIVATE LIMITED

NOW

Returns current date and time. If the cell format was General before the function
was entered, the result is formatted as a date.

Syntax

NOW ( )

Remarks

The NOW function changes only when the worksheet is calculated or


when a macro that contains the function is run. It is not updated
continuously.

TODAY

Returns current date only.

Syntax

TODAY ( )

Remarks

The TODAY function changes only when the worksheet is calculated or


when a macro that contains the function is run. It is not updated
continuously.

31
SPK MULTISOFT IT SOLUTIONS PRIVATE LIMITED

SUMIF

Adds the cells specified by a given criteria.

Syntax

SUMIF(range,criteria,sum_range)

Range is the range of cells that you want evaluated by criteria. Cells in each
range must be numbers or names, arrays, or references that contain numbers.
Blank and text values are ignored.

Criteria is the criteria in the form of a number, expression, or text that defines
which cells will be added. For example, criteria can be expressed as 32, "32",
">32", or "apples".

Sum_range are the actual cells to add if their corresponding cells in range
match criteria. If sum_range is omitted, the cells in range are both evaluated by
criteria and added if they match criteria.

Remarks

Sum_range does not have to be the same size and shape as range. The
actual cells that are added are determined by using the top, left cell in
sum_range as the beginning cell, and then including cells that correspond
in size and shape to range. For example:

If range is And sum_range is Then the actual cells are

A1:A5 B1:B5 B1:B5

A1:A5 B1:B3 B1:B5

A1:B4 C1:D4 C1:D4

A1:B4 C1:C2 C1:D4

You can use the wildcard characters, question mark (?) and asterisk (*),
in criteria. A question mark matches any single character; an asterisk

32
SPK MULTISOFT IT SOLUTIONS PRIVATE LIMITED

matches any sequence of characters. If you want to find an actual


question mark or asterisk, type a tilde (~) preceding the character.

Example

A B

1 Property Value Commission

2 100,000 7,000

3 200,000 14,000
4 300,000 21,000

5 400,000 28,000
Formula Description (Result)

=SUMIF(A2:A5,">160000",B2:B5) Sum of the commissions


for property values over
160,000 (63,000)
=SUMIF(A2:A5,">160000") Sum of the property values
over 160,000 (900,000)

=SUMIF(A2:A5,"=300000",B2:B3) Sum of the commissions


for property values equal
to 300,000 (21,000)

33
SPK MULTISOFT IT SOLUTIONS PRIVATE LIMITED

SUMIFS

Adds the cells in a range that meet multiple criteria.

Important The order of arguments is different between SUMIFS and SUMIF.


In particular, the sum_range argument is the first argument in SUMIFS, but it is
the third argument in SUMIF. If you are copying and editing these similar
functions, make sure you put the arguments in the correct order.

Syntax

SUMIFS(sum_range,criteria_range1,criteria1,criteria_range2,criteria2…)

Sum_range is one or more cells to sum, including numbers or names, arrays, or


references that contain numbers. Blank and text values are ignored.

Criteria_range1, criteria_range2, … are 1 to 127 ranges in which to evaluate


the associated criteria.

Criteria1, criteria2, … are 1 to 127 criteria in the form of a number,


expression, cell reference, or text that define which cells will be added. For
example, criteria can be expressed as 32, "32", ">32", "apples", or B4.

Remarks

Each cell in sum_range is summed only if all of the corresponding


criteria specified are true for that cell.

Cells in sum_range that contain TRUE evaluate as 1; cells in sum_range


that contain FALSE evaluate as 0 (zero).

Unlike the range and criteria arguments in the SUMIF function, in


SUMIFS each criteria_range must be the same size and shape as
sum_range.

You can use the wildcard characters, question mark (?) and asterisk (*),
in criteria. A question mark matches any single character; an asterisk
matches any sequence of characters. If you want to find an actual
question mark or asterisk, type a tilde (~) before the character.

34
SPK MULTISOFT IT SOLUTIONS PRIVATE LIMITED

Example: Adding amounts from bank accounts based on interest paid

A B C D E

Acc Acc Acc Acc


1 ount ount ount ount
Totals 1 2 3 4
2
Amount in dollars 100 390 832 500
3 1
4 Interest paid (2000) 1% 0.5 3% 4%
%

Interest paid (2001) 1% 1.3 2.1 2%


% %

Interest paid (2002) 0.5 3% 1% 4%


%
Formula Description (result)

=SUMIFS(B2:E2,B3:E3,">3%",B4: Total amounts from each


E4,">=2%") bank account where the
interest was greater than
3% for the year 2000 and
greater than or equal to 2%
for the year 2001 (500)
=SUMIFS(B2:E2,B5:E5,">=1%",B5 Total amounts from each
:E5,"<=3%",B4:E4,">1%") bank account where the
interest was between 1%
and 3% for the year 2002
and greater than 1% for the
year 2001 (8711)

Example: Adding rainfall for specific days

A B C D E

35
SPK MULTISOFT IT SOLUTIONS PRIVATE LIMITED

1 Fir Thi
st Seco rd Four
2 Morning and Evening Da nd Da th
Measurements y Day y Day
3
AM: rain (total inches) 1.3 0 1.5 3
4
PM: rain (total inches) 2 0.8 4 2.5
5
AM: average temperature (degrees) 56 44 40 38
6
PM: average temperature (degrees) 54 34 38 77
7
AM: average wind speed (miles per 13 6 8 1
hour)

PM: average wind speed (miles per 0 33 4 12


hour)
Formula Description (result)
=SUMIFS(B2:E3,B4:E5,">=40",B6 Add the total amount of
:E7,"<10") rainfall for days when the
average temperature was at
least 40 degrees Fahrenheit
and the average wind
speed was less that 10
miles per hour (3.5)

36
SPK MULTISOFT IT SOLUTIONS PRIVATE LIMITED

PMT function
Calculates the payment for a loan based on constant payments and a constant
interest rate.

Syntax
PMT(rate, nper, pv, [fv], [type])

Note For a more complete description of the arguments in PMT, see the PV
function.
The PMT function syntax has the following arguments:

Rate: Required. The interest rate for the loan.

Nper: Required. The total number of payments for the loan.

Pv: Required. The present value, or the total amount that a series of
future payments is worth now; also known as the principal.

Fv: Optional. The future value, or a cash balance you want to attain
after the last payment is made. If fv is omitted, it is assumed to be 0
(zero), that is, the future value of a loan is 0.

Type: Optional. The number 0 (zero) or 1 and indicates when payments


are due.

37
SPK MULTISOFT IT SOLUTIONS PRIVATE LIMITED

FV function
Returns the future value of an investment based on periodic, constant payments
and a constant interest rate.

Syntax
FV(rate,nper,pmt,[pv],[type])

The FV function syntax has the following arguments:

Rate Required. The interest rate per period.

Nper Required. The total number of payment periods in an annuity.

Pmt Required. The payment made each period; it cannot change over
the life of the annuity. Typically, pmt contains principal and interest but
no other fees or taxes. If pmt is omitted, you must include the pv
argument.

Pv Optional. The present value, or the lump-sum amount that a series of


future payments is worth right now. If pv is omitted, it is assumed to be 0
(zero), and you must include the pmt argument.

Type Optional. The number 0 or 1 and indicates when payments are


due. If type is omitted, it is assumed to be 0.

38

You might also like