A1单元格= "0,1,2,3"
我想让其中的0显示为零,1显示为一,2显示为二,3显示为三
显示值变为"零,一,二,三"
如何设置公式形态?
MAPARRAY(split($$$,","),NUMTO(item))
MAPARRAY(split($$$, ","), INDEXOFARRAY(split(["语文","数学","英语","地理"], ","), INARRAY(item+1, split(["1","2","3","4"], ","))))
switch(
A1,"0","零",
"1","一",
"2","二",
"3","三",
)
---------
replace(replace(replace(replace(A1,"0","零"),"1","一"),"2","二"),"3","三")
这个适合数量不太多的
replace(replace(replace(replace(A1,"0","语文"),"1","数学"),"2","英语"),"3","地理")
NUMTO(number,bool)或NUMTO(number):返回number的中文表示。其中bool用于选择中文表示的方式,当没有bool时采用默认方式显示。
示例:
NUMTO(2345,true)等于二三四五。
NUMTO(2345,false)等于二千三百四十五。
NUMTO(2345)等于二千三百四十五。