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 have a spreadsheet with 3 columns:

| ITEM | COST | SUBTOTAL |

Subtotal, for example, is 1000 to start, like:

--------------------------
| ITEM | COST | SUBTOTAL |
--------------------------
|      |      | 1000     |

Then I want to be able to add an item like:

--------------------------
| ITEM | COST | SUBTOTAL |
--------------------------
|      |      | 1000     |
| item | 50   |          |

I want subtotal to update now.

I know I can do:

MINUS(B3,C2)

But I want it to be dynamic like:

MINUS(BX,CX)

Where BX is this B and CX is this C -1 row (the row above the current one to subtract one)

How an I do this with GDocs?

share|improve this question
add comment

migrated from superuser.com Feb 2 '11 at 18:38

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

1 Answer

Simply copy your formula from that cell to each cell below. Copying formulas with relative references (those without $) adjusts them automatically.

I think you have your coordinates backwards, though. Cell C2 contains "1000" and cell B3 contains "50", so your formula in C3 should be =MINUS(C2,B3) (or =C2-B3).

share|improve this answer
    
Oops, yes, it is backwards! How do I make "relative" refs and not absolute ones? –  Oscar Godson Feb 1 '11 at 19:54
    
Nevermind! Yes this is easy, just copy and paste and it knows! –  Oscar Godson Feb 1 '11 at 19:57
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.