excel 公式運算

2014-12-18 6:41 pm
C1=A1+B1-D1
C2=A2+B2-D2
如似類推,直到C24儲存格要計總和即是C1+C2......+C23,但總和設定不能超過30000,同時去到假設C8已經超過30000就不能夠再輸入怎樣設定公式,請指教。謝!

能樣我能明白設定公式步驟,請詳細說明。謝!

回答 (1)

2014-12-19 10:21 pm
✔ 最佳答案
You may use the Data Validation function to restrict the data entry.
The first row will be restricted to constant value 30000, the subsequent rows 2 to 23 will depend on the sum of above rows on column C whether exceed 30000 or not:
1. Select cell ranges A1:B1 and D1 (press the Control key for multiple non-neighbouring cell range selection)
2. Select menu Data --> (Data Tools Tab) Data Validation…
3. Select options under (i) Allow: ‘Decimal’ or ‘Whole number’; (ii) Data: ‘less than or equal to’; and put the number under (iii) Maximum: ‘30000’
4. Select OK
5. Select cell ranges A2:B23 and D2:D23
6. Select menu Data --> (Data Tools Tab) Data Validation…
7. Select options under (i) Allow: ‘Decimal’ or ‘Whole number’; (ii) Data: ‘less than or equal to’; and put formula under (iii) Maximum: ‘=30000-SUM($C$1:$C1)’
8. Select OK
Now you may test data entry and see if the restriction is effected.


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

檢視 Wayback Machine 備份