+ Reply to Thread
Results 1 to 3 of 3

Copy a formula while changing column references

  1. #1
    Registered User
    Join Date
    06-24-2008
    Posts
    2

    Copy a formula while changing column references

    Hi,

    i have a really simple question about copying a formula, but I didn't find any information about that in the help or on the internet.
    So the problem is that I want to copy a formula down a couple of rows and make the reference to columns in the formula change (not the rows). Sounds little confusing but here an example:
    Sheet1:
    _A_B_C ...
    1 0 7 7 ...
    2 7 0 7 ...
    3 7 7 0 ...
    ... ... ... ...

    Sheet 2:
    _________A_________
    1 SUM('Sheet1'!A1:A3)
    2 SUM('Sheet1'!B1:B3)
    3 SUM('Sheet1'!C1:C3)
    ... .............................
    So the question is how can I copy a formula down in Sheet2 to achieve that just the column is changing and not the row number. To avoid that the row number is changing I can use a $, but still I don't know how to make the column change. Sounds pretty easy but I can't manage to do it or find some information about it. Anybody here knows a solution for this problem?

    Regards,

    sauron
    Last edited by sauron3000; 06-24-2008 at 08:25 AM.

  2. #2
    Forum Expert daddylonglegs's Avatar
    Join Date
    01-14-2006
    Location
    England
    MS-Off Ver
    2016
    Posts
    14,675
    Hello sauron,

    You can't make the column references change as you copy down.......but you can get the same effect by using this formula in sheet2!A1 copied down

    =SUM(OFFSET(Sheet1!A$1:A$3,0,ROWS(A$1:A1)-1))

  3. #3
    Registered User
    Join Date
    06-24-2008
    Posts
    2

    :-)

    Hi,

    thanks a lot it seems to work!
    I tried to understand what you actually do with this formula but i failed . However, it works - thanks!

    Regards,
    Clemens

+ 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