How to sum the difference

mart_mrexcel

Active Member
Joined
Aug 23, 2008
Messages
310
Office Version
  1. 365
Platform
  1. Windows
I have a value in each cell from A2 - G2 e.gl 12, 11, 13, 15, 21, 26 and 25. What i want to do is to sum the difference of the value in each cell that is greater than 10. In the above example the sum difference should be 38 i.e.
12-10 = 2
11-10 = 1
13-10 = 3
15-10 = 5
21-10 = 11
26-10 = 16
======
38

If the cell value is < 10 then it is just 0. My data may range up to H2 - J2.
Help please. thanks
 

Excel Facts

Save Often
If you start asking yourself if now is a good time to save your Excel workbook, the answer is Yes
Try...

Either: Just enter..

=SUMPRODUCT(--($A$2:$J$2>10),--ISNUMBER($A$2:$J$2),$A$2:$J$2-10)

Or: Control+shift+enter, not just enter...

=SUM(IF(ISNUMBER($A$2:$J$2),IF($A$2:$J$2>0,$A$2:$J$2-10)))
 
Upvote 0

Forum statistics

Threads
1,224,586
Messages
6,179,710
Members
452,939
Latest member
WCrawford

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top