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

[µo°Ý] IF¨ç¼Æ¡A¥N½X²¤Æ°ÝÃD

[µo°Ý] IF¨ç¼Æ¡A¥N½X²¤Æ°ÝÃD

½Ð°Ý¦U¦ì¤j¤j¡A¥H¤U³o¨Ç¥N½X¬O§_¯à²¤Æ©O!? ¤@ª½§ä¤£¨ì·Pı¥Î¤£¦Pªº¤èªk¼g¡AÅý§Ú·Pı¦³ÂI®À§éªü ><¡A¥ýÁ¹L¤j¤j­Ì....:)
  1. Private Sub CommandButton2_Click()

  2.     Range("S1").Select
  3.     ActiveCell.FormulaR1C1 = "½s¸¹"
  4.     Range("S2").Select
  5.     ActiveCell.FormulaR1C1 = "=IF(R[1]C[-17]=R[0]C[-17],1,0)"
  6.     Selection.AutoFill Destination:=Range("S2:S600"), Type:=xlFillDefault
  7.     Range("S2:S600").Select
  8.     Range("T1").Select
  9.     ActiveCell.FormulaR1C1 = "»sµ{"
  10.     Range("T2").Select
  11.     ActiveCell.FormulaR1C1 = "=IF(R[1]C[-16]=R[0]C[-16],1,0)"
  12.     Selection.AutoFill Destination:=Range("T2:T600"), Type:=xlFillDefault
  13.     Range("T2:T600").Select
  14.     Range("U1").Select
  15.     ActiveCell.FormulaR1C1 = "ª«®Æ¦WºÙ"
  16.     Range("U2").Select
  17.     ActiveCell.FormulaR1C1 = "=IF(R[1]C[-9]=R[0]C[-9],1,0)"
  18.     Selection.AutoFill Destination:=Range("U2:U600"), Type:=xlFillDefault
  19.     Range("U2:U600").Select
  20.     Range("V1").Select
  21.     ActiveCell.FormulaR1C1 = "¥N½X"
  22.     Range("V2").Select
  23.     ActiveCell.FormulaR1C1 = "=IF(R[1]C[-13]=R[0]C[-13],1,0)"
  24.     Selection.AutoFill Destination:=Range("V2:V600"), Type:=xlFillDefault
  25.     Range("V2:V600").Select
  26.     Range("W1").Select
  27.     ActiveCell.FormulaR1C1 = "Á`¥["
  28.     Range("W2").Select
  29.     ActiveCell.FormulaR1C1 = "=SUM(RC[-4]:RC[-1])"
  30.     Selection.AutoFill Destination:=Range("W2:W600"), Type:=xlFillDefault
  31.     Range("W1").Select
  32.     Selection.AutoFilter
  33.     ActiveSheet.Range("$S$1:$W$600").AutoFilter Field:=5, Criteria1:="4"
  34.     Columns("E:H").Select
  35.     Selection.EntireColumn.Hidden = True
  36. End Sub
½Æ»s¥N½X

¦^´_ 1# fusayloveme
  1. Option Explicit
  2. Private Sub CommandButton2_Click()
  3.     Range("S1").Resize(, 5) = Array("½s¸¹", "»sµ{", "ª«®Æ¦WºÙ", "¥N½X", "Á`¥[")
  4.     'Range("S1:W1") = Array("½s¸¹", "»sµ{", "ª«®Æ¦WºÙ", "¥N½X", "Á`¥[")   '¥[¤Wµù¸Ñ ¨t²Î¤£·|°õ¦æ
  5.     With Range("S2:W600")
  6.         .Columns(1) = "=IF(R[1]C[-17]=R[0]C[-17],1,0)"
  7.         .Columns(2) = "=IF(R[1]C[-16]=R[0]C[-16],1,0)"
  8.         .Columns(3) = "=IF(R[1]C[-9]=R[0]C[-9],1,0)"
  9.         .Columns(4) = "=IF(R[1]C[-13]=R[0]C[-13],1,0)"
  10.         .Columns(5) = "=SUM(RC[-4]:RC[-1])"
  11.     End With
  12.     'Range("S2:S600") = "=IF(R[1]C[-17]=R[0]C[-17],1,0)"
  13.     'Range("T2:T600") = "=IF(R[1]C[-16]=R[0]C[-16],1,0)"
  14.     'Range("U2:U600") = "=IF(R[1]C[-9]=R[0]C[-9],1,0)"
  15.     'Range("V2:V600") = "=IF(R[1]C[-13]=R[0]C[-13],1,0)"
  16.     'Range("W2:W600") = "=SUM(RC[-4]:RC[-1])"
  17.     Range("W1").AutoFilter
  18.     ActiveSheet.Range("$S$1:$W$600").AutoFilter Field:=5, Criteria1:="4"
  19.     Columns("E:H").EntireColumn.Hidden = True
  20. End Sub
½Æ»s¥N½X

TOP

¦^´_ 2# GBKEE
·PÁÂGBKEE¤j!!!¡A¤SÅý§Ú¾Ç¨ì¤£¤Ö! ¶W·P®¦^^

TOP

        ÀR«ä¦Û¦b : ¦n¨Æ­n´£±o°_¡A¬O«D­n©ñ±o¤U¡A¦¨´N§O¤H§Y¬O¦¨´N¦Û¤v¡C
ªð¦^¦Cªí ¤W¤@¥DÃD