描述
ROMAN函数将阿拉伯数字转换为罗马文本。
语法
ROMAN (number, [form])
争论
| Argument | 描述 | Required/Optional |
|---|---|---|
| Number | The Arabic numeral you want converted. | Required |
| Form | A number specifying the type of roman numeral you want. The roman numeral style ranges from Classic to Simplified, becoming more concise as the value of form increases. See the 罗马数字样式表 given below. If omitted, it takes on the default value of 0 (denoting the classic form is used). | Optional |
罗马数字样式表
| 表格 | 类型 |
|---|---|
| 0或省略 | 经典 |
| 1 | 更简洁 |
| 2 | 更简洁 |
| 3 | 更简洁 |
| 4 | 简体 |
| TRUE | 经典 |
| FALSE | 简体 |
Notes
-
如果将任何参数指定为十进制值,则将其截断为整数。
-
如果数字为负数,则ROMAN返回#VALUE!错误。
-
如果数字大于3999,则ROMAN返回#VALUE!错误。
-
如果指定了形式,但形式无效,即不是值0、1、2、3、4,TRUE或FALSE之一,则ROMAN返回#VALUE!错误
适用性
Excel 2007,Excel 2010,Excel 2013,Excel 2016
Example