excel 公式運算

2014-12-16 9:13 pm
A1+A10假設是合共28000
怎樣可以設定公式在A10不會超出28000,如超過會出現顏色顯示。謝

回答 (1)

2014-12-17 2:49 am
✔ 最佳答案
If you allow A10 to exceed 28000 and highlight with colour when exceeded, you may use Conditional Formatting --> Highlight Cells Rule --> Greater Than --> {enter 28000 in the data field, and choose highlight colour} --> OK.

If you don't allow A10 to exceed 28000 (i.e. no need to use colour to highlight), you may enter the following formula:
=min({original value or formula},28000)
When the original value or formula exceeds 28000, the formula will take 28000.

2014-12-17 18:33:56 補充:
The correct formula is:
=min(SUM(A1:A10),28000)
Note that "=" appears once in the first character to identify this is a formula, there is no need to put "=" in front of the SUM function except for value comparison if equal or not. With the min() function, you don't need conditional formatting.

2014-12-17 18:46:21 補充:
The correct formula is:
=min(SUM(A1:A10),28000)
Note that "=" appears once in the first character to identify this is a formula, there is no need to put "=" in front of the SUM function except for value comparison if equal or not. With the min() function, you don't need conditional formatting.


收錄日期: 2021-04-11 20:52:18
原文連結 [永久失效]:
https://hk.answers.yahoo.com/question/index?qid=20141216000051KK00041

檢視 Wayback Machine 備份