Last active
June 29, 2017 07:21
-
-
Save Beinsearch/d116cec12f6fd50183d7f51746f68a4d to your computer and use it in GitHub Desktop.
Excel宏,获取行数,自动填充
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Dim Count | |
Count = Range("A65536").End(xlUp).Row | |
Range(Cells(2, 3), Cells(Count, 4)).Select | |
Selection.FillDown | |
注释:Counts是A列行数,选中C2至D(Count)的区域,按照此区域第一行的格式,向下填充。 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
VLOOKUP用于在表格或数值数组的首列查找指定的数值,并由此返回表格或数组当前行中指定列处的数值。 | |
当比较值位于数据表的首行,并且要查找下面给定行中的数据时,请使用函数 HLOOKUP。 | |
VLOOKUP(lookup_value,table_array,col_index_num,range_lookup) | |
其中,Lookup_value表示要查找的值,它必须位于自定义查找区域的最左列。Lookup_value 可以为数值、引用或文字串。 | |
Table_array查找的区域,用于查找数据的区域,上面的查找值必须位于这个区域的最左列。可以使用对区域或区域名称的引用。 | |
Col_index_num为相对列号。最左列为1,其右边一列为2,依此类推. | |
Range_lookup为一逻辑值,指明函数 HLOOKUP 查找时是精确匹配,还是近似匹配。 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment