3

Say I have to sum up the cells in column B if their corresponding cells in column A <= the value in some specific cell in column C. Instead of SUMIF(A1:A10,"<=10",B1:B10), I tried SUMIF(A1:A10,"<=C1",B1:B10) and it didn't work.

How do you fix it so that the criteria of the SUMIF function involves the value in a specific cell? I'd like to set it this way because I have to apply the SUMIF function to the entire column. Ideally, the formulae in the cells of column D will be something similar to

=SUMIF(A1:A10,"<=C1",B1:B10)


=SUMIF(A1:A10,"<=C2",B1:B10)

etc.

1 Answer 1

7

Try this:

=SUMIF($A$1:$A$10,">="&C1,$B$1:$B$10)

Put it in D1 and fill down.

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.