你好 1.创建一个模块: 在SHEET上,右键-》查看代码。选中“模块”-》插入模块。2.写代码:Option Explicit Dim StrNO(19) As String Dim Unit(8) As String Dim StrTens(9) As StringPublic Function NumberToString(Number As Double) As String Dim Str As String, BeforePoint As String, AfterPoint As String, tmpStr As String Dim Point As Integer Dim nBit As Integer Dim CurString As String Dim nNumLen As Integer Dim T As String Call Init Str = CStr(Round(Number, 2)) Str = Number If InStr(1, Str, .) = 0 Then BeforePoint = Str AfterPoint = Else BeforePoint = Left(Str, InStr(1, Str, .) - 1) T = Right(Str, Len(Str) - InStr(1, Str, .)) If Len(T) < 2 Then AfterPoint = Val(T) * 10 If Len(T) = 2 Then AfterPoint = Val(T) If Len(T) > 2 Then AfterPoint = Val(Left(T, 2)) End If If Len(BeforePoint) > 12 Then NumberToString = Too Big. Exit Function End If Str = Do While Len(BeforePoint) > 0 nNumLen = Len(BeforePoint) If nNumLen Mod 3 = 0 Then CurString = Left(BeforePoint, 3) BeforePoint = Right(BeforePoint, nNumLen - 3) Else CurString = Left(BeforePoint, (nNumLen Mod 3)) BeforePoint = Right(BeforePoint, nNumLen - (nNumLen Mod 3)) End If nBit = Len(BeforePoint) / 3 tmpStr = DecodeHundred(CurString) If (BeforePoint = String(Len(BeforePoint), 0) Or nBit = 0) And Len(CurString) = 3 Then If CInt(Left(CurString, 1)) <> 0 And CInt(Right(CurString, 2)) <> 0 Then tmpStr = Left(tmpStr, InStr(1, tmpStr, Unit(4)) %2B Len(Unit(4))) %26 Unit(8) %26 %26 Right(tmpStr, Len(tmpStr) - (InStr(1, tmpStr, Unit(4)) %2B Len(Unit(4)))) Else If CInt(Left(CurString, 1)) <> 0 And CInt(Right(CurString, 2)) = 0 Then tmpStr = Unit(8) %26 %26 tmpStr End If End If If nBit = 0 Then Str = Trim(Str %26 %26 tmpStr) Else Str = Trim(Str %26 %26 tmpStr %26 %26 Unit(nBit)) End If If Left(Str, 3) = Unit(8) Then Str = Trim(Right(Str, Len(Str) - 3)) If BeforePoint = String(Len(BeforePoint), 0) Then Exit Do ***.print Str Loop BeforePoint = Str If Len(AfterPoint) > 0 Then AfterPoint = Unit(8) %26 %26 Unit(7) %26 %26 DecodeHundred(AfterPoint) %26 %26 Unit(5) Else AfterPoint = Unit(5) End If NumberToString = BeforePoint %26 %26 AfterPoint End Function Private Function DecodeHundred(HundredString As String) As String Dim tmp As Integer If Len(HundredString) > 0 And Len(HundredString) <= 3 Then Select Case Len(HundredString) Case 1 tmp = CInt(HundredString) If tmp <> 0 Then DecodeHundred = StrNO(tmp) Case 2 tmp = CInt(HundredString) If tmp <> 0 Then If (tmp < 20) Then DecodeHundred = StrNO(tmp) Else If CInt(Right(HundredString, 1)) = 0 Then DecodeHundred = StrTens(Int(tmp / 10)) Else DecodeHundred = StrTens(Int(tmp / 10)) %26 - %26 StrNO(CInt(Right(HundredString, 1))) End If End If End If Case 3 If CInt(Left(HundredString, 1)) <> 0 Then DecodeHundred = StrNO(CInt(Left(HundredString, 1))) %26 %26 Unit(4) %26 %26 DecodeHundred(Right(HundredString, 2)) Else DecodeHundred = DecodeHundred(Right(HundredString, 2)) End If Case Else End Select End IfEnd Function Private Sub Init() If StrNO(1) <> One Then StrNO(1) = One StrNO(2) = Two StrNO(3) = Three StrNO(4) = Four StrNO(5) = Five StrNO(6) = Six StrNO(7) = Seven StrNO(8) = Eight StrNO(9) = Nine StrNO(10) = Ten StrNO(11) = Eleven StrNO(12) = Twelve StrNO(13) = Thirteen StrNO(14) = Fourteen StrNO(15) = Fifteen StrNO(16) = Sixteen StrNO(17) = Seventeen StrNO(18) = Eighteen StrNO(19) = Nineteen StrTens(1) = Ten StrTens(2) = Twenty StrTens(3) = Thirty StrTens(4) = Forty StrTens(5) = Fifty StrTens(6) = Sixty StrTens(7) = Seventy StrTens(8) = Eighty StrTens(9) = Ninety Unit(1) = Thousand 材?熌?? Unit(2) = Million 材?熌?? Unit(3) = Billion 材?熌?? Unit(4) = Hundred Unit(5) = Only Unit(6) = Point Unit(7) = Cents Unit(8) = And End If End Sub保存此代码到本地3.模块中已经定义了函数名称:NumberToString直接当作EXCEL本地函数使用,例如在A1=7,在B1中输入=NumberToString(A1)就可以拉!

WPS中怎样把word中的表格直接转换到excel中呢?既有文字也有数字
老师,你好!在Excel表格中,一个单元格,前面有字,后面跟着数字,如何把这个单元格里面的数字变成大写!
老师,怎么把图片里的数字在后面一格里转成月份
老师你好,怎样把excel表格里面的数字转换成英文字母?
老师好,怎么样设置只要把第一个分表的C列转换为数字,其他分表也转换为数字呢?谢谢。
个人付款,但是要求开公司抬头,实际发生业务也是跟公司合作,可以开吗?
个人付款,但是要求开公司抬头,实际发生业务也是跟公司合作,可以开吗?
猪肉牛肉和鸡蛋在商品流通环节销售是不征征增值税的,那么开发票上面税率是填免税还是零税率?
老师,小规模企业如果季度收入超过90万会强制变成一般纳税人嘛?
老师 您好 我目前是待业状态,因为身体原因休息了大概得快两年了。之前有过一年私募基金代理记账会计助理的经验,有初级会计证,但是现在也快忘没了。我打算学完四十期去找工作,准备往成本方向发展,之后也想走财务bp。请问这两个方向冲突吗?我要是往此方面准备,现阶段我把重点放在哪里呢,学习过程中要注意什么呢,后续我还要报什么课程吗?
老师,业务招待费超出限额部份可以结转以后年度扣除吗?
老师,这个月开票金额为5168636.32,税额为769574.52 ,税负率为3%,需要勾选多少进项发票
老师,想问一下就是,比如装修一个办公室,老板出资了200万,然后这个款项用来装修买了各种物品,这个怎么做分录了
老师,我的其他应付款都报表死活对不上咋办啊[流泪]
老师,我这有三个门店,我三个门店现在都是个体执照,名字不同,法人不同,经营范围一致,我想了解下注册小规模企业有限责任公司执照我应该怎么用这个执照运营这三家门店最合理,我不懂这个企业执照,有什么说法吗?我注册资本就想做最低的
好复杂哦,没有简单的函数公式的吗?我就是转换成一个英文字母就好了
我现在表格有 1 0 我只需要把这两个数据变成两个不同的英文字母就好了
这个没有,要是替换同一个字母,可以用查找替换。
替换成两个字母没有办法吗?只有用你第一个发来的吗?
是的。。就是这个公式。