Dynamic cell reference in a formula

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hello,

I have a column of data that I sum, provided the values in the cells are
greater than 100. Also, there are some rows that I always take out of this
sum. My problem comes when I want to insert/delete rows... how do I keep my
reference to the cells that I always take out of my formula without having to
manually go in and change each cell reference? Is this even possible?

Muchas gracias!
Carrie
 
the range can be dynamically referenced with

=SUM(A1:OFFSET(A1,,,COUNTA(A:A)))

as an example.
 
Assuming your numbers in column A the formula

=SUMIF(A:A,">100",A:A)

should total everything over 100. You will need to then subtract the numbers
you mention but so long as these are not ranges, e.g

=SUMIF(A:A,">100",A:A) - A2-A4

as opposed to ...

=SUMIF(A:A,">100",A:A)-sum(A1:A3)

then inserting / deleting rows should make no difference UNLESS you delete
rows that you subtract which will give you a #REF! error

HTH
John
 

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

Back
Top