+ Reply to Thread
Results 1 to 5 of 5

Copying a formula horizontally, skipping 2 colums each time.

  1. #1
    Registered User
    Join Date
    05-13-2011
    Location
    USA
    MS-Off Ver
    Excel 2016 for Mac
    Posts
    33

    Copying a formula horizontally, skipping 2 colums each time.

    Hi,

    I'm trying to sum every third column in a portion of a spreadsheet, and copy the formula horizontally.

    For example,

    Cell A1 = Sum(M:M)
    Cell B1 = Sum(P:P)
    Cell C1 = Sum(S:S)

    Thanks
    Last edited by jumbles; 01-19-2012 at 07:46 AM.

  2. #2
    Forum Guru (RIP) Marcol's Avatar
    Join Date
    12-23-2009
    Location
    Fife, Scotland
    MS-Off Ver
    Excel '97 & 2003/7
    Posts
    7,216

    Re: Copying a formula horizontally, skipping 2 colums each time.

    Try this
    Please Login or Register  to view this content.
    This is volatile so best to restrict the base column to a known range
    e.g.
    Please Login or Register  to view this content.
    [EDIT]
    This non-volatile formula is probably better
    Please Login or Register  to view this content.
    Last edited by Marcol; 01-02-2012 at 01:29 AM.
    If you need any more information, please feel free to ask.

    However,If this takes care of your needs, please select Thread Tools from menu above and set this topic to SOLVED. It helps everybody! ....

    Also
    اس کی مدد کرتا ہے اگر
    شکریہ کہنے کے لئے سٹار کلک کریں
    If you are satisfied by any members response to your problem please consider using the small Star icon bottom left of their post to show your appreciation.

  3. #3
    Registered User
    Join Date
    05-13-2011
    Location
    USA
    MS-Off Ver
    Excel 2016 for Mac
    Posts
    33

    Re: Copying a formula horizontally, skipping 2 colums each time.

    Thanks! The third one is working well for me. What does the COLUMN(A$1) part do?

  4. #4
    Forum Guru (RIP) Marcol's Avatar
    Join Date
    12-23-2009
    Location
    Fife, Scotland
    MS-Off Ver
    Excel '97 & 2003/7
    Posts
    7,216

    Re: Copying a formula horizontally, skipping 2 colums each time.

    COLUMN(A$1) returns the column number for cell A$1 i.e. one.
    We multiply this by three, so when dragged right we get 3, 6, 9. 12, etc.
    The syntax for INDEX() is
    INDEX(range, row number,column number)
    So we get the 3rd, 6th, 9th. 12th, etc. column from range $K:$Z. (By leaving row number empty we get all the rows in the column called.)

  5. #5
    Registered User
    Join Date
    05-13-2011
    Location
    USA
    MS-Off Ver
    Excel 2016 for Mac
    Posts
    33

    Re: Copying a formula horizontally, skipping 2 colums each time.

    Thank you!

+ 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