+ Reply to Thread
Results 1 to 5 of 5

Copying a formula down relative by a group of cells.

  1. #1
    Registered User
    Join Date
    10-22-2018
    Location
    Auckland
    MS-Off Ver
    2018
    Posts
    6

    Copying a formula down relative by a group of cells.

    Hello,

    I have a list of products and their availability across 5 branches (grouped vertically by product). Is there a way to copy a formula down so it is relative by 5 rows instead of changing for each row?
    I've currently used absolute cell references to sum the total of each product but manually entering this for each product is going to be a lengthy process i.e if product A is row 2-6 and product B 7-11, I want to copy the SUM formula for rows 2-6 to 7-11, 12-16 and so on. Is this possible or another way of achieving this?

    Example attached.

    Thanks in advance.
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    08-12-2012
    Location
    Sydney, Australia
    MS-Off Ver
    Excel 2010
    Posts
    5,636

    Re: Copying a formula down relative by a group of cells.

    hmmm, the way i would handle this is to

    would be to do each set of formulas (do not use absolute references) then copy and paste and then copy the range and copy and paste, etc, etc
    so it goes from 1,2,4,8,16,32,64
    then more you have the more efficient it becomes over time

    ie the formula in m2 becomes
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    m3
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    ...m6
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    copy m2:M6 paste into m7
    copy m2:m11 paste into m12
    Copy m2:m21 paste into m22
    etc

    this said you dont have to do each column individual
    fix up all the formulas in column K to M to NOT be absolute but individually referenced ranges

    then you can effectively do
    K2:m6 copy paste into K7
    K2:M11 copy paste into K12
    etc
    If you are satisfied with the solution(s) provided, please mark your thread as Solved.
    Select Thread Tools-> Mark thread as Solved. To undo, select Thread Tools-> Mark thread as Unsolved.

  3. #3
    Forum Expert
    Join Date
    08-12-2012
    Location
    Sydney, Australia
    MS-Off Ver
    Excel 2010
    Posts
    5,636

    Re: Copying a formula down relative by a group of cells.

    ALTERNATIVE to this
    as it seems like you have "unique" CODE & Colour combinations you can apply sumifs based on column F
    so formula in k2
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    filldown
    same sort of deal for column L

    column M would require MAXIF (or maxifs)
    which i believe is a formula from Excel 2016 onwards

    **
    https://support.office.com/en-us/art...b-9b6376b28883
    Note: This feature is not available in Excel 2016 unless you have an Office 365 subscription. If you are an Office 365 subscriber, make sure you have the latest version of Office.

    if you dont have this like i dont
    then an array formula can be used to replace this
    https://exceljet.net/formula/maximum-value-if

  4. #4
    Registered User
    Join Date
    10-22-2018
    Location
    Auckland
    MS-Off Ver
    2018
    Posts
    6

    Re: Copying a formula down relative by a group of cells.

    That's great, thanks for you help. I've used a combination of your two answers which seems to have worked so far.

  5. #5
    Forum Expert
    Join Date
    08-12-2012
    Location
    Sydney, Australia
    MS-Off Ver
    Excel 2010
    Posts
    5,636

    Re: Copying a formula down relative by a group of cells.

    not a problem at all

    If that takes care of your original question, please select Thread Tools from the menu link above and mark this 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)

Similar Threads

  1. Replies: 6
    Last Post: 09-30-2016, 03:14 PM
  2. Replies: 6
    Last Post: 10-10-2014, 10:12 AM
  3. Copying sheet with relative formula named range causes errors.
    By leaning in forum Excel Programming / VBA / Macros
    Replies: 15
    Last Post: 09-19-2011, 08:44 AM
  4. Replies: 5
    Last Post: 02-18-2011, 05:27 AM
  5. Excel 2007 : Copying relative formula to every other row?
    By tigersprite in forum Excel General
    Replies: 2
    Last Post: 08-17-2010, 04:32 AM
  6. Replies: 0
    Last Post: 11-15-2007, 02:39 AM
  7. Need Help With Copying Relative Formula
    By Kia in forum Excel General
    Replies: 1
    Last Post: 01-03-2006, 09:15 PM

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