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

[µo°Ý] ½Ð°Ý¦p¦ó±N¤º®e¦³¤¤µØ¥Á°ê¤é´Áªº¦r²´§ì¥X¨ÓÂন¦è¤¸¤é´Á?

¦^´_ 10# GBKEE


    ¶Wª©´N¬O³o¦U
   SendKeys³o¦UÁÙ¬O²Ä¤@¦¸±µÄ²
   ¥ý¦¬¤U¬ã¨s¤@¤U
¦r¨å¨â¦U¦r ÁÙ¯uÃø²z¸Ñ

TOP

¦^´_ 3# freeffly

¦³³W«hªº¸ê®Æ¥i¥H¥Î MID¤ÎFIND¨ç¼Æ¨Ó§¹¦¨

B2¤½¦¡
=--(MID(A2,10,3)+1911&MID(A2,13,FIND("¤é¡@",A2)-12))

¥X¨Ó¬O¼Æ¦r¡A»Ý³]©wÀx¦s®æ®æ¦¡ - ¤é´Á¡A¤~·|Åã¥Ü¤é´Á
{...} ªí¥Ü»Ý­n¥Î CTRL+SHIFT+ENTER ¤TÁä¿é¤J¤½¦¡

TOP

§Ú·Q­n¦bBÄæÅã¥ÜAÄæ¹ïÀ³ªº¦è¤¸¤é´Á
½Ð°Ý¦³¿ìªk°µ¨ì¶Ü?
freeffly µoªí©ó 2013-5-30 16:07

¥H¤U¬O GBKEE ª©¤jªººî¦Xª©¡G
  1. Sub Ex()
  2.     Dim i  As Long, xl_Year As String,  yr As String
  3.    
  4.     With Range("A1:A" & [A1].End(xlDown).Row)
  5.         .Cells(1).Select
  6.         For i = 1 To .Count
  7.             If InStr(.Cells(i), "¤¤µØ¥Á°ê") Then
  8.                 '  InStr ¨ç¼Æ ¶Ç¦^¦b¬Y¦r¦ê¤¤¤@¦r¦êªº³Ì¥ý¥X²{¦ì¸m¡A¦¹¦ì¸m¬° Variant (Long)¡C
  9.                 xl_Year = Mid(.Cells(i), InStr(.Cells(i), "¤¤µØ¥Á°ê") + 4, 10)      '  ¦~«×
  10.                 yr = Trim(Str(Int(Left(xl_Year, InStr(xl_Year, "¦~") - 1)) + 1911) + Mid(xl_Year, InStr(xl_Year, "¦~"), InStr(xl_Year, "¤é") - InStr(xl_Year, "¦~") + 1))
  11.                 .Cells(i).Offset(, 1) = yr
  12.                 .Cells(i).Offset(, 2) = Left(yr, 4) + "/" + Mid(yr, 6, InStr(yr, "¤ë") - 6) + "/" + Mid(yr, InStr(yr, "¤ë") + 1, InStr(yr, "¤é") - InStr(yr, "¤ë") - 1)
  13.             End If
  14.         Next i
  15.     End With
  16. End Sub
½Æ»s¥N½X
¦p¦ó±N¤º®e¦³¤¤µØ¥Á°ê¤é´Áªº¦r²´§ì¥X¨ÓÂন¦è¤¸¤é´Á.rar (13.42 KB)

TOP

¥»©«³Ì«á¥Ñ freeffly ©ó 2013-6-6 11:41 ½s¿è

¦^´_ 12# ML089


    ³o¦U°÷µu¡A¤]«Ü¦n¥Î

   ¸Õ¤F¤@¤U¡A¹ï©ó¤é´Áªº³B²z§Ú³£¬O¥Îdateªº¤è¦¡
   ³oºØ¤èªk§Ú²{¦b¾Ç²ß¤F
¦r¨å¨â¦U¦r ÁÙ¯uÃø²z¸Ñ

TOP

¦^´_ 13# c_c_lai


    ³o¦U¤è¦¡¶]°_¨Óªá¤F¨Ç®É¶¡
   ¤£¹L¤@¼Ë¦³¹F¨ì®ÄªG
¦r¨å¨â¦U¦r ÁÙ¯uÃø²z¸Ñ

TOP

¦^´_ 14# freeffly

EXCEL¦b­pºâ®É¡A«Ü´¼¼z¿ëÃѤ@¨Ç¤å¦r®æ¦¡Âà¤Æ¬°¼Æ­È¶i¦æ­pºâ

XXXX-XX-XX¡A XXXX/XX/XX¡A XX/XX¡A XXXX¦~XX¤ëXX¤é ³£·|µø¬°¤é´Á¦Û°Ê´«¶i¦æ­pºâ

XX:XX¡A XX:XX:XX  ³£·|µø¬°®É¶¡¦Û°Ê´«¶i¦æ­pºâ

©Ò¥H¦b­pºâ®É¤£¨£±o»Ý­n¥Î¤é´Á¡B®É¶¡¨ç¼ÆÁÙÂà·Ø
.
{...} ªí¥Ü»Ý­n¥Î CTRL+SHIFT+ENTER ¤TÁä¿é¤J¤½¦¡

TOP

¦^´_ 16# ML089


    ³o§Ú¥H«e­Ë¤£ª¾¹D
   §Ú³£ªF¾Ç¤@ÂI¦è¾Ç¤@ÂI
   ·|¦³¿òº|ªºÂI
   ·PÁ±оÉ
¦r¨å¨â¦U¦r ÁÙ¯uÃø²z¸Ñ

TOP

¦^´_ 13# c_c_lai
  1. Sub Ex_¤é´Á¼Æ­È()
  2.     Dim i  As Long, xl_Year As Variant
  3.     With Range("B1:B" & [A1].End(xlDown).Row)
  4.         .Cells = "=MID(RC[-1],10,10)"
  5.         .Value = .Value
  6.         .Replace "µo", ""
  7.         For i = 1 To .Count
  8.             xl_Year = Split(.Cells(i), "¦~")
  9.             xl_Year(0) = xl_Year(0) + 1911 & "¦~"
  10.             .Cells(i) = Trim(Join(xl_Year, ""))
  11.         Next
  12.         .Cells.Replace "¦~", "/", xlPart
  13.         .Cells.Replace "¤ë", "/"
  14.         .Cells.Replace "¤é", ""
  15.         .Cells.Sort Key1:=.Cells(1), Order1:=xlAscending, Header:=xlNo
  16.     End With
  17. End Sub
½Æ»s¥N½X
·P®¦ªº¤ß......(¦b³Â»¶®a±Ú°Q½×°Ï.¥Î¤ß¾Ç²ß·|¦³¶i¨Bªº)
¦ý¸ê·½µL­­,«á´©¦³­­,  ¤@¤Ñ1¤¸ªºÃÙ§U,¤H¤H¦³¯à¤O.

TOP

¦^´_ 18# GBKEE
±zÀ³¥Î Split »P Replace ªº§Þ¥©¡Aµ¹§Ú«Ü¤jªº±Ò¥Ü¤Î¡AÀ°§U¡BÁA¸Ñ¡A
ÁÂÁ±z¡I
¥t¥~¦A¶¶±a½Ð±Ð¡G .Cells.Sort Key1:=.Cells(1), Order1:=xlAscending, Header:=xlNo
¥u Sort BÄ檺³¡¤À¡A¦pªG§Ú·Q­n¦P®É¯à±N AÄæ¤@¨Ö¦P®É¥¿½T¦a¤@¦¸§¹¦¨ Sort¡A
¨º¦p¦ó³B²z¡H

TOP

¦^´_ 18# GBKEE
§Ú¦Û¤vºN¯Á¡A¤w¸g§ä¨ìµª®×¤F¡AÁÂÁ±z¡I
  1. Sub Ex_¤é´Á¼Æ­È()
  2.     Dim i  As Long, xl_Year As Variant
  3.    
  4.     With Range("B1:B" & [A1].End(xlDown).Row)
  5.         .Cells = "=MID(RC[-1],10,10)"
  6.         .Value = .Value
  7.         .Replace "µo", ""
  8.         
  9.         For i = 1 To .Count
  10.             xl_Year = Split(.Cells(i), "¦~")
  11.             xl_Year(0) = xl_Year(0) + 1911 & "¦~"
  12.             .Cells(i) = Trim(Join(xl_Year, ""))
  13.             .Cells(i).Offset(, 1) = .Cells(i)
  14.         Next
  15.         
  16.         .Cells.Offset(, 1).Replace "¦~", "/", xlPart
  17.         .Cells.Offset(, 1).Replace "¤ë", "/"
  18.         .Cells.Offset(, 1).Replace "¤é", ""
  19.         ' .Cells.Sort Key1:=.Cells(1), Order1:=xlAscending, Header:=xlNo
  20.     End With
  21.    
  22.     '  With Sheet3
  23.     '      .Range("A1").CurrentRegion.Sort Key1:=.Range("B2"), Order1:=xlAscending, Header:=xlNo
  24.     '  End With
  25.     '  Range("A1").CurrentRegion.Sort Key1:=Range("B2"), Order1:=xlAscending, Header:=xlNo
  26.     Range("A1").CurrentRegion.Sort Key1:=Range("C2"), Order1:=xlAscending, Header:=xlNo
  27. End Sub
½Æ»s¥N½X

TOP

        ÀR«ä¦Û¦b : ½_ÁJµ²±o¶V¹¡º¡¡A¶V·|©¹¤U««¡A¤@­Ó¤H¶V¦³¦¨´N¡A´N­n¶V¦³Á¾¨Rªº¯ÝÃÌ¡C
ªð¦^¦Cªí ¤W¤@¥DÃD