ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   How do I enter formula that adds a range if less than a number or (https://www.excelbanter.com/excel-worksheet-functions/61513-how-do-i-enter-formula-adds-range-if-less-than-number.html)

Rose M

How do I enter formula that adds a range if less than a number or
 
I want to write formula that adds amounts in a range ofcells and if < a
number, enter sum, but if = than number, only add difference between sum and
number? I believe it to be an sumif function but can't seem to layout
formula.

Biff

How do I enter formula that adds a range if less than a number or
 
Confusing explanation! Can you reword it and include an example?

Biff

"Rose M" wrote in message
...
I want to write formula that adds amounts in a range ofcells and if < a
number, enter sum, but if = than number, only add difference between sum
and
number? I believe it to be an sumif function but can't seem to layout
formula.




Bob Phillips

How do I enter formula that adds a range if less than a number or
 
=SUMPRODUCT(--(A1:A1010),A1:A10-10)

--
HTH

Bob Phillips

(remove nothere from email address if mailing direct)

"Rose M" wrote in message
...
I want to write formula that adds amounts in a range ofcells and if < a
number, enter sum, but if = than number, only add difference between sum

and
number? I believe it to be an sumif function but can't seem to layout
formula.





All times are GMT +1. The time now is 06:26 PM.

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