Is it possible to SUM based on value of another column?

T

trant

I am doing a SUM of values in a column starting at row 6, so I use a formula
like this:

=SUM(I6:I9999)

I can't do I:I because there are irrelevant numbers located in some of the
rows of column I above row 6. I took an arbitrary number 9999 because I know
the rows will never go near that number.

Anyway, I need to add a restriction to this formula and don't know how

I need it to exclude numbers in rows which have a value of "F" in a
different column (column B)

So for example it starts summing up values from I6, I7, I8 etc then lets say
on I10 it finds that in column B10 there is a value of "F". so it does not
add the value of I10 to the SUM

Is this possible?
 
L

Luke M

Certainly! The SUMIF function works on this exact principle.

=SUMIF(B6:B9999,"<>F",I6:I9999)
 

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