excel exercises 2009 dr wahab
TRANSCRIPT
-
8/6/2019 Excel Exercises 2009 Dr Wahab
1/24
Table must be sorted on respective field
S_Code Name Area Jan Feb Mar Total
B-002 Bashir East 5900 5643 2600 14143A-001 Ali South 5000 5430 7500 17930
A-002 Zahid South 3400 2340 5490 11230
A-003 Mahmood South 3956 8000 9500 21456
B-001 Babar West 4500 6700 4350 15550
B-003 Zubair West 4000 2000 1500 7500
Area Data Total
East Count of S_Code 1
Sum of Jan 5900Sum of Feb 5643
Sum of Mar 2600
Sum of Total 14143
South Count of S_Code 3
Sum of Jan 12356
Sum of Feb 15770
Sum of Mar 22490
Sum of Total 50616
West Count of S_Code 2
Sum of Jan 8500
Sum of Feb 8700
Sum of Mar 5850Sum of Total 23050
Total Count of S_Code 6
Total Sum of Jan 26756
Total Sum of Feb 30113
Total Sum of Mar 30940
Total Sum of Total 87809
-
8/6/2019 Excel Exercises 2009 Dr Wahab
2/24
-
8/6/2019 Excel Exercises 2009 Dr Wahab
3/24
ill be added.
-
8/6/2019 Excel Exercises 2009 Dr Wahab
4/24
RollNo Name Sub1 Sub2 Sub3 Tot Per GradeB-003 Zubair 56 78 66 200 67%
A-002 Zahid 77 88 90 255 85%
B-002 Bashir 89 90 98 277 92%
B-001 Babar 90 95 90 275 92%
A-001 Ali 50 40 78 168 56%
A-003 Mahmood 78 77 65 220 73%
S_Code Name Area Jan Feb Mar Total ComissionB-003 Zubair West 4000 7000 1500 12500
A-002 Zahid South 3400 2340 5490 11230
B-002 Bashir East 349 680 2600 3629
B-001 Babar West 4500 6700 4350 15550
A-001 Ali South 5000 5430 7500 17930
A-003 Mahmood South 3956 8000 9500 21456
=IF(AND(G13>=5000,G13
-
8/6/2019 Excel Exercises 2009 Dr Wahab
5/24
Percentage Grade=50 and =65 and =75 and =85 A
Commission Structure
=5000 and =10000 and =15000 8%
-
8/6/2019 Excel Exercises 2009 Dr Wahab
6/24
LOOKUP
Remarks
If LOOKUP can't find the lookup_value, it matches the largest value in lookup_vector that is less than
If lookup_value is smaller than the smallest value in lookup_vector, LOOKUP gives the #N/A error valu
A B
Frequency Color
1 4.14 red
2 4.19 orange
3 5.17 yellow
4 5.77 green
5 6.39 blue
6 Formula Description (Result)
=LOOKUP(4.91,A2:A6,B2:B6) Looks up 4.19 in column A, and retu
=LOOKUP(5,A2:A6,B2:B6) Looks up 5.00 in column A, and retu
=LOOKUP(7.66,A2:A6,B2:B6) Looks up 7.66 in column A, matches
=LOOKUP(0,A2:A6,B2:B6) Looks up 0 in column A, and returns
Salary Tax Rate
4000 3%10000 5%
15000 7%
20000 10%
LOOKUP(lookup_value,lookup_vector,result_vector)
Lookup_value is a value that LOOKUP searches for in the first vector. Lookup_value can be a numbe
Lookup_vector is a range that contains only one row or one column. The values in lookup_vector canImportant The values in lookup_vector must be placed in ascending order: ...,-2, -1, 0, 1, 2, ..., A-Z,
Result_vector is a range that contains only one row or column. It must be the same size as lookup_v
-
8/6/2019 Excel Exercises 2009 Dr Wahab
7/24
r equal to lookup_value.
e.
rns the value from column B that's in the same row (orange)
rns the value from column B that's in the same row (orange)
the next smallest value (6.39), and returns the value from column B that's in the same row (blue)
an error because 0 is less than the smallest value in the lookup_vector A2:A7 (#N/A)
5%
r, text, a logical value, or a name or reference that refers to a value.
be text, numbers, or logical values.ALSE, TRUE; otherwise, LOOKUP may not give the correct value. Uppercase and lowercase text are equivalent
ctor.
-
8/6/2019 Excel Exercises 2009 Dr Wahab
8/24
.
-
8/6/2019 Excel Exercises 2009 Dr Wahab
9/24
The values in the first row of table_array can be text, numbers, or logical values.
otherwise, HLOOKUP may not give the correct value. If range_lookup is FALSE, table_array do
Uppercase and lowercase text are equivalent.
Remarks
If HLOOKUP can't find lookup_value, and range_lookup is TRUE, it uses the largest value that i
If lookup_value is smaller than the smallest value in the first row of table_array, HLOOKUP retur
A B
Axles Bearings
1 4 4
2 5 7
3 6 8
4 Formula Description (Result)
=HLOOKUP("Axles",A1:C4,2,TRUE) Looks up Axles in row 1, and
=HLOOKUP("Bearings",A1:C4,3,FALSE) Looks up Bearings in row 1, a
=HLOOKUP("B",A1:C4,3,TRUE) Looks up B in row 1, and retu
Because B is not an exact ma
=HLOOKUP("Bolts",A1:C4,4) Looks up Bolts in row 1, and
=HLOOKUP(3,{1,2,3;"a","b","c";"d","e","f"},2,TRUE) Looks up 3 in the first row of t
Salary Tax Rate4000 3%
10000 5%
15000 7%
20000 10%
HLOOKUP(lookup_value,table_array,row_index_num,range_lookup)
Lookup_value is the value to be found in the first row of the table. Lookup_value can be a valu
Table_array is a table of information in which data is looked up. Use a reference to a range or
If range_lookup is TRUE, the values in the first row of table_array must be placed in ascending o
Row_index_num is the row number in table_array from which the matching value will be retur
Range_lookup is a logical value that specifies whether you want HLOOKUP to find an exact m
-
8/6/2019 Excel Exercises 2009 Dr Wahab
10/24
s not need to be sorted.
less than lookup_value.
ns the #N/A error value
C
Bolts
9
10
11
returns the value from row 2 that's in the same column. (4)
nd returns the value from row 3 that's in the same column. (7)
rns the value from row 3 that's in the same column.
tch, the next largest value that is less than B is used: Axles. (5)
eturns the value from row 4 that's in the same column. (11)
he array constant, and returns the value from row 2 in same column. (c)
4000
e, a reference, or a text string.
a range name.
rder: ...-2, -1, 0, 1, 2,... , A-Z, FALSE, TRUE;
ed. A row_index_num of 1 returns the first row value in table_array, a row_index_num of 2 returns the second ro
atch or an approximate match. If TRUE or omitted, an approximate match is returned. In other words, if an exact
-
8/6/2019 Excel Exercises 2009 Dr Wahab
11/24
w value in table_array, and so on. If row_index_num is less than 1, HLOOKUP returns the #VALUE! error value; i
match is not found, the next largest value that is less than lookup_value is returned. If FALSE, HLOOKUP will fin
-
8/6/2019 Excel Exercises 2009 Dr Wahab
12/24
f row_index_num is greater than the number of rows on table_array, HLOOKUP returns the #REF! error value.
an exact match. If one is not found, the error value #N/A is returned.
-
8/6/2019 Excel Exercises 2009 Dr Wahab
13/24
If range_lookup is TRUE, the values in the first column of table_array must be placed in ascen
The values in the first column of table_array can be text, numbers, or logical values.
Uppercase and lowercase text are equivalent.
Remarks
If VLOOKUP can't find lookup_value, and range_lookup is TRUE, it uses the largest value that
If lookup_value is smaller than the smallest value in the first column of table_array, VLOOKUP
If VLOOKUP can't find lookup_value, and range_lookup is FALSE, VLOOKUP returns the #N/
A B C
1 Density Viscosity
2 0.46 3.55 500
3 0.53 3.25 400
4 0.62 2.93 3005 0.68 2.75 250
6 0.75 2.57 200
7 0.84 2.38 150
8 0.95 2.17 100
9 1.09 1.95 50
10 1.29 1.71 0
Formula ription (Result)
=VLOOKUP(1,A2:C10,2) Looks up 1 in column A, and returns the valu
=VLOOKUP(1,A2:C10,3,TRUE) Looks up 1 in column A, and returns the valu
=VLOOKUP(0.7,A2:C10,3,FALSE) Looks up 0.746 in column A. Because there i
=VLOOKUP(0.1,A2:C10,2,TRUE) Looks up 0.1 in column A. Because 0.1 is les
=VLOOKUP(2,A2:C10,2,TRUE) Looks up 2 in column A, and returns the valu
Salary Tax Rate4000 3% 5%
10000 5%
15000 7%
20000 10%
VLOOKUP(lookup_value,table_array,col_index_num,range_lookup)
Lookup_value is the value to be found in the first column of the array. Lookup_value can be a
Table_array is the table of information in which data is looked up. Use a reference to a range
You can put the values in ascending order by choosing the Sort command from the Data men
Col_index_num is the column number in table_array from which the matching value must be
Range_lookup is a logical value that specifies whether you want VLOOKUP to find an exact
emperature
-
8/6/2019 Excel Exercises 2009 Dr Wahab
14/24
-
8/6/2019 Excel Exercises 2009 Dr Wahab
15/24
ding order: ..., -2, -1, 0, 1, 2, ..., A-Z, FALSE, TRUE; otherwise VLOOKUP may not give the correct value. If rang
is less than or equal to lookup_value.
returns the #N/A error value.
value
e from column B in the same row (2.17)
e from column C in the same row (100)
s no exact match in column A, an error is returned (#N/A)
s than the smallest value in column A, an error is returned (#N/A)
e from column B in the same row (1.71)
value, a reference, or a text string.
or a range name, such as Database or List.
u and selecting Ascending.
returned. A col_index_num of 1 returns the value in the first column in table_array; a col_index_num of 2 returns
atch or an approximate match. If TRUE or omitted, an approximate match is returned. In other words, if an exac
-
8/6/2019 Excel Exercises 2009 Dr Wahab
16/24
ble
core equal to or above marks
Symbol
ED
C
B
A
-
8/6/2019 Excel Exercises 2009 Dr Wahab
17/24
_lookup is FALSE, table_array does not need to be sorted.
he value in the second column in table_array, and so on. If col_index_num is less than 1, VLOOKUP returns the
match is not found, the next largest value that is less than lookup_value is returned. If FALSE, VLOOKUP will fin
-
8/6/2019 Excel Exercises 2009 Dr Wahab
18/24
-
8/6/2019 Excel Exercises 2009 Dr Wahab
19/24
#VALUE! error value; if col_index_num is greater than the number of columns in table_array, VLOOKUP returns
d an exact match. If one is not found, the error value #N/A is returned.
-
8/6/2019 Excel Exercises 2009 Dr Wahab
20/24
-
8/6/2019 Excel Exercises 2009 Dr Wahab
21/24
he #REF! error value.
-
8/6/2019 Excel Exercises 2009 Dr Wahab
22/24
-
8/6/2019 Excel Exercises 2009 Dr Wahab
23/24
S_Code Name Area Jan Feb Mar TotalB-003 Zubair West 4000 2000 1500 7500
A-002 Zahid South 3400 2340 5490 11230
B-002 Bashir East 5900 5643 2600 14143
B-001 Babar West 4500 6700 4350 15550
A-001 Ali South 5000 5430 7500 17930
A-003 Mahmood South 3956 8000 9500 21456
-
8/6/2019 Excel Exercises 2009 Dr Wahab
24/24