Fungsi vlookup merupakan sebuah fungsi yang telah disediakan oleh microsoft excel 2007 untuk menghitung /mengambil nilai dari sebuah tabel referensi kemudian dimasukkan ke tabel kerja. Fungsi vlookup akan menghitung nilai referensi secara vertikal.
Atuan penulisannya seperti di bawah ini:
Syntax
VLOOKUP(lookup_value,table_array,col_index_num,range_lookup)
Lookup_value The value to search in the first column of the table array (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.). Lookup_value can be a value or a reference. If lookup_value is smaller than the smallest value in the first column of table_array, VLOOKUP returns the #N/A error value.
Atuan penulisannya seperti di bawah ini:
Syntax
VLOOKUP(lookup_value,table_array,col_index_num,range_lookup)
Lookup_value The value to search in the first column of the table array (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.). Lookup_value can be a value or a reference. If lookup_value is smaller than the smallest value in the first column of table_array, VLOOKUP returns the #N/A error value.
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. If col_index_num is:
Less than 1, VLOOKUP returns the #VALUE! error value.
Greater than the number of columns in table_array, VLOOKUP returns the #REF! error value.
Lookup_value adalah nilai yang pertama dicari pada tabel array (tabel referensi)
Table_array adalah range tabel referensi
Col_index_num adalah nomor /ururan kolom tabel referensi
Contoh:
1. Buat tabel seperti di bawah ini:
2. Di sel E3 ketik formula berikut:
=VLOOKUP(D4,$G$4:H8,2)
=VLOOKUP(D4,$G$4:H8,2)
Tidak ada komentar:
Posting Komentar