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

[µo°Ý] ¸ê®Æ®æ¦¡Âà´«°ÝÃD

[µo°Ý] ¸ê®Æ®æ¦¡Âà´«°ÝÃD

·Q½Ð±Ð¦U¦ì¤j¤j
¦³¨S¦³¤°»ò¤èªk
¥i¥H±NªþÀɤ¤sheet1¸ê®ÆÂনsheet2ªº®æ¦¡
Test1212.zip (3.97 KB)

¥»©«³Ì«á¥Ñ kimbal ©ó 2011-12-12 13:38 ½s¿è

²³æªº¸Ü¥Î¤½¦¡´N¥i¥H¤F
B2:
=TRUNC(((ROW()-2)/5)+1)
C2:
=OFFSET(Sheet1!$B$1,Sheet2!B2,2*MOD(ROW()-2,5))
D3:
=OFFSET(Sheet1!$C$1,Sheet2!B2,2*MOD(ROW()-2,5))
µM«áB2: D3©¹¤U§Û§Y¥i

twbts20111212OFFSET.zip (5.57 KB)

À´±oµo°Ý,µª®×´N·|¦b¨ä¤¤

¤µ¤éの¤@¬íは  ©ú¤éにない
http://kimbalko-chi.blogspot.com
http://kimbalko.blogspot.com

TOP

¦A½Ð±Ð¤@­Ó°ÝÃD¡A
­Y¬O§Úªº¸ê®Æ¹³sheet1¤@¼Ë¡A¨Ã«D©T©wªºµ§¼Æ
¨º¦³B2ªº³¡¥÷¦³¿ìªk¥i¥H§JªA¶Ü¡H
TEST1212OFFSET.zip (7.74 KB)

TOP

¥»©«³Ì«á¥Ñ Hsieh ©ó 2011-12-13 11:31 ½s¿è
  1. Sub ex()
  2. Dim Ar()
  3. With Sheet1
  4. For j = 2 To .[A2].End(xlDown).Row '±q²Ä2¦C¶}©l¨ì¸ê®Æµ²§ôªº¦C¦ì§@°j°é
  5.    For i = 2 To .Cells(j, 1).End(xlToRight).Column Step 2   '±q²Ä2Äæ¶}©l¦V¥k¨ì¸Ó¦C¸ê®Æµ²§ôÄæ¦ì¡A¨C¦¸°j°é¦V¥k¥[2Äæ
  6.       ReDim Preserve Ar(s)  'ÂX¥R°ÊºA°}¦C¤j¤p
  7.       Ar(s) = Array(.Cells(j, 1).Value, "'" & .Cells(j, i).Text, .Cells(j, i + 1).Value)  '¼g¤J°ÊºA°}¦C
  8.       s = s + 1 'µ¥«Ý¤U¤@¦¸ÂX¥R°}¦C¤j¤p
  9.     Next
  10. Next
  11. End With
  12.     Sheet2.[B2].Resize(s, 3) = Application.Transpose(Application.Transpose(Ar)) '±N°}¦C¼g¤J¤u§@ªí
  13. End Sub
½Æ»s¥N½X
¦^´_ 3# imzues
¾Ç®üµL²P_¤£®¢¤U°Ý

TOP

¦^´_ 4# Hsieh


    ·PÁ¤j¤j
      §Úªº°ÝÃD¸Ñ¨M¤F¡A¦ý¦³¨Ç³¡¥÷¬Ý¤£¤ÓÀ´
      ¥i¥Hµy·LÁ¿¸Ñ«ü¾É¤@¤U¶Ü¡H

TOP

        ÀR«ä¦Û¦b : ¡i®É¶¡¦¨´N¤@¤Á¡j®É¶¡¥i¥H³y´N¤H®æ¡A¥i¥H¦¨´N¨Æ·~¡A¤]¥i¥HÀx¿n¥\¼w¡C
ªð¦^¦Cªí ¤W¤@¥DÃD