5

I'm trying to write a SUM function in sheet B, summing all the data from sheet A in specific rows. I can't find a good explanation of how to do this.

migrated from superuser.com Oct 20 '11 at 18:29

This question came from our site for computer enthusiasts and power users.

  • 3
    Please vote for the answer if it helped you. – MetaEd Dec 6 '11 at 17:14
1

If you want to "retrieve" specific rows, then you need to use the following formula.

Formula

=SUMIF(range, criteria, sum_range)
=SUMIF(DATA!A:A,"<="&10,DATA!A:A)

Explained

In this case, the specific rows are summed , only if the value is smaller or equal to 10.

Example

I've created an example file for you: SUMIF

8

Try the solution on this page, i.e.:

=sum(Sheet1!D7:D8)

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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