+ Reply to Thread
Results 1 to 4 of 4

Copying a formula that contins a range of adjacent cells

  1. #1
    Registered User
    Join Date
    03-18-2013
    Location
    Cali, Colombia
    MS-Off Ver
    Excel 2010
    Posts
    2

    Copying a formula that contins a range of adjacent cells

    Hi, I am trying to copy a formula which contains adjacent cells. The problem is when I copy the formula, Excel automatically adjusts the referenced cells in the formula depending on the direction in which I copy the formula (rows or columns). For example I have the formula =A1-SUM(C2:C5). When I copy this formula across (row) it's fine as it references the same range in the next column, but, if I copy it down (column) it changes to =A1-SUM(C3:C6). What I need is for it move to the following cells. For example, this formula in cell F5 =A1-SUM(C2:C5) when copied to F6 should read =A2-SUM(C6:C9) (the next block of cells) and if copied to F7 should read =A3-SUM(C10:13) and so on.

    Is this possible to do either copying in rows or columns?

    Thanks in advance.

    Marc

  2. #2
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Copying a formula that contins a range of adjacent cells

    In F5, then copy down or to the right:

    =A1 - SUM(OFFSET($C$2, ROW(A1)*4-4, COLUMN(A1)-1, 4, 1))
    _________________
    Microsoft MVP 2010 - Excel
    Visit: Jerry Beaucaire's Excel Files & Macros

    If you've been given good help, use the icon below to give reputation feedback, it is appreciated.
    Always put your code between code tags. [CODE] your code here [/CODE]

    ?None of us is as good as all of us? - Ray Kroc
    ?Actually, I *am* a rocket scientist.? - JB (little ones count!)

  3. #3
    Registered User
    Join Date
    03-18-2013
    Location
    Cali, Colombia
    MS-Off Ver
    Excel 2010
    Posts
    2

    Re: Copying a formula that contins a range of adjacent cells

    Thanks for the quick reply. I will try this out. It will save me a lot of work!!

  4. #4
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Copying a formula that contins a range of adjacent cells

    If that takes care of your original query, please select Thread Tools from the menu above and mark the thread as solved. Thanks.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Tags for this Thread

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