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

[µo°Ý] ½Ð°Ýcountifs¦h±ø¥ó,¦p¦ó¥ÎVBA©O?·|¶]¨ìÀú±¼

[µo°Ý] ½Ð°Ýcountifs¦h±ø¥ó,¦p¦ó¥ÎVBA©O?·|¶]¨ìÀú±¼

¨ç¼Æ:=COUNTIFS($A$3:$A$16,"<>*T*",$A$3:$A$16,"<>*Q*",$A$3:$A$16,"<>*I*",$A$3:$A$16,"<>*P*",$A$3:$A$16,"<>*L*",$B$3:$B$16,F2,$C$3:$C$16,"=2")
¦h­««ü©w±ø¥ó ²Î­p­Ó¼Æ.rar (10.26 KB)

¦^´_ 1# starry1314


    ¸ê®Æ¦h¡A¸Õ¥Î³o­Ó
  1. Option Base 1
  2. Option Explicit

  3. Sub µæ¦â­pºâ()
  4.     Dim i&, j%, k%
  5.     Dim aa  '°Ï°ì¡Bµæ¦â¡B¼Æ¶q ¸ê®Æ
  6.     Dim bb  ''µæ¦â
  7.     Dim cc$  '°Ï¤À±ø¥ó
  8.     Dim dd  '·j´Mµ²ªG
  9.         
  10.     Sheets("¤u§@ªí1").Activate
  11.     aa = Range("A3:C" & [A2].End(xlDown).Row)
  12.     bb = Range("F2:F" & [F2].End(xlDown).Row)
  13.     Range("G2:G" & UBound(bb) + 1).Clear    '²Ä2¦C¶}©lµæ¦â°Ï¤À
  14.    
  15.     ReDim dd(UBound(bb), 1)
  16.     cc = "TQILP"
  17.    
  18.     For i = 1 To UBound(aa)
  19.         If InStr(cc, Mid(aa(i, 1), 2, 1)) = 0 And aa(i, 3) = 2 Then
  20.             For j = 1 To UBound(bb)
  21.                 If aa(i, 2) = bb(j, 1) Then dd(j, 1) = dd(j, 1) + 1: Exit For
  22.             Next
  23.         End If
  24.     Next i
  25.     Cells(2, "G").Resize(UBound(dd)) = dd
  26.    
  27. End Sub
½Æ»s¥N½X

TOP

        ÀR«ä¦Û¦b : ¤Hªº¤ß¦a¬O¤@²¥¥Ð¡A¤g¦a¨S¦³¼½¤U¦nºØ¤l¡A¤]ªø¤£¥X¦nªºªG¹ê¡C -
ªð¦^¦Cªí ¤W¤@¥DÃD