使用True,False,1,0作为Excel中的VLOOKUP的最后一个值有什么区别? [英] What is the difference between using True,False, 1,0 as the last value of a VLOOKUP in excel?
问题描述
在excel中,vlookup函数在名为[range lookup]或[not_exact_match]的末尾有一个可选参数。您可以为此值输入1,0,true或false。
In excel, the vlookup function has an optional parameter at the end called [range lookup] or [not_exact_match]. You can input 1,0,true,or false for this value. What is the difference between these and how does it work?
推荐答案
公式中的最后一个值有时称为范围输入
;
The last value in the formula is sometimes called Range Input
;
Range_lookup - 一个逻辑值,指定是否要
VLookup方法找到完全匹配或大致匹配:范围
如果留空,输入默认为TRUE。
Range_lookup - a logical value that specifies whether you want the VLookup method to find an exact match or an approximate match: Range Input will default to 'TRUE' if left blank.
您可以使用 True
, False
, 1
或 0
在该值的公式中。所有值都有效。
You can use True
,False
, 1
, or 0
in the formula for this value. All values are valid.
True
与 1
, False
与 0
相同。
TRUE或1 [或空白,默认为True]
查找范围通常应从上到下依次升序。
Vlookup将返回最后一个行,范围值为< =查找值。
如果没有符合此条件的行,则返回#N / A。
TRUE or 1 [or blank which defaults to True]
The lookup range should normally be in ascending order from top to bottom.
Vlookup will return the last row where the range value is <= the lookup value.
If no rows meet this criteria then #N/A is returned.
FALSE或0
查找范围可以是任意顺序。
Vlookup将从第一个行,其中查找值=范围值。
如果没有行符合此条件,则返回#N / A。
FALSE or 0
The lookup range can be in any order.
Vlookup will return a value from the first row where the lookup value = range value.
If no rows meet this criteria then #N/A is returned.
示例:
0| RANGEA | RANGEB | LOOKUP_VALUE | VLOOKUP(..,2,TRUE)| VLOOKUP(..,2,FALSE)
1| 1 | A | 0 | #N/A | #N/A
2| 3 | B | 2 | A | #N/A
3| 3 | C | 2 | A | #N/A
4| 5 | D | 5 | E | D
5| 5 | E | 5 | E | D
6| 7 | F | 8 | G | #N/A
7| 7 | G | 8 | G | #N/A
这篇关于使用True,False,1,0作为Excel中的VLOOKUP的最后一个值有什么区别?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!