• <sup id="azsug"></sup>

    <menu id="azsug"></menu><dfn id="azsug"><li id="azsug"></li></dfn>
      <td id="azsug"></td>
      <sup id="azsug"></sup>
    1. 丰满无码人妻热妇无码区,亚洲国产欧美一区二区好看电影,大地资源中文第二页日本,亚洲色大成网站WWW永久麻豆,中文字幕乱码一区二区免费,欧美人妻在线一区二区,草裙社区精品视频播放,精品日韩人妻中文字幕
      問題已解決

      老師你好,怎樣把excel表格里面的數字轉換成英文字母?

      84785011| 提問時間:2023 02/14 16:01
      溫馨提示:如果以上題目與您遇到的情況不符,可直接提問,隨時問隨時答
      速問速答
      玲老師
      金牌答疑老師
      職稱:會計師
      你好 ? 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)) + Len(Unit(4))) %26 Unit(8) %26 %26 Right(tmpStr, Len(tmpStr) - (InStr(1, tmpStr, Unit(4)) + 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)就可以拉!
      2023 02/14 16:02
      84785011
      2023 02/14 16:03
      好復雜哦,沒有簡單的函數公式的嗎?我就是轉換成一個英文字母就好了
      84785011
      2023 02/14 16:06
      我現在表格有 1 0 我只需要把這兩個數據變成兩個不同的英文字母就好了
      玲老師
      2023 02/14 16:11
      這個沒有,要是替換同一個字母,可以用查找替換。
      84785011
      2023 02/14 16:14
      替換成兩個字母沒有辦法嗎?只有用你第一個發來的嗎?
      玲老師
      2023 02/14 16:47
      是的。。就是這個公式。
      描述你的問題,直接向老師提問
      0/400
          提交問題

          您有一張限時會員卡待領取

          00:10:00

          免費領取
          主站蜘蛛池模板: 午夜精品国产自在| 香港日本三级亚洲三级| 高清免费毛片| 99中文字幕国产精品| 99精品热在线在线观看视 | 亚洲精品自拍区在线观看 | 亚洲精品成人片在线观看精品字幕 | 在线视频中文字幕二区| 99在线小视频| 国产成人精品亚洲午夜| 欧美日韩一区二区综合| 久久天天躁狠狠躁夜夜2020老熟妇| 成人午夜福利免费专区无码| 宁蒗| 欧洲亚洲国内老熟女超碰| 区一区二区三区中文字幕| 精品尤物TV福利院在线网站| 亚洲国产精品线观看不卡| 国产精品毛片在线看不卡| 亚洲一区二区在线无码| 午夜毛片不卡免费观看视频| 国产精品熟女乱色一区二区| 五级黄高潮片90分钟视频| 日本大片在线看黄a∨免费| 日韩精品一区二区在线视| 女人与公狍交酡女免费| 人妻精品动漫h无码| 一本久道久久综合中文字幕| 五月丁香啪啪| 小嫩批日出水无码视频免费| 巴楚县| 精品一日韩美女性夜视频| 亚洲精品无码成人A片九色播放| 日本不卡片一区二区三区| 久久久久人妻精品一区三寸| 不卡一区二区国产精品| 92成人午夜福利一区二区| 高清国产精品人妻一区二区| 亚洲国产高清av网站| 国产国产久热这里只有精品| 精品久久8x国产免费观看|