Conditional sum of columns

G

Guest

If I have 1 row with 5 columns of data, how do I conditionally sum the
columns based on whether the column is greater than a value in another
separate cell? For example,

A B C D E
5 32 16 22 6 89
6
7 3


I only want to sum A5:E5 if the column is greater than the contents of A7.
In this example, the answer would be (6+89)=95. If A7=1, then the answer
would be (16+22+6+89)=133.
 
D

Domenic

Try...

=IF(A7<>"",SUM(INDEX(A5:E5,A7+1):E5),"")

Note that the formula sums all columns when A7 equals 0.

Hope this helps!
 

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

Top