[英]What is the significance of the question mark in Excel?
If I type in this formula: 如果我输入以下公式:
=vlookup(A1,LetterTable,2,False)
With A1 set to "?" 将A1设置为“?” (without the quotes), and LetterTable contains this:
(不带引号),而LetterTable包含以下内容:
a a
b b
c c
... ...
- -
+ +
? ?
! !
It always gives me "a" (no quotes). 它总是给我“ a”(无引号)。 Why is this?
为什么是这样?
Also, if I copy that into an array in vba and loop through it, comparing it to the spreadsheet value, it won't find it either. 另外,如果我将其复制到vba中的数组中并循环遍历,将其与电子表格值进行比较,也将找不到它。
See http://office.microsoft.com/en-us/excel-help/vlookup-HP005209335.aspx : 请参阅http://office.microsoft.com/zh-cn/excel-help/vlookup-HP005209335.aspx :
If range_lookup is FALSE and lookup_value is text, then you can use the wildcard characters, question mark (?) and asterisk (*), in lookup_value. 如果range_lookup为FALSE,而lookup_value为text,则可以在lookup_value中使用通配符,问号(?)和星号(*)。 A question mark matches any single character;
问号与任何单个字符匹配; an asterisk matches any sequence of characters.
星号匹配任何字符序列。 If you want to find an actual question mark or asterisk, type a tilde (~) preceding the character.
如果要查找实际的问号或星号,请在字符前面键入波浪号(〜)。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.