Вы находитесь на странице: 1из 29

BASIC SUM FUNCTION

Value 1 Value 2 Add Minus Multiply Divide %Age

1000 100 1100 900 100000 10 10%
1500 150 1650 1350 225000 10 10%
1750 400 2150 1350 700000 4.375 23%
2100 700 2800 1400 1470000 3 33%
2500 800 3300 1700 2000000 3.125 32%
2600 1050 3650 1550 2730000 2.47619 40%
3300 1100 4400 2200 3630000 3 33%
4000 1600 5600 2400 6400000 2.5 40%
4500 2000 6500 2500 9000000 2.25 44%
23250 7900 31150 15350 26255000
Auto sum

2 SUBTRACT =SUM(A1-A1)
3 MULTIPLY =SUM(A1*A1)
4 DIVISION =SUM(A1/A1)
5 %AGE =SUM(A1/A1)*100
6 Autosum , ALT+=

NOTE:
THE A1 REFER TO COLUMN A ROW 1
THE B1 REFER TO COLUMN B ROW 1
For Autosum you just have to be on the cell in which you want the sum and then press ALT&= key
m and then press ALT&= key
Stats Formulas
Sum Sumif Count Countif Counta Coutblank
100 100 100 100 100
150 150 150 150 150
400 400 400 400 400 400
700 700 700 700 700 700
800 800 800 800
1050 1050 1050 1050 1050 1050
1100 1100 1100 1100 1100 1100
1600 1600 1600 1600
2000 2000 2000 2000 2000 2000
7900 7250 9 0 6 3

7 sum =SUM(A3:A11) OR "="sum(range) RETURN WILL BE SUM OF THE RAN

8 Count =COUNT(C3:C11) OR "="Count(range) RETURN WILL BE COUNT OF THE R
9 Average =AVERAGE(I3:I11) OR "="Average(range) RETURN WILL BE AN AVEARAGE O
10 Sumif =SUMIF(B3:B11,">=700") OR "="sumif(range,"criteria") RETURN WILL BE AN SUM ACCORD
11 Countif =COUNTIF(D3:D11,"">=800) OR "="countif(range,"criteria") RETURN WILL BE AN COUNT ACCO
12 Averageif =AVERAGEIF(K3:K11,">700") OR "="averageif(range,"criteria") RETURN WILL BE AN AVEARAGE A
13 Averagea =AVERAGEA(J3:J11) OR "="averagea(Range) RETURN WILL BE AN AVERAGE OF
14 Counta =COUNTA(E3:E11) OR "="Counta(Range) RETURN WILL COUNT OF THE CELL
15 Countblank =COUNTBLANK(F3:F11) OR "="Countblank(Range) RETURN WILL COUNT OF THE BLA
16 Max =MAX(G3:G11) OR "="Max(Range) RETURN WILL BE THE MAX VALUE
17 Min =MIN(H3:H11) OR "="Min(Range) RETURN WILL BE THE MIN VALUE
18 Covar =COVAR(M4:M7,N4:N7) OR "="Covar(Array1,Array2) RETURN WILL BE THE AVERAGE W
19 Random # =ROUND(RAND()*100,0) OR "="Round(Rand()*100,0) RETURN WOULD BE A RANDOM N
Formulas
Max Min Average Averagea Averageif Covar Random #
100 100 100 100 100 Education Salary 1
150 150 150 150 150 Matric 10 10000 38
400 400 400 400 400 inter 12 15000 88
700 700 700 700 Graduate 14 25000 12
800 800 800 800 800 Masters 16 35000 64
1050 1050 1050 1050 1050 Covar 21250 37
1100 1100 1100 1100 1100 98
1600 1600 1600 1600 73
2000 2000 2000 2000 2000 32
2000 100 877.7778 800 1310 25

WILL BE SUM OF THE RANGE GIVEN

WILL BE COUNT OF THE RANGE GIVEN
WILL BE AN AVEARAGE OF THE RANGE GIVEN
WILL BE AN SUM ACCORDING TO YOUR GIVEN RANGE & CRITERIA
WILL BE AN COUNT ACCORDING TO YOUR GIVEN RANGE & CRITERIA
WILL BE AN AVEARAGE ACCORDING TO YOUR GIVEN RANGE & CRITERIA
WILL BE AN AVERAGE OF THE CELLS AMONGST A RANGE WITH VALUE
WILL COUNT OF THE CELLS WITH VALUE IN A GIVEN RANGE
WILL COUNT OF THE BLANK CELLS IN A GIVEN RANGE
WILL BE THE MAX VALUE IN RANGE
WILL BE THE MIN VALUE IN RANGE
WILL BE THE AVERAGE WHEN TWO COORDINATES ARE INVOLVE IN CALCULATION
WOULD BE A RANDOM NUMBER
A B C
Concatenate
Ten thousand three hundred and fourty rupee only
10, 50 20

20 Concatenate =CONCATENATE(A4,B4,C4)
21 Dollar =DOLLAR(E4)
22 Value =VALUE(F4)
23 Exact =EXACT(I4,H4)
24 Len =LEN(I4)
25 Lower =LOWER(L4)
26 Upper =UPPER(M4)
27 Proper =PROPER(N4)
28 Left =LEFT(P5,4)
29 Mid =MID(P6,5,4)
30 Right =RIGHT(P4,4)
31 Repeat =REPT(V4,2)
32 Trim =TRIM(X4)
D E F G
Concatenate Dollar/Value Dollar Value
Ten thousand three hundred and fourty rupee only 1000 \$1,000.00 1000
10,5020 1500 \$1,500.00 1500
Fahad and Mustafa 2000 \$2,000.00 2000
2500 \$2,500.00 2500
3000 \$3,000.00 3000

RETURN WILL BE THE MERGER OF ALL CELLS VALUE GIVE

RETURN WILL BE THE VALUE CONVERTED TO DOLLARS
RETURN WILL BE THE DOLLAR CONVERTED TO VALUE
RETURN WILL SHOW EITHER TWO VALUES ARE EXACTLY THE SAME OR NOT IN FORM OF TRUE & FALSE
RETURN WILL SHOW THE LENGTH OF VALUE IN DIGITS
RETURN WILL CONVERT ANY CASE TO LOWER
RETURN WILL CONVERT ANY CASE TO UPPER
RETURN WILL CONVERT ANY CASE TO PROPER
RETURN WILL EXTRACT THE VALUE FROM LEFT SIDE
RETURN WILL EXTRACT THE VALUE FROM MIDDLE
RETURN WILL EXTRACT THE VALUE FROM RIGHT SIDE
RETURN WILL REPATE THE CELL VALUE FOR AS MANY TIME AS YOU NEED
RETURN WILL TRIM THE UNWANTED SPACES
H I J K L M N
Exact/Length Exact Length Cases Lower Upper
35201-8467658-7 35201-8467658-7 1 15 Zahid zahid ZAHID
35201-8468658-7 35201-8468658-7 1 15 Nusrat nusrat NUSRAT
35201-8467658-7 35201-8467658-7 1 15 Saqib saqib SAQIB

OF TRUE & FALSE

O P Q R S T U V W
Proper Text To Column Repeate Repeate
Zahid abc-shift1-1100 1100 Right zahid zahidzahid
Nusrat abc-1100-shift1 1100 Mid Nusrat Nusrat Nusrat
Saqib abc-1100-shift1 1100 Mid Saqib Saqib Saqib
X Y
Trim Trim
zahid zahid
Nusrat Nusrat
Saqib Saqib
Date Fucntion
Dates Return Formula For Shor Key
1/10/2016 2016 Year
5/1/2017 5 Month
1/15/2018 15 Day
1/14/2015 3 Hour
1/12/2014 15 Minute
1/11/2013 15 Second
3/8/2017 1/29/2019 Today ctrl+:
5/15/2016 Date
5:36 PM 3:15 AM Time ctrl+Shift+:
1/29/2019 12:03 Now
3/8/2017 4 Weekday
12/31/2017 53 Weeknum
Workday & Networkdays
Dates Remarks Return Formula For
1/1/2017 Start Date 1/2/2018 Workday
260 Days To complete 260 Networkday
3/23/2017 Holiday 1/1/2018 Workday.Int
8/14/2017 Holiday 262 Networkday.Int
12/25/2017 10/26/2018 305 days
12/25/2017 10/26/2018 301 days360
10/26/2018 43 ISOWEEKNUM
10/26/2018 6 WEEKDAY
10/26/2018 43 WEEKNUM

33 Year
34 Month
35 Day
(Date)
36 Hour
37 Minute
38 Second
39 Today ()Empty Brackets
40 Date (Year,Month,Date)
41 Time (Hour,Minute,Second)
42 Now ()Empty Brackets
43 Workday (Start date,Workdays,Holidays Range) RETURN WILL BE THE DATE ON WHICH TH
44 Networkdays (Start date,End Date,Holidays Range) RETURN WILL BE THE NUMBER OF DAYS R
45 Days (End Date,Start Date) RETURN THE DAYS BETWEEN TWO DATES
46 Days360 (Start Date,End Date) RETURN THE DAYS BETWEEN TWO DAYS A
47 WORKDAY.INT RETURN WILL BE THE DATE ON WHICH TH
48 NETWORKDAYS.INT RETURN WILL BE THE NUMBER OF DAYS R
49 ISOWEEKNUM RETUN THE NUMBER OF WEEKS IN A DAT
50 WEEKDAY RETURN THE NUMBER OF DAY ROM 1 TO
51 WEEKNUM RETURN THE NUMBER OF WEEKS IN A DA
BE THE DATE ON WHICH THE TASK MAY END
BE THE NUMBER OF DAYS REQUIRE FOR A TASK
DAYS BETWEEN TWO DATES
DAYS BETWEEN TWO DAYS ASSUMING 30 DAYS PER MONTH
BE THE DATE ON WHICH THE TASK MAY END AS PER CUSTOMIZED WEEKENDS
BE THE NUMBER OF DAYS REQUIRE FOR A TASK AS PER CUSTOMIZED WEEKENDS
UMBER OF WEEKS IN A DATE
NUMBER OF DAY ROM 1 TO 7 IN A DATE
NUMBER OF WEEKS IN A DATE
Error.Type Info
Sr.# If Error Value Return Sr.# Formula Formula Applied
52 #NULL! 1 54 info("directory") #N/A
53 #DIV/0! 2 55 info("numfile") 1
54 #VALUE! 3 56 info("origin") #N/A
55 #REF! 4 57 info("osversion") Windows (32-bit) NT 5.01
56 #NAME? 5 58 info("recalc") Automatic
57 #NUM! 6 59 info("release") 10m0(Build:2)
58 #N/A 7 60 info("system") LINUX
59 Anything else #N/A
Info
Return Sr.# Formula Value Formula Applied Value
Path of current directory and folder 60 ISBLANK 1 120
Number of worksheets 61 ISERR #NAME? 1 0
Origin of worksheet 62 ISERROR #DIV/0! 1 21
Operating system version 63 ISLOGICAL 1 0 Good
Calculation method 64 ISNA #N/A 1 #N/A!
Version of microsoft excel 65 ISNONTEXT 120 1 Text
Name of system 66 ISNUMBER 120 1 Text
67 ISREF 7 1
68 ISTEXT Text 1 123
69 ISODD 3 1 2
70 ISEVEN 2 1 3
Is Function
Formula Applied
0
0
0
0
0
0
0

0
0
0
Is Function
Return
Value refers to an empty cell.
Value refers to any error value except #N/A.
Value refers to any error value (#N/A, #VALUE!, #REF!, #DIV/0!, #NUM!, #NAME?, or #NULL!).
Value refers to a logical value.
Value refers to the #N/A (value not available) error value.
Value refers to any item that is not text. (Note that this function returns TRUE if value refers to a blank cell.)
Value refers to a number.
Value refers to a reference.
Value refers to text.
Value refers to an odd number
Value refers to an even number
N Function Type Function
Sr.# If Value Value Formula Applied Return Sr.# If Value
71 A number 2 2 That number 77 Number
72 A date, in 12/22/2017 43091 The serial number of that date 78 Text
73 TRUE 1 11 79 Logical value
74 FALSE 0 00 80 Error value
75 An error va#NAME? #NAME? The error value 81 Array
76 Anything e< 00
Type Function
Values Formula Applied Return
10 1 1
Abc 2 2
4
#NAME? 16 16
{2,3,4} 64 64
SR.# FORMULA VALUE RETURN
82 ROUND 100.256 100.26 ROND TO DECIMAL REQUIRED
83 ROUNDUP 250.587 251 ROUND UP TO NEAREST UNIT 1 WITHOUT DECIMAL
84 ROUNDDOWN 981 980 ROUND DOWN TO NEAREST UNIT WITHOUT DECIMAL
85 CEILING 567.458 0.10 567.5 ROUND UPTO A SPECIFIC MULTIPLE
86 INT 597.328 597 ROUND TO INTEGER PART OF THE NUMBER
87 TRUNC 598.328 598 ROUND TO TRUNCATED NUMBER
88 ODD 599.328 601 ROUND TO ODD NUMBER
89 EVEN 600.328 602 ROUND TO EVEN NUMBER
90 FLOOR 601.328 100 600 ROUND TO NEAREST HUNDRED
91 MROUND 602.328 3 603 ROUND TO NEAREST THREE
92 ISEVEN 602.328 1 RETURN TRUE IF NUMBER IS EVEN
93 ISODD 600.328 0 REURN TRUE IF NUMBER IS ODD
UT DECIMAL
Logical Function
IF Function Example1 To Know The Amount Of Discount
PRODUCTS SELLING PRICE QUANTITY GROSS PAYMENT DISCOUNT NET PAYMENT
DETTOL 60 15 900 135 765
60 9 540 27 513
LUX 50 20 1000 200 800
50 13 650 65 585
COLGATE 100 30 3000 900 2100
100 19 1900 285 1615
TIBBET 35 35 1225 367.5 857.5
35 25 875 218.75 656.25
RUSK 150 35 5250 1575 3675
150 30 4500 1350 3150
19840 5123.25 14716.75

DISCOUNT IF(C17>=30,D17*0.3,IF(C17>=25,D17*0.25,IF(C17>=20,D17*0.2,IF(C17>=15,D17*0.15,IF(C17>=10,D17*0.1,0

IF Function Example2 To Know The Grade , Remarks , Reward

NAME TOTAL MARKS OBTAINED MARKS %AGE GRADE REMARKS
ALI 1000 900 90% A+ BRILLIANT
AHMED 1000 800 80% A VERY GOOD
AKRAM 1000 700 70% B GOOD
NAWAZ 1000 600 60% C KEEP IT UP
RASHEED 1000 500 50% D WORK HARD
GOHAR 1000 400 40% E POOR
ABID 1000 300 30% F VERY POOR

REMARKS IF(E2="A+","BRILLIANT",IF(E2="A","VERY GOOD",IF(E2="B","GOOD",IF(E2="C","KEEP IT UP",IF(E2="D","WO
REWARD IF(D2>=90%,"1000",IF(D2>=80%,"800",IF(D2>=70%,"700",IF(D2>=60%,"500",IF(D2>=50%,"250",IF(D2>=40%
IF Function Example3
Employee SALES REPORT OF COCA COLA BEVERAGE
Code NAME BASIC SALE1 SALE2 SALE3
101 NOMAN 2500 900 800 250
102 QADIR 2000 150 250 900
103 ARIF 2200 100 300 500
104 ZAHID 2500 450 250 400
105 BABAR 2400 150 100 400
HELP WITH INSTRUCTIONS
1 Calculate Tot.Sale
2 Calculate Allowance1 Using Nested IF Condition
IF(Tot.Sale>=1000,Basic*35%,IF(Tot.Sale>=800,Basic*25%,"Try Again")) WHAT IS THIS?
3 Calculate Allowance2 Using IF(OR) Condition
IF(OR(Tot.Sale>800,Basic=2500),1000,500) IF(OR(
4 Calculate Allowance3 Using IF(AND) Condition Returns TRUE if any argument is TR
returns FALSE if all arguments are F
Syntax
IF(OR(logical1,logical2,...),"True","Fa

IF(AND(
Returns TRUE if all arguments are T
WHAT IS THIS?
IF(OR(
Returns TRUE if any argument is TR
returns FALSE if all arguments are F
IF(AND(Tot.Sale>800,Basic=2500),1000,500) Syntax
IF(OR(logical1,logical2,...),"True","Fa
Solution
Type in Cell G3 =SUM(D3:F3)
IF(AND(
Returns TRUE if all arguments are T
Type in Cell H3 =IF(G3>=1000,C3*35%,IF(G3>=800,C3*25,"TRY AGAIN")) returns FALSE if any argument is FA
Type in Cell I3 =IF(OR(G3>800,C3=2500),1000,500) Syntax
IF(AND(logical1,logical2,...),"True",'F
Type in Cell J3 =IF(AND(G3>800,C3=2500)1000,500)
IFerror Function Example4
Value 1 Value 2 Formula Applied
210 30 7
60 0 Error
0 80 0

94 IF IF(Logic,Return) 1
95 IF OR IF(OR(Logic,Return)
96 IF AND IF(AND(Logic,Return)
97 IF MAX IF(MAX(Range)Logic,Return)
98 IF MIN IF(MIN(Range)Logic,Return)
99 IF SUM IF(SUM(Range)Logic,Return)
100 IF SUMIF IF(SUMIF(Range,Logic)Logic,Return)
101 IF COUNT IF(COUNT(Range)Logic,Return)
102 IF COUNT IF IF(COUNTIF(Range,Logic)Logic,Return)
103 IF AVERAGE IF(AVERAGE(Range)Logic,Return)
104 AND AND(Logic 1,Logic2)
105 OR OR(Logic 1,Logic2)
106 NOT NOT(LOGIC)
107 TRUE TRUE()
108 FALSE FALSE()
109 IFERROR IFERROR(Logic,"Error")

NOTE:
EVERY FORMULA OF IF FUNCTION GIVES THE RETURN ACCORDING TO OUR TAILORED REQUIREMENT
n
IF Function Criteria AND OR TRUE 0
PRODUCTS IF QUANTITY DISCOUNT 0 1 1 0
DETTOL 10 10% 1 0 1 0
5 5%
LUX 15 15%
10 10%
COLAGATE 20 20%
15 15%
TIBBET 25 25%
20 20%
RUSK 30 30%
25 25%

D17*0.15,IF(C17>=10,D17*0.1,0.05)))))

IF Function Criteria
REWARD IF %AGE GRADE REMARKS REWARD
1000 90% A+ BRILLIANT 1000
800 80% A VERY GOOD 800
700 70% B GOOD 700
500 60% C KEEP IT UP 500
250 50% D WORK HARD 250
-500 40% E POOR -500
-1000 30% F VERY POOR -1000

50%,"D",IF(D2>=40%,"E","F"))))))
"C","KEEP IT UP",IF(E2="D","WORK HARD",IF(E2="E","POOR","VERY POOR"))))))
",IF(D2>=50%,"250",IF(D2>=40%,"-500","-1000"))))))

VERAGE
TOT.SALE ALLOWANCE1 ALLOWANCE2ALLOWANCE3

HAT IS THIS?
OR(
rns TRUE if any argument is TRUE;
ns FALSE if all arguments are FALSE.
ax
R(logical1,logical2,...),"True","False")

AND(
rns TRUE if all arguments are TRUE;
HAT IS THIS?
OR(
rns TRUE if any argument is TRUE;
ns FALSE if all arguments are FALSE.
ax
R(logical1,logical2,...),"True","False")

AND(
rns TRUE if all arguments are TRUE;
ns FALSE if any argument is FALSE.
ax
ND(logical1,logical2,...),"True",'False")

AILORED REQUIREMENT
NOT
0
1
Student Name ID# Test1 Test2
Haider 6 67 56
Ali 3 56 57
Babar 4 78 89
Zahid 1 98 99
Faisal 7 34 23
Ameen 2 67 78
Rasool 5 24 34
Yahya 9 23 46
Alia 10 45 67

Solution With Instructions

STEP# 1
First you have to Calculate Per% by using this formula in Cell# J4
Marks Obtain Divided by Total Marks Multiply by100
STEP# 2
After Calculating Per% we can Find out the Grades by using VLOOKUP Worksheet Function VLOOKUP(VLOOKUP VALUE,V
Type this formula in Cell# K4 =VLOOKUP(J4,\$E\$16:\$F\$21,2
J4 is lookup value
\$E\$16:\$F\$21 Range of table_array
2 is Col_Index# of Table_Array

LOOKUP
S. Nos NAME F. NAME T. PHONE
1 SAEED ALI 3444455
2 RAHIL SHAH KHAN 8978766
3 ZAHID ALI NOOR ZAMAN 6767676
4 NOMAN BABAR QADIR BHAI 7878888
5 AMIR KHAN AMJAD KHAN 6676777

Type any S. No 2 FORMULAS USED

NAME RAHIL LOOKUP(LOOKUP VALUE,LOOKUP RANGE,LOOKUP COLUMN)
F. NAME SHAH KHAN
T. PHONE 8978766
MARRIED YES

110 VLOOKUP VLOOKUP(VLOOKUP VALUE,VLOOKUP RANGE,VLOOKUP COLUMN #)

111 LOOKUP LOOKUP(LOOKUP VALUE,LOOKUP RANGE,LOOKUP COLUMN)

Test3 Test4 Test5 Total M. Obtain Per% Grade WHAT IS THIS

89 68 80 500 360 72.00 A
78 46 47 500 284 56.80 C
Vlookup
88 90 87 500 432 86.40 A+ Searches for a value in the leftmo
91 95 90 500 473 94.60 A+ a column you specify in the table.
values are located in a column to
22 12 67 500 158 31.60 FAIL
89 67 97 500 398 79.60 A Syntax
34 23 34 500 149 29.80 FAIL VLOOKUP(lookup_valu
66 77 86 500 380 76.00 A Lookup_value is the value to be
57 87 90 500 303 60.60 B value, a reference, or a text string
45 78 88 500 323 64.60 B Table_array is the table of inform
range name, such as Database o

Grading Criteria Col_index_num is the column n

returned.
0 FAIL
40 D
50 C
60 B
Col_Index is the
70 A Column# of
80 A+ Table_Array

=I4/H4*100

VLOOKUP(VLOOKUP VALUE,VLOOKUP RANGE,VLOOKUP COLUMN #)

=VLOOKUP(J4,\$E\$16:\$F\$21,2,1for approximate match & 2for exact match)
is lookup value
Range of table_array
is Col_Index# of Table_Array

KUP
KARACHI YES
LAHORE YES Lookup
KARACHI NO
Returns a value either from a one-row
PINDI YES or one-column range or from an array.
HYDERABAD NO The LOOKUP function has two syntax
forms: vector and array. The vector
form of LOOKUP looks in a one-row or
one-column range (known as a vector)
for a value and returns a value from
the same position in a second one-row
or one-column range. The array form
of LOOKUP looks in the first row or
column of an array for the specified
value and returns a value from the
same position in the last row or
column of the array.
for a value and returns a value from
the same position in a second one-row
or one-column range. The array form
of LOOKUP looks in the first row or
column of an array for the specified
value and returns a value from the
same position in the last row or
column of the array.
kup_Value

WHAT IS THIS

Vlookup
Searches for a value in the leftmost column of a table, and then returns a value in the same row from
a column you specify in the table. Use VLOOKUP instead of HLOOKUP when your comparison
values are located in a column to the left of the data you want to find.

Syntax
VLOOKUP(lookup_value,table_array,col_index_num)
Lookup_value is the value to be found in the first column of the array. Lookup_value can be a
value, a reference, or a text string.

Table_array is the table of information in which data is looked up. Use a reference to a range or a
range name, such as Database or List.

Col_index_num is the column number in table_array from which the matching value must be
returned.