¦p¦ó±N¼Æ¦r180.30§ï¦¨°ê¦r³ü®Ã¹sÂI°Ñ¹s
- ©«¤l
- 618
- ¥DÃD
- 17
- ºëµØ
- 0
- ¿n¤À
- 663
- ÂI¦W
- 1
- §@·~¨t²Î
- WINDOWS 7
- ³nÅ骩¥»
- OFFICE 2013
- ¾\ŪÅv
- 50
- ©Ê§O
- ¨k
- ¨Ó¦Û
- Pingtung
- µù¥U®É¶¡
- 2011-9-2
- ³Ì«áµn¿ý
- 2024-7-5
|
¥»©«³Ì«á¥Ñ p212 ©ó 2013-12-11 09:20 ½s¿è
¦^´_ 7# ML089
·PÁÂML089 ª©¥D¼ö¤ß¸Ñ»¡TEXT(A1,"[DBNum2]0.00;;")¨Ï¥Î2Ó¤À¸¹¡A¥i¨ÏÀx¦s®æA1¬°ªÅ®æ®É¹Bºâ¦^À³¬°¡uªÅ¥Õ¡v¡C
¦ý°w¹ïTEXT(A1,"[DBNum2]0.00;;")¤½¦¡¦³¤U¦CºÃ´b¡A·Ð½Ð½ç±Ð¡AÁÂÁ¡I
1¡B¨Ï¥Î2Ó¤À¸¹ªº TEXT(A1,"[DBNum2]0.00;;")»P¨Ï¥Î1Ó¤À¸¹ªº TEXT(A1,"[DBNum2]0.00;")¡A¨äµ²ªG¦ü¥G¬O¬Û¦Pªº¡A¹ï§_¡H¨º»òY§ï¥Î1Ó¤À¸¹·|¦³¦ó¡u¤£¹w´Á¤ÏÀ³¡v¡H
2¡B·íÀx¦s®æA1¬°¡ut¼Æ¡v®É¡A¤½¦¡TEXT(A1,"[DBNum2]0.00;;")¦^À³ªºµ²ªG±N¬°¡uªÅ¥Õ¡v¡A¦¹À³¦p¦ó×¥¿¨Ï¨ä¥X²{t¼Æªºµ²ªG¡H
3¡B¹ï©óTEXT(¼Æ¦r¡A"¥¿;t;¹s;¤å¦r")¤§"¥¿;t;¹s;¤å¦r"¡A¦¹³W«hì²z¤§¸Ô²Ó»¡©ú¥i©ó¦ó³B¬d¸ß¡H(¦b<<Excel»¡©ú>>¬dµL¦¹³W«h) |
|
|
|
|
|
|
- ©«¤l
- 2025
- ¥DÃD
- 13
- ºëµØ
- 0
- ¿n¤À
- 2053
- ÂI¦W
- 0
- §@·~¨t²Î
- WIN7
- ³nÅ骩¥»
- Office2007
- ¾\ŪÅv
- 100
- ©Ê§O
- ¨k
- ¨Ó¦Û
- ¥x¥_¥«
- µù¥U®É¶¡
- 2011-3-2
- ³Ì«áµn¿ý
- 2024-3-14
|
¦^´_ ML089
¦^´_ 7# ML089
·PÁÂML089 ª©¥D¼ö¤ß¸Ñ»¡TEXT(A1,"[DBNum2]0.00;;")¨Ï¥Î2Ó¤À¸¹¡A¥i¨ÏÀx¦s®æA1¬°ªÅ®æ®É¹Bºâ¦^À³¬°¡uªÅ¥Õ¡v¡C
¦ý°w¹ïTEXT(A1,"[DBNum2]0.00;;")¤½¦¡¦³¤U¦CºÃ´b¡A·Ð½Ð½ç±Ð¡AÁÂÁ¡I
1¡B¨Ï¥Î2Ó¤À¸¹ªº TEXT(A1,"[DBNum2]0.00;;")»P¨Ï¥Î1Ó¤À¸¹ªº TEXT(A1,"[DBNum2]0.00;")¡A¨äµ²ªG¦ü¥G¬O¬Û¦Pªº¡A¹ï§_¡H¨º»òY§ï¥Î1Ó¤À¸¹·|¦³¦ó¡u¤£¹w´Á¤ÏÀ³¡v¡H
2¡B·íÀx¦s®æA1¬°¡ut¼Æ¡v®É¡A¤½¦¡TEXT(A1,"[DBNum2]0.00;;")¦^À³ªºµ²ªG±N¬°¡uªÅ¥Õ¡v¡A¦¹À³¦p¦ó×¥¿¨Ï¨ä¥X²{t¼Æªºµ²ªG¡H
3¡B¹ï©óTEXT(¼Æ¦r¡A"¥¿;t;¹s;¤å¦r")¤§"¥¿;t;¹s;¤å¦r"¡A¦¹³W«hì²z¤§¸Ô²Ó»¡©ú¥i©ó¦ó³B¬d¸ß¡H(¦b<<Excel»¡©ú>>¬dµL¦¹³W«h)
p212 µoªí©ó 2013-12-11 09:10
°ÝÃD1¡B2½Ð¬Ý¤U±¹Ï»¡¤º®e
°ÝÃD3¡A§Ú¤£ª¾¹DTEXTªº»¡©ú¥X¦Ûþ¸Ì¡A§Ú³s®Ñ³£¨S¦³¡A¤j³¡¬O¦b½×¾Â¤WÃä¬ÝÃä¾Ç¡A¥[¤W¦Û¤vªº´ú¸Õ´N¹³§ÚPOªº¹Ï¡AÁÙ¦³F1ªº»¡©ú+GOOGLEªº¬d¸ß
|
|
{...} ªí¥Ü»Ýn¥Î CTRL+SHIFT+ENTER ¤TÁä¿é¤J¤½¦¡
|
|
|
|
|
- ©«¤l
- 2025
- ¥DÃD
- 13
- ºëµØ
- 0
- ¿n¤À
- 2053
- ÂI¦W
- 0
- §@·~¨t²Î
- WIN7
- ³nÅ骩¥»
- Office2007
- ¾\ŪÅv
- 100
- ©Ê§O
- ¨k
- ¨Ó¦Û
- ¥x¥_¥«
- µù¥U®É¶¡
- 2011-3-2
- ³Ì«áµn¿ý
- 2024-3-14
|
¦^´_ 10# c_c_lai
¥ÑÅܼƫŧi¤ÎÅܼƩR¦W¨Ó¬Ý¡A§AÀ³¸Ó¬O«Ü±M·~ªºµ{¦¡¤Hû¡C
§Ú¥H«e³£¬O¼gFORTRAN¤pµ{¦¡´N¨S¦³¾i¦¨³o²ßºD¡A¤é«áVBA³¡¤ÀÀ³¸Ón¸ò§A¦h¦h¾Ç²ß¡C
³oºØ¤pµ{¦¡¾A¦X§Ú¨Ó½m²ß
Sub ex2()
Dim strs As String, num As Variant
strs = ""
num = 123.4
strs = strs & num & Chr(10) & NumToCur2(num) & Chr(10)
num = -456.789
strs = strs & num & Chr(10) & NumToCur2(num) & Chr(10)
num = 0
strs = strs & num & Chr(10) & NumToCur2(num) & Chr(10)
num = "123 456 789"
strs = strs & num & Chr(10) & NumToCur2(num) & Chr(10)
MsgBox strs
End Sub
Function NumToCur2(ByVal num) As String
NumToCur2 = num: N = "0123456789.": C = "¹s³ü¶L°Ñ¸v¥î³°¬m®Ã¨hÂI"
For i = 1 To Len(N)
NumToCur2 = Replace(NumToCur2, Mid(N, i, 1), Mid(C, i, 1))
Next
End Function |
|
{...} ªí¥Ü»Ýn¥Î CTRL+SHIFT+ENTER ¤TÁä¿é¤J¤½¦¡
|
|
|
|
|
- ©«¤l
- 2035
- ¥DÃD
- 24
- ºëµØ
- 0
- ¿n¤À
- 2031
- ÂI¦W
- 0
- §@·~¨t²Î
- Win7
- ³nÅ骩¥»
- Office2010
- ¾\ŪÅv
- 100
- ©Ê§O
- ¨k
- µù¥U®É¶¡
- 2012-3-22
- ³Ì«áµn¿ý
- 2024-2-1
|
¦^´_ 13# ML089
§Ú¨º NumToCur() ¬O¥Ñ¥H¤Uªº NumToCurr() קï¦Ó¦¨¡A
©Ò¥H®æ§½¤´«O¯dìµ{¦¡·®æ¡G- ' -----------------------------------------------------------------------------
- ' ¹ôȤå¼Æ¦rÂà´«
- ' ¤ÞÈ (num)¡G Âùºë·Ç (Double) ¼ÆÈ num as Currency
- ' -----------------------------------------------------------------------------
- Function NumToCurr(ByVal num) As String
- Const cNum As String = "¹s³ü¶L°Ñ¸v¥î³°¬m®Ã¨h-¸U¥a¨Õ¬B»õ¥a¨Õ¬B¸U¥a¨Õ¬B¤¸¨¤¤À"
- Const cCha As String = "¹s¥a¹s¨Õ¹s¬B¹s¹s¹s¹s¹s»õ¹s¸U¹s¤¸»õ¸U¹s¨¤¹s¤À¹s¾ã-¹s¹s¹s¹s¹s»õ¸U¤¸»õ¹s¾ã¾ã"
- Dim sNum As String
- Dim i As Long
-
- If (num <> 0) And (Abs(num) < 10000000000000#) Then ' (Abs(num) < 10000000000000#) = True
- sNum = Trim(Str(Int(Abs(num) * 100)))
- For i = 1 To Len(sNum) ' ³v¦ìÂà´«
- NumToCurr = NumToCurr + Mid(cNum, (Mid(sNum, i, 1)) + 1, 1) + Mid(cNum, 26 - Len(sNum) + i, 1)
- Next
- For i = 0 To 11 ' ¥h±¼¦h¾lªº¹s
- NumToCurr = Replace(NumToCurr, Mid(cCha, i * 2 + 1, 2), Mid(cCha, i + 26, 1))
- Next
- If num < 0 Then NumToCurr = "(t)" + NumToCurr
- Else
- NumToCurr = IIf(num = 0, "¹s¤¸", "·¸¥X")
- End If
- End Function
½Æ»s¥N½X ¥i¯à³o°¦µ{¦¡½X¹ï§A·|¸û¹ê¥Î¡C |
|
|
|
|
|
|
- ©«¤l
- 2025
- ¥DÃD
- 13
- ºëµØ
- 0
- ¿n¤À
- 2053
- ÂI¦W
- 0
- §@·~¨t²Î
- WIN7
- ³nÅ骩¥»
- Office2007
- ¾\ŪÅv
- 100
- ©Ê§O
- ¨k
- ¨Ó¦Û
- ¥x¥_¥«
- µù¥U®É¶¡
- 2011-3-2
- ³Ì«áµn¿ý
- 2024-3-14
|
¦^´_ 14# c_c_lai
§A³o¦Û©w¨ç¼Æ¾A¥Î©ó¤ä²¼ªºª÷ÃB
¼Ó¥DªºÀ³¸Ó¬O ªí³æ¤W¤è¤w¸g¦L¦n Ó¤Q¦Ê¤d¸U¡A¤U¤èn¦L¤J¼Æ¦rÂà¤j¼g¼Æ¦r¡C |
|
{...} ªí¥Ü»Ýn¥Î CTRL+SHIFT+ENTER ¤TÁä¿é¤J¤½¦¡
|
|
|
|
|
- ©«¤l
- 55
- ¥DÃD
- 17
- ºëµØ
- 0
- ¿n¤À
- 79
- ÂI¦W
- 0
- §@·~¨t²Î
- XP
- ³nÅ骩¥»
- office2007
- ¾\ŪÅv
- 20
- ©Ê§O
- ¨k
- µù¥U®É¶¡
- 2013-7-17
- ³Ì«áµn¿ý
- 2020-12-31
|
|
§A²q!!
|
|
|
|
|