Take the 2-minute tour ×
Web Applications Stack Exchange is a question and answer site for power users of web applications. It's 100% free, no registration required.

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.

share|improve this question

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

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

2  
Please vote for the answer if it helped you. –  MετάEd Dec 6 '11 at 17:14
add comment

2 Answers 2

up vote 1 down vote accepted

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

share|improve this answer
add comment

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

=sum(Sheet1!D7:D8)
share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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