6 当类型为filename时,返回当前工作表的名称,且包含全部路径:=CELL("filename",A1),如果文件没有保存,则返回空值。7 当类型为row时,返回引用的单元格行号,当有多个单元格时,返回左上角单元格的行号:=CELL("row",D11:H36)8 当类型为format时,根据单元格中不同的数字格式返回相对应的文本值,当有...
"filename":返回当前表格的全路径文件名。"format":返回单元格数字格式的文本值。 如图显示了各种格式的文本值。 如果单元格采用负值的颜色格式,则返回文本值末尾的"-"。 如果单元格的格式为正值或所有值,则返回文本值末尾的" () "。"parentheses":如果单元格中为正值或所有单元格均加括号("()"),则为1...
1、选中B2单元格,在编辑栏中输入公式:=MID(CELL("filename"),FIND("[",CELL("filename"))+1,FIND("]",CELL("filename"))-FIND("[",CELL("filename"))-1),按回车键回车。返回的结果:CELL函数提取文件工作簿名称.xlsx 2、函数公式解析: ①=CELL("filename"):返回全路径的文件名。结果为:C:\User...
=CELL("filename")如果想获得当前的工作表名称(Sheet1),可以用公式再处理一下:=MID(CELL("filename"),FIND("]",CELL("filename"))+1,20)3.当你需要获取单元格序号号 输入公式:=CELL("col")4、当你需要分辨单元格内的内容是日期和数字时 在excel中能分辨出日期和数字,同样也只有CELL函数。=IF(CELL(...
reference可选,需要其相关信息的单元格。如果省略,则为计算时info_type单元格返回参数中指定的信息。如果reference参数是单元格区域,则CELL 函数返回所选区域的活动单元格的信息。 下面我们来具体看一下操作过程。 首先我们可以输入下面函数公式: =CELL("filename",A2) ...
RIGHT(CELL("FILENAME"),LEN(CELL("FILENAME"))-FIND("]",CELL("FILENAME"))):取带路径与工作薄的工作表名称的字符"]"右侧的字符。 CELL函数介绍 功能:CELL 函数返回有关单元格的格式、位置或内容的信息。 语法:CELL(info_type,[reference]) 参数:Info_type 必需。一个文本值,指定要返回的单元格信息的...
CELL函数语法如下: CELL(info_type,reference) info_type是下列值之一 address…reference中第一个单元格的引用,文本类型 col…reference中单元格的列号 color…1 =负值以不同颜色显示;其它为0 (zero) contents…reference中左上角单元格的值 filename…文件名和全部路径 ...
How to reference another workbook in Excel To refer to a cell or range of cells in a different Excel file, you need to include the workbook name in square brackets, followed by the sheet name, exclamation point, and the cell or a range address. For example: ...
What are cell references in Excel Cell references are like the name of cells. A cell reference is alphanumeric; it consists of an alphabet and a number. Where do this alphabet and number come from? Here is what a worksheet in Excel looks like (A two-dimensional window with rows and colu...