SUM/SUMIF - cutoff value

MGhell

Board Regular
Joined
Jan 16, 2006
Messages
85
Hi,

is it possible to create a formula which creates a sum of a range(A1:E1) but values > 8 are cutoff?

Example:

A1= 8,5
B1 = 10
C1 = 8
D1 = 7
E1 = 0

SUM should be 8+8+8+7+0

Cheers

Max
 

Excel Facts

Spell Check in Excel
Press F7 to start spell check in Excel. Be careful, by default, Excel does not check Capitalized Werds (whoops)
Try


Excel 2010
ABCDE
18.510870
2
331
Sheet5
Cell Formulas
RangeFormula
A3{=SUM(IF(A1:E1>8,8,A1:E1))}
Press CTRL+SHIFT+ENTER to enter array formulas.
 
Upvote 0
Try this array formula entered with CTRL + SHIFT + ENTER
=SUM(IF(A1:E1>8,8,A1:E1))
 
Upvote 0
Try this and confirm with just Enter

=SUMIF(A1:E1,"<9",A1:E1)
 
Upvote 0
You're welcome.

For a non array version, maybe
=SUMIF(A1:E1,"<=8")+COUNTIF(A1:E1,">8)*8
 
Upvote 0

Forum statistics

Threads
1,224,827
Messages
6,181,200
Members
453,022
Latest member
RobertV1609

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