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

[µo°Ý] ¸ê¦C¦C¦Û­q½Æ»s¼Æ¶q

[µo°Ý] ¸ê¦C¦C¦Û­q½Æ»s¼Æ¶q

¦U¦ì¤j¤j

sheet1¤u§@ªíA1:C10¬°¸ê®Æ°Ï, ¨ä¤¤CÄ欰¦C½Æ»s¼Æ¶q, ©óCÄæ¿é¤J­È«á,
«ö¤U «ö¶s¶}©l¶i¦æ¸ê®Æ°Ï½Æ»s,
­Y­È¬°¹s®É¤£°µ¥ô¦ó°Ê§@,
­Y­Èµ¥©ó1®É«h½Æ»s¸Ó¸ê®Æ¦C1¦¸,
­Y­È¤j©ó1´N¨Ì·Ó©Ò¹ïÀ³ªº­È¶i¦æ¦h¦¸½Æ»s¨Ã¹ïBÄæ(¦¹¬°ÅܼÆ)«ö¶¶§Ç½s¸¹ª½¨ì§¹¦¨¸Ó­È.
  
·Ð½Ð¥ý¶i ¤j¤j«ü¾É
TEST24.rar (31.26 KB)

¦^´_ 1# luke
¸Õ¸Õ¬Ý
  1. Option Explicit
  2. Sub Ex()
  3.     Dim x As Integer, Rng As Range, i As Integer
  4.     x = 1
  5.     Set Rng = Cells(15, 1) '³]©ó [A15]
  6.     Do
  7.         For i = 1 To Cells(x, 3)          '3:CÄæ
  8.             Rng = Cells(x, 1)             '1:AÄæ  '2:BÄæ
  9.             Rng.Offset(, 1) = Cells(x, 2) & IIf(Cells(x, 3) > 1, "-" & i, "")
  10.             Rng.Offset(, 2) = 1
  11.             Set Rng = Rng.Offset(1)
  12.         Next
  13.         x = x + 1
  14.     Loop While Cells(x, 3) <> ""
  15. End Sub
½Æ»s¥N½X

TOP

¦^´_ 2# GBKEE


    ÁÂÁª©¤j¦^ÂÐ

     ­YCÄ椤¦³ªÅ¥Õ®æ§YC1:C10Àx¦s®æ¤¤, ¥ô¤@Àx¦s®æ¦³ªÅ¥Õ(«D¹s­È)®É,
     ¸ê®Æ¦C·|³Q¤¤Â_½Æ»s©R¥O
     ¨Ò: C3="",¤U¥y­n¦p¦ó­×§ï¤~·|Ä~Äò¥¼§¹ªºC5­È¦pªþÀÉ©Ò¥Ü
     Loop While Cells(x, 3) <> ""

    ¥H¤W·Ð½Ð¥ý¶i«ü¾É
TEST24-1.rar (16.51 KB)

TOP

¦^´_ 3# luke
3 §ï¦¨  Loop While Cells(x, 2) <> ""

TOP

¦^´_ 4# GBKEE

  ÁÂÁª©¤j

     ¶ÈBÄæ¿ï©w«áªº¸ê®Æ, ¥i§_¨C¹j3¦C¦A¦¸½Æ»s¦ÜEÄæ
     ¦pªþÀÉ ©Ò¥ÜE15, E19, E23©ME27 Àx¦s®æ

    ¥H¤W
   ·Ð½Ð¥ý¶i «ü¾É

TEST24-2.rar (25.46 KB)

TOP

¦^´_ 5# luke
  1. Option Explicit
  2. Sub Ex()
  3.     Dim x As Integer, Rng As Range, i As Integer
  4.     x = 1
  5.     Set Rng = Cells(15, 1) '³]©ó [A15]
  6.     Do
  7.      For i = 1 To Cells(x, 3)          '3:CÄæ
  8.            Rng = Cells(x, 1)        '1:AÄæ'2:BÄæ
  9.            Rng.Offset(, 1) = Cells(x, 2) & IIf(Cells(x, 3) > 1, "-" & i, "")
  10.            Rng.Offset(, 2) = 1
  11.            Set Rng = Rng.Offset(4)  '§ï³o¸Ì ¤U²¾4¦C
  12.      Next
  13.      x = x + 1
  14.          Loop While Cells(x, 2) <> ""
  15. End Sub
½Æ»s¥N½X

TOP

        ÀR«ä¦Û¦b : ¯u¥¿ªº·R¤ß¡A¬O·ÓÅU¦n¦Û¤vªº³oÁû¤ß¡C
ªð¦^¦Cªí ¤W¤@¥DÃD