ªð¦^¦Cªí ¤W¤@¥DÃD µo©«

¦p¦ó±N¼Æ¦r180.30§ï¦¨°ê¦r³ü®Ã¹sÂI°Ñ¹s

¦p¦ó±N¼Æ¦r180.30§ï¦¨°ê¦r³ü®Ã¹sÂI°Ñ¹s

§Ú¥uª¾¹D±N¼Æ¦r180.30§ï¦¨³ü¨Õ®Ã¬B.°Ñ
¦ý­n¦p¦ó±N¼Æ¦r180.80§ï¦¨°ê¦r³ü®Ã¹sÂI°Ñ¹s
½Ð¤j¤jÀ°¦£
µ{¦¡Â÷§Ú¦n»·

¦^´_ 1# sasah168


    https://dl.dropboxusercontent.com/u/61135474/%E8%8B%B1%E6%96%87%E5%A4%A7%E5%AF%AB%E8%BD%89%E6%8F%9B.xls
°Ñ¦Ò¬Ý¬Ý....
50 ¦r¸`¥H¤º
¤£¤ä«ù¦Û©w¸q Discuz! ¥N½X

TOP

¥»©«³Ì«á¥Ñ p212 ©ó 2013-12-10 16:19 ½s¿è

¦^´_ 1# sasah168
°²³]Àx®æA1¬°180.3
©ó¥ô¤@Àx¦s®æ¿é¤J =LEFT(TEXT(A1,"[dbnum2]"),FIND(".",TEXT(A1,"[dbnum2]"))-1)&"ÂI"&RIGHT(TEXT(A1,"[dbnum2]"),LEN(TEXT(A1,"[dbnum2]"))-FIND(".",TEXT(A1,"[dbnum2]")))

TOP

¥»©«³Ì«á¥Ñ ANGELA ©ó 2013-12-10 16:52 ½s¿è

¦^´_ 1# sasah168
Sorry!
3#ªº¦^ÂÐ¥¼©P¥þ¡A½Ð°Ñ¦Ò¤U¦C²Õ¦X¤½¦¡¡C
°²³]Àx®æA1¬°180.30¡A¥ô¤@Àx¦s®æ¿é¤J
=LEFT(TEXT(A1,"[DBNum2]0.00"),FIND(".",TEXT(A1,"[DBNum2]0.00"))-1)&"ÂI"&RIGHT(TEXT(A1,"[DBNum2]0.00"),LEN(TEXT(A1,"[DBNum2]0.00"))-FIND(".",TEXT(A1,"[DBNum2]0.00")))
µª®×§Y¬°¡u³ü®Ã¹sÂI°Ñ¹s¡v
«ä¸ô¡G¥ô¤@Àx¦s®æ¿é¤J=TEXT(A1,"[DBNum2]0.00")±o¡u³ü®Ã¹s.°Ñ¹s¡v
¤p¼Æ©T©w¨â¦ì¥i¬Ù²¤¦¨......&"ÂI"&RIGHT(TEXT(A1,"[DBNum2]0.00"),2)

TOP

=SUBSTITUTE(TEXT(A1,"[DBNum2]0.00;;"),".","ÂI")
{...} ªí¥Ü»Ý­n¥Î CTRL+SHIFT+ENTER ¤TÁä¿é¤J¤½¦¡

TOP

¥»©«³Ì«á¥Ñ p212 ©ó 2013-12-10 22:19 ½s¿è

¦^´_ 5# ML089
·PÁÂML089ª©¥D²¤Æ¤½¦¡
½Ð°Ý¡G¦b=SUBSTITUTE(TEXT(A1,"[DBNum2]0.00;;"),".","ÂI") ¤¤¨Ï¥Î¬õ¦r³¡¥÷¡u2­Ó¤À¸¹¡v¥Î·N¦ó¦b¡H
·Ð½Ð½ç±Ð¡AÁÂÁ¡I

TOP

¦^´_  ML089
·PÁÂML089ª©¥D²¤Æ¤½¦¡
½Ð°Ý¡G¦b=SUBSTITUTE(TEXT(A1,"[DBNum2]0.00;;"),".","ÂI") ¤¤¨Ï¥Î¬õ ...
p212 µoªí©ó 2013-12-10 22:14


TEXT(¼Æ¦r¡A"¥¿;­t;¹s;¤å¦r")
«á­±±N¨â­Ó ;; ¥D­n§@¥Î¬O¨S¦³¿é¤J¼Æ­È®É¥HªÅ¥Õ§e²{
{...} ªí¥Ü»Ý­n¥Î CTRL+SHIFT+ENTER ¤TÁä¿é¤J¤½¦¡

TOP

=SUBSTITUTE(TEXT(A1,"[DBNum2]0.00;;"),".","ÂI")
ML089 µoªí©ó 2013-12-10 19:55

¤£¿ùªº Idea¡I
¶¶«K®¥¶P§A¤É¥ôª©¥D¡C

TOP

¦^´_ 1# sasah168
°£¤F¥H¤½¦¡ (ML089 ª©¤j´£¥Ü) ³B²z¥~¡A©|¥i¥H¨Ï¥Î VBA ¼Ò²Õªº¤è¦¡¨Ó³B²z¡A¦p¹Ï¡G

TOP

§Ú¥uª¾¹D±N¼Æ¦r180.30§ï¦¨³ü¨Õ®Ã¬B.°Ñ
¦ý­n¦p¦ó±N¼Æ¦r180.80§ï¦¨°ê¦r³ü®Ã¹sÂI°Ñ¹s
½Ð¤j¤jÀ°¦£ :di ...
sasah168 µoªí©ó 2013-12-10 11:45

¸m©ó "¼Ò²Õ -> Module1" ¤º¡G
  1. Sub Ex()
  2.     Dim strs As String, num As Double
  3.    
  4.     num = 15673624.89
  5.     strs = NumToCur(num)
  6.     MsgBox num & Chr(10) & strs & Chr(10) & NumToCur(180.3)
  7. End Sub

  8. Function NumToCur(ByVal num) As String
  9.     Const cNum As String = "¹s³ü¶L°Ñ¸v¥î³°¬m®Ã¨h-            ÂI  "
  10.     Dim sNum As String
  11.     Dim i As Long
  12.    
  13.     If (num <> 0) And (Abs(num) < 10000000000000#) Then
  14.         sNum = Trim(Str(Int(Abs(num) * 100)))
  15.         For i = 1 To Len(sNum)                ' ³v¦ìÂà´«
  16.             NumToCur = NumToCur + Mid(cNum, (Mid(sNum, i, 1)) + 1, 1) + Mid(cNum, 26 - Len(sNum) + i, 1)
  17.             '  NumToCur = NumToCur + Mid(cNum, (Mid(sNum, i, 1)) + 1, 1)
  18.         Next
  19.         NumToCur = Replace(NumToCur, " ", "")
  20.         If num < 0 Then NumToCur = "(­t)" + NumToCur
  21.     Else
  22.         NumToCur = IIf(num = 0, "¹s­È", "·¸¥X")
  23.     End If
  24. End Function
½Æ»s¥N½X

TOP

        ÀR«ä¦Û¦b : ¬O«D·í±Ð¨|¡AÆg¬ü§@ĵ±§¡C
ªð¦^¦Cªí ¤W¤@¥DÃD