點樣用 excel 的 v-lookup ?

2008-02-19 5:42 pm
點樣用 excel 的 v-lookup ?
公式的格式係點 ?

回答 (3)

2008-02-19 6:50 pm
✔ 最佳答案
例子:
你有個 List 好長, 有 name, 有 score, 有好多人, for example 10,000
而你只想知幾個人的 score, 好似亞 Keith 同 John, 咁你好可以用 Vlookup ....

Assume:
name = column A
Score = column B
someone = column D

<b>
namescore
</b>
JOHN3
MARY4
PETER5
SAM6
SAMMY7
KEITH8
... ...

someoneresult (formula)
KEITH=VLOOKUP(D2,A:B,2,FALSE)
JOHN=VLOOKUP(D3,A:B,2,FALSE)

解說:
=VLOOKUP(D2, A:B, 2, FALSE)

D2 ~~~ &quot;KEITH&quot;
A:B ~~~ 從 column A 到 B 裡找 &quot;KEITH&quot;
2 ~~~ 拿第二格 (1st = name, 2nd = score), so score will be shown
FALSE ~~~ 唔會找類似的, 搵唔到就萛

PS. 果個 full list 最好 sorted by ascending.
參考: 我星期一至五都會用Excel Vlookup
2008-02-19 6:22 pm
以下是公式
=VLOOKUP(A:A,Sheet2!A:B,2,FALSE)
把這公式放在 excel sheet 1 的 B 欄內, 再開設 sheet 2, 在 sheet 2 的 A 欄 及 B 欄內打
你的資料, 之後在 sheet 1 的 A 欄 做便可以了. 公式如此類推,可在其他欄用的.
參考: me
2008-02-19 5:57 pm
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,range_lookup)

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.

If range_lookup is TRUE, the values in the first column of table_array must be placed in ascending order: ..., -2, -1, 0, 1, 2, ..., A-Z, FALSE, TRUE; otherwise VLOOKUP may not give the correct value. If range_lookup is FALSE, table_array does not need to be sorted.


You can put the values in ascending order by choosing the Sort command from the Data menu and selecting Ascending.


The values in the first column of table_array can be text, numbers, or logical values.


Uppercase and lowercase text are equivalent.
Col_index_num is 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; if col_index_num is greater than the number of columns in table_array, VLOOKUP returns the #REF! error value.

Range_lookup is a logical value that specifies whether you want VLOOKUP to find an exact match or an approximate match. If TRUE or omitted, an approximate match is returned. In other words, if an exact match is not found, the next largest value that is less than lookup_value is returned. If FALSE, VLOOKUP will find an exact match. If one is not found, the error value #N/A is returned.

Remarks

If VLOOKUP can&#39;t find lookup_value, and range_lookup is TRUE, it uses the largest value that is less than or equal to lookup_value.


If lookup_value is smaller than the smallest value in the first column of table_array, VLOOKUP returns the #N/A error value.


If VLOOKUP can&#39;t find lookup_value, and range_lookup is FALSE, VLOOKUP returns the #N/A value.
參考: MICROSOFT EXCEL


收錄日期: 2021-04-13 15:10:23
原文連結 [永久失效]:
https://hk.answers.yahoo.com/question/index?qid=20080219000051KK00512

檢視 Wayback Machine 備份