sum numbers under or over a criteria?

  • Thread starter Thread starter Dan B
  • Start date Start date
D

Dan B

Hi,

I have a column of numbers. I need one formula to sum all numbers that are
under 8 and another formula to sum them if they are over 8.

Thanks
 
Assume your numbers are in A1:A10, try this:

=SUM(IF(A1:A10<=8,A1:A10)), and
=SUM(IF(A1:A10>8,A1:A10))

These are array formulae, so once you have typed them in (or
subsequently edit them) you must commit them with CTRL-SHIFT-ENTER
instead of the normal ENTER. If you do this correctly then Excel will
wrap the formulae in curly braces { } when viewed in the formula bar -
you must not type these yourself.

The first one adds numbers less than or equal to 8, the second one
adds numbers greater than 8.

Hope this helps.

Pete
 
That does help...Thank You!!


Pete_UK said:
Assume your numbers are in A1:A10, try this:

=SUM(IF(A1:A10<=8,A1:A10)), and
=SUM(IF(A1:A10>8,A1:A10))

These are array formulae, so once you have typed them in (or
subsequently edit them) you must commit them with CTRL-SHIFT-ENTER
instead of the normal ENTER. If you do this correctly then Excel will
wrap the formulae in curly braces { } when viewed in the formula bar -
you must not type these yourself.

The first one adds numbers less than or equal to 8, the second one
adds numbers greater than 8.

Hope this helps.

Pete
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top