- ©«¤l
- 1446
- ¥DÃD
- 40
- ºëµØ
- 0
- ¿n¤À
- 1470
- ÂI¦W
- 0
- §@·~¨t²Î
- Windows 7
- ³nÅ骩¥»
- Excel 2010 & 2016
- ¾\ŪÅv
- 50
- ©Ê§O
- ¨k
- ¨Ó¦Û
- ¥xÆW
- µù¥U®É¶¡
- 2020-7-15
- ³Ì«áµn¿ý
- 2024-10-21
|
¦^´_ 10# °a¤ªºµ
ÁÂÁ«e½ú
«á¾ÇÂǦ¹½d¨Ò½m²ß ¦Ûq¸q¨ç¼Æ,Æ[©À¤£ª¾¬O§_¹ï?? Àµ½Ð¦U¦ì«e½ú«ü¾É!ÁÂÁÂ
[G8]Àx¦s®æ¿é¤J =GetRangeStep(48,50,G7) :
[G7]...¿é¤J¼Æ¦rµ²ªG:
Option Explicit
Function GetRangeStep(Mi As Long, Mx As Long, xArea As Range)
'¦Ûq¸q¨ç¼Æ GetRangeStep(³Ì¤pÈ,³Ì¤jÈ,pºâªºÀx¦s®æ)
'[G8]Àx¦s®æ¿é¤J =GetRangeStep(48,50,G7)
'[G8]Àx¦s®æ½Æ»s¤½¦¡¨ì¨ä¥LÀx¦s®æ
Dim xR As Range, xV$, Ti#, Ts$
Application.Volatile
If (xArea.Value < Mi Or xArea.Value > Mx) And xArea.Value <> "" Then
Ti = (50 - xArea) / 1000
Ts = Format(Ti, "0.000")
xV = IIf(Ti > 0, "+" & Ts, Ts)
Else
xV = ""
End If
GetRangeStep = xV
End Function |
|