ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   max number then deduct in excel (https://www.excelbanter.com/excel-discussion-misc-queries/102752-re-max-number-then-deduct-excel.html)

Toppers

max number then deduct in excel
 
TRY:

Assuming scores in columns A to G and SUM is in H:

=IF(SUM(A1:G1)21,42-SUM(A1:G1),SUM(A1:G1))

HTH

"Mike" wrote:

Hi i got a worksheet that counts goals scored in a week and totals them in
the last column using the "sum" function, but what i want it to do is not
allow the total to go over 21, e.g if someone is on 20 goals and there team
scores 3 then i want it to total to 21 then deduct whats left, in this case
it would display a total of 19, one to make it 21 then two deducted, is this
possible please
--
thanks



All times are GMT +1. The time now is 05:29 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
ExcelBanter.com