+ Reply to Thread
Results 1 to 5 of 5

Adding cell above with cell on the left

  1. #1
    Registered User
    Join Date
    11-21-2011
    Location
    Finland
    MS-Off Ver
    Excel:mac 2011
    Posts
    3

    Adding cell above with cell on the left

    Hey
    I am REAAAAALLY new with excel and i actually have no idea how to achieve what i am looking for, even though i have the feeling it is not something very complicated.
    Let me try to explain.

    I would like a cell to add the cell above itself with the cell on it's left.
    Ex: C3=C2+B3

    But i would like that this would be applied to the whole column. And, if possible, if i would at some point insert a row in the middle that the rows under it would be updated.

    Of course i could make it by hand, one by one, but is there a "general formula", kind of like:
    if Row=X and Column=Y,
    X,Y=(X-1,Y)+(X,Y-1)

    Thanks guys, any help would be greatly appreciated!
    =)
    Last edited by Boguz; 11-21-2011 at 03:37 PM.

  2. #2
    Forum Expert darkyam's Avatar
    Join Date
    03-05-2008
    Location
    Houston, TX
    MS-Off Ver
    2013
    Posts
    2,191

    Re: Adding cell above with cell on the left

    If you select a cell and move your mouse to the bottom right corner, the cursor will become a black cross. Click and hold, then drag down as necessary and it will fill in the formula. You can also highlight the range, beginning with the cell that has the formula and hit Ctrl+D.

    As to your formula itself, the trickiest part is getting it to recognize new rows, but that can be accomplished by putting this in C3: =Index(B:B,Row())+Index(C:C,Row()-1)
    Life is about perseverance. Remember: today's mighty oak tree is just yesterday's nut that held its ground.

    If you like a post, please rate it with the scales icon (top right).
    If you feel really indebted, please consider a donation to charity, such as Feed the Children or Habitat for Humanity.

  3. #3
    Registered User
    Join Date
    11-21-2011
    Location
    Finland
    MS-Off Ver
    Excel:mac 2011
    Posts
    3

    Re: Adding cell above with cell on the left

    hi

    thank!!
    i was sure there was a simple way to apply one formula so it "updates" the row and column numbers automatically, so THANK you for telling me about dragging.
    I have manage to make it work with a normal sum (in C3 i have put =SUM(C2;B3) ), but when i tried the formula you gave me it says there is an error (which i have no idea how to fix!)

    Once again, thanks! =)

  4. #4
    Forum Expert darkyam's Avatar
    Join Date
    03-05-2008
    Location
    Houston, TX
    MS-Off Ver
    2013
    Posts
    2,191

    Re: Adding cell above with cell on the left

    The formula works for me. The only difference I can see is that your version uses semicolons instead of commas. If it still doesn't work after trying this tweak, post the workbook, with dummy data if necessary, and we'll have a look at exactly what's happening.

  5. #5
    Registered User
    Join Date
    11-21-2011
    Location
    Finland
    MS-Off Ver
    Excel:mac 2011
    Posts
    3

    Re: Adding cell above with cell on the left

    i think that was it. i changed the commas for semicolons and now it works.
    i now have:
    =INDEX(B:B;ROW())+INDEX(C:C;ROW()-1)

    GREAT!!! Thank you very much! This will make things a lot smoother!
    =)

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1