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

What is the shortcut key for Format Selection?
Ctrl+1 (the number one) will open the Format dialog for whatever is selected.
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,223,904
Messages
6,175,295
Members
452,632
Latest member
jladair

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