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

¨D±Ð¡G®Ö¹ï¡A¦X¦}¡A¥[Á`¡A§ó·s¡A¥[´¡¸ê®Æ

¨D±Ð¡G®Ö¹ï¡A¦X¦}¡A¥[Á`¡A§ó·s¡A¥[´¡¸ê®Æ

½Ð¦U¤j¤jÀ°¦£
Window & Door ¬O¸ê®Æ®w
Window  & Doorªí¬O°O¿ý ¦U­q³æ¸¹WO-J057-0**­qÁʨC´Ú¹Ï¸¹ªº¼Æ¶q

PJ ¬O¶×Á`ªí
¬O±NWindow & Door ¦X¦}¦¨¤@­Ó¸ê®Æ®w¡C

¦pªGWindow  & Door ¸ê®Æ®wùعϸ¹¡Aªø¡A¼e¤@­Pªº¬Û¦PWO-J057-*** ¼Æ¶q¥[Á` ¡]¦p¬õ¦â¦r FS101, FS512,  FS102, DF100¡^
¦pªGWO-J057-0** ¥þ³¡³£¬O¡§0¡¨ «h¸Ó¹Ï¸¹/ªø/¼e/­±¿n/Ãþ«¬/WO-J057-*** ªº¼Æ¶q¼Æ¾Ú¤£§Û¤JPJ¶×Á`ªí内¡C ¡]¦p FS511, DF115, DF116, DF117, DF118) ¦]爲¨S¦³­q³f¡A©Ò¥H¤£¥ÎÅã¥Ü¨ìPJ¶×Á`ªí内¡C¡^
WO-J057-0**­q³æ¸¹«h¥HÄæ¦ì±Æ¦C¡C
¦pªGWindow Ãþ«¬¤@Äæ¬O¡§¤f¦r§Î¡¨¡A PJ ªºÃþ«¬¤@ÄæÅܦ¨¡§ Mouth"  ;   
¦pªGWindow Ãþ«¬¤@Ä椣¬O¡§¤f¦r§Î¡¨¡A PJ ªºÃþ«¬¤@ÄæÅܦ¨¡§ Other"  ;
¦pªGDoor ªíªº¸ê®Æ¡A  PJ ªºÃþ«¬¤@ÄæÅܦ¨¡§ Door"  

****¦]爲¦³¾÷·|­×§ï Window & Door ¸ê®Æ©ÎªÌ¼W¥[WO-J057-0**­q³æ¡A©Ò¥HPJªí¦pªG¤£¬OªÅ¥Õ¡A«h«O¯d­ì¥»ªº¹Ï¸¹/ªø/¼e/­±¿n/Ãþ«¬ªº¸ê®Æ¡A¥u¬O§ó·s¨C­ÓWO-J057-0** ªº¼Æ¶q¡A©ÎªÌ¥[´¡PJªí内¨S¦³ªºWO-J057-0**¤@Äæ¨ìÄæE«á­±

ac test.rar (27.48 KB)

ac test.rar (27.48 KB)

sample.rar (18.5 KB)

¦^´_ 1# 198188


   ¨S¯d·N¤W¸ü¤F3­Óªþ¥ó¡Aªþ¥óSample¤~¬O¥¿½T¡A¨ä¥L¨â­Óªþ¥ó¬O¿ù¤F¡C

TOP

  1. Option Explicit
  2. Sub Test()
  3. Dim Brr, Z, i&, C, T$, T1$, T2$, T3$, T4$, T5$, T6$, xZ As Range
  4. Dim ColNum As Long
  5. Dim m, j, k As Integer
  6. Dim L As String

  7. Set Z = CreateObject("Scripting.Dictionary")

  8. Brr = Range([Window!AE02], [WINDOW!A65536].End(3))
  9. For i = 1 To UBound(Brr)
  10.    T1 = Trim(Brr(i, 2)): T2 = Val(Brr(i, 4)): T3 = Val(Brr(i, 5)):: T = T1 & "/" & T2 & "/" & T3
  11.    If T1 = "" Then GoTo i01
  12.    Z(T) = Val(Brr(i, 6))
  13. i01:    Next
  14. Brr = [PJ!a1].CurrentRegion
  15. For i = 2 To UBound(Brr)
  16.    T1 = Trim(Brr(i, 1)): T2 = Val(Brr(i, 2)): T3 = Val(Brr(i, 3)): T = T1 & "/" & T2 & "/" & T3
  17.    If T1 = "" Or Z(T) = "" Then Brr(i - 1, 1) = "": GoTo i02
  18.    Brr(i - 1, 1) = Z(T)
  19. i02: Next
  20. [PJ!D2].Resize(UBound(Brr), 1) = Brr

  21. End Sub
½Æ»s¥N½X
¦^´_ 2# 198188

Z(T) = Val(Brr(i, 6)) ¬O°O¿ýWindow Äæ F¬O¼Æ¾Ú¡A
¦pªG·Q°O¿ý¦h­ÓÄæ¦ìªº¼Æ¾Ú¡A¨Ò¦pÄæG, I, J, K - AD ,À³¸Ó¦pªG¼g¡H
¥t¥~§Ú¸Õ¹L°O¿ýÄæG¼Æ¾Ú¡A¦ý¬O¤¤¤å¦n¹³Åª¤£¥X¨Ó¡C
¦pªGWindow 内 ÄæB, D, E ¬Û¦Pªº¼Æ¾Ú¡A Äæ  I - AD ªº¼Æ¶q«öÄæ¦ì¤À§O¥[Á`¡A¦p¦óªí¹F¡H

TOP

¦^´_ 3# 198188
¬Ý¤F¤@¤U§AªºÀɮסA·Pı¦b window & door ¨â­Ósheet ³£·|¦P®É¦V¤U¦V¥k¼W¥[¦æ¼Æ¡A
¤p§Ì¸ê¾ú²L¡A­Ó¤H·Pı³o¼ËÀ³¸Ó¼g¤£¤Ó¥X¨Ó(­n¶«Ü¦h¨B¡A§ä¨ì¸ê®Æ«á¡A­n¥ý¤ñ¹ï¬O¤£¬O¤p­pÁ`­p¦Cµ¥......)¡A¨ä¤¤¼vÂQ¤ñ¸û¤jªº¡A¬O¨ä¤¤ªº¤p­p & Á`­pÄæ¡A«Øij§â³o®³±¼¡A
¥t«Øsheet¡A¥Hexcel ¤½¦¡²Î­p(¤½¦¡¦p¹Ï,¨Ï¥Î sumif)¡A²¤Ö window & door ¤¤ªºÅܼơA¤~¤ñ¸û®e©ö¼g¡C
¦pªG³o¼Ë§A¥i¥H±µ¨üªº¸Ü¡Aµ{¦¡´N¥u­n¼g¦¨   1. ´M window ³Ì¥kÃä & ³Ì¤U­±¦³¸ê®Æªº¦æ¼Æ¡A   2.§ä¨ä¤¤¦³¸ê®Æªºcell    3.¤ñ¹ï pj ¬O§_¦³¸ê®Æ (¬O§_»ÝÂмg©Î¼W¥[)      4.­«½Æ 1~3 ¨BÆJ¦ý§ï¦¨ door     5. PJ ¸ê®Æ±Æ§Ç
³o¼Ë¬Û¹ï¦Ó¨¥¡AÀ³¸Ó®e©ö³\¦h

TOP

¦^´_ 4# xyz66217


    ¬Oªº¡A·|¤£Â_¦V¤U©M¦V¥k©µ¥Ó¡C
©µ¥Ó°ÝÃD¤£¤j¡A´N¬O¤£ª¾¹D«ç¼Ë§â¬Û¦Pªº¥[Á` ©M¦hÄæ¦ì°O¿ý¡C
Ãþ¦ü³o¼Ë¥[Á`
  Z(T) = Val(Brr(i, 6)) + Val(Brr(i, 6)) + Val(Brr(i, 6))
ÁÙ¦³´N¬O«ç¼Ë¦hÄæ¦ì°O¿ý
ARRAY (Z(T), Z(T), Z(T), Z(T), Z(T))

TOP

¦^´_ 3# 198188


    «Øij:¥H¦r¨å°O¿ý Windowªí¸ê®Æªº ÃöÁä¦r²Õ¬°key,¦C¸¹¬°item
¥Î¦æ°Ê¸Ë¸mÂsÄý½×¾Â¾Ç²ß«Ü¤è«K,ÁÂÁ½׾¸gÀç¹Î¶¤
½Ð¤j®a¤@°_¤W½×¾Â¨Ó¥æ¬y

TOP

¦^´_ 6# Andy2483

²{¦b¦b¾Ç²ß¤¤¡A¦ý¬O·§©ÀÁÙ¬O«Ü¼Ò½k¡A½Ð°Ý«e½ú¤U­±³o¨â¥y¬O«ç¼Ë¸ÑŪ¡A§Ú¸Õ¹L¥Î³v¨B°»¿ù¨Ó¤F¸Ñ¨Ï¥Î¤è¦¡¡A¦ý¬OÁÙ¬O¤£À´¡C
[Backup!a1].Item(2, c).Resize(UBound(Brr) - 2) = Brr
[PJ!D2].Resize(UBound(Brr), 1) = Brr

TOP

        ÀR«ä¦Û¦b : §g¤l¦p¤ô¡AÀH¤è´N¶ê¡AµL³B¤£¦Û¦b¡C
ªð¦^¦Cªí ¤W¤@¥DÃD