excel函数:汉字转全拼
Yesterday, in the 30XL30D challenge, we identified cell contents with the TYPE function, and used it to check for a number, before multiplying. For day 22 in the challenge, we'll examine the N function. It's similar to the T function that we saw earlier, but checks for numbers instead of text.
昨天,在30XL30D挑战赛中,我们使用TYPE函数识别了单元格内容,并在乘法之前用它来检查数字。 在挑战的第22天,我们将检查N函数。 它类似于我们前面看到的T函数,但是检查数字而不是文本。
NOTE: You can have all of the 30 Functions content in an easy-to-use single reference file -- the 30 Excel Functions in 30 Days eBook Kit ($10).
注意:您可以在一个易于使用的单个参考文件中获得这30个函数的全部内容-30天电子书工具包中的30个Excel函数 (10美元)。
So, let's take a look at the N information and examples, and if you have other tips or examples, please share them in the comments.
因此,让我们看一下N个信息和示例,如果还有其他提示或示例,请在评论中分享。
功能22:否 (Function 22: N)
The N function returns a value converted to a number.
N函数返回一个转换为数字的值。
您如何使用N? (How Could You Use N?)
The N function has limited use, and can usually be replaced by a different function or operator. You can:
N函数用途有限,通常可以用其他函数或运算符代替。 您可以:
- Return number based on a cell's value 根据单元格的值返回数字
- Use N function alternatives 使用N个功能替代
- Add a hidden note in a cell 在单元格中添加隐藏的笔记
N语法 (N Syntax)
The N function has the following syntax:
N函数具有以下语法:
-
- value can be text, number, or any other value 值可以是文本,数字或任何其他值
N(value)
N(值)
N个陷阱 (N Traps)
If the value is an error, the N function returns the same error, instead of a number. Use IFERROR or ISNUMBER to handle the errors.
如果该值为错误,则N函数将返回相同的错误,而不是数字。 使用IFERROR或ISNUMBER处理错误。
示例1:基于单元格值返回数字 (Example 1: Return a Number Based on Cell Value)
With the N function, you can return a number, based on a cell's value. If the value is a number, then that number is returned.
使用N函数,您可以根据单元格的值返回数字。 如果该值为数字,则返回该数字。
=N(C3)
= N(C3)
This table shows the result of other values in the N function.
该表显示了N函数中其他值的结果。
示例2:N个功能替代项 (Example 2: N Function Alternatives)
Instead of the N function, you can use ISNUMBER to test for numbers.
可以使用ISNUMBER代替N函数来测试数字。
=ISNUMBER(C3)
= ISNUMBER(C3)
Or use two minus signs (double unary) to convert TRUE/FALSE or text numbers to numbers.
或使用两个减号(双一进制)将TRUE / FALSE或文本数字转换为数字。
=IFERROR(–C3,"")
= IFERROR(–C3,“”)
示例3:向单元格添加隐藏的笔记 (Example 3: Add Hidden Note to Cell)
If you want to add a hidden note in a cell, you can use the N function. Because the result of a text value in the N function is zero, adding this note won't affect the cell result.
如果要在单元格中添加隐藏的笔记,可以使用N函数。 由于N函数中文本值的结果为零,因此添加此注释不会影响单元格结果。
The note will only be visible in the formula bar, when the cell is selected.
选择该单元格后,该注释仅在编辑栏中可见。
=SUM(B3:C3) + N("Store01 closed in June")
= SUM(B3:C3)+ N(“ Store01在六月关闭”)
下载N功能文件 (Download the N Function File)
To see the formulas used in today's examples, you can download the N function sample workbook. The file is zipped, and is in Excel 2007 file format.
要查看当前示例中使用的公式,可以下载N函数示例工作簿 。 该文件已压缩,并且为Excel 2007文件格式。
观看N部影片 (Watch the N Video)
To see a demonstration of the examples in the N function sample workbook, you can watch this short Excel video tutorial.
要查看N函数示例工作簿中示例的演示,您可以观看此简短的Excel视频教程。
翻译自: https://contexturesblog.com/archives/2011/01/23/30-excel-functions-in-30-days-22-n/
excel函数:汉字转全拼