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

°õ¦æµ{¦¡·|§ïÅÜÀx¦s®æ®æ¦¡¤¤Âê©wªº°ÝÃD

°õ¦æµ{¦¡·|§ïÅÜÀx¦s®æ®æ¦¡¤¤Âê©wªº°ÝÃD

Private Sub Worksheet_Change(ByVal Target As Range)
    Application.EnableEvents = False
   If Not Intersect(Target, [B5:B90000]) Is Nothing Then
        Range("O" & Target.Row).Formula = "=IF(MOD(RC[-13],100)=0,R[-1]C,INT(RC[-13]/100))"
        
   ElseIf Not Intersect(Target, [F5:F90000]) Is Nothing Then
        Range("S" & Target.Row).Formula = "=IF(RC[-13]=1,IF(AND(RC[-14]>=RC[-15],R[-1]C[-14]<=R[-1]C[-16],R[1]C[-14]<=R[1]C[-16]),1,IF(AND(RC[-14]<=RC[-16],R[-1]C[-14]>=R[-1]C[-15],R[1]C[-14]>=R[1]C[-15]),-1,0)),0)"
      
   End If
   Application.EnableEvents = True
        

End Sub

½Ð°Ýª©¤W¤j¤j¡A·í§Ú±N¥Ø¼Ð(OÄæ)Àx¦s®æ®æ¦¡¤¤ªºÂê©w¨ú®ø¤Ä¿ï¡AµM«á±N¬¡­¶Ã¯Âê°_¨Ó«á¡A°õ¦æ¤W­zµ{¦¡½X¡A·|¥X²{¸ê®ÆµLªk¼g¤Jªºª¬ªp¡AµM«á§Ú±N¬¡­¶Ã¯¸Ñ¶}«á¡A±NÀx¦s®æ®æ¦¡¥´¶}¡A·|µo²{Âê©wªº¨º­ÓÄæ¦ì³Q¦Û°Ê¤Ä¿ï¤F¡A¦pªG§Ú«ö°»¿ù«h³oÄæ¡÷Range("O" & Target.Row).Formula = "=IF(MOD(RC[-13],100)=0,R[-1]C,INT(RC[-13]/100))"·|¤Ï¥Õ¡A½Ð°Ýª©¤W¤j¤j¬°¤°»ò·|³o¼Ë??­n¦p¦ó­×§ï©O?

        ÀR«ä¦Û¦b : ÀR§¤±`®¦¤v¹L¡B¶¢½Í²ö½×¤H«D¡C
ªð¦^¦Cªí ¤W¤@¥DÃD