+ Reply to Thread
Results 1 to 3 of 3

Adding to a column reference

  1. #1
    Registered User
    Join Date
    12-04-2015
    Location
    Chicago, IL
    MS-Off Ver
    2013
    Posts
    2

    Adding to a column reference

    Hi there!

    I am hoping this is possible in excel, although I'm not sure. In my formula, I am referencing a full column in another sheet (ex: Sample!B:B) to sum everything in column B. Is there a way to adjust that formula automatically so that in each row going down, it changes by one?

    Example:
    Row 1 sum(Sample!B:B)
    Row 2 sum(Sample!B:B + 1) = sum(Sample!C:C)
    Row 3 sum(Sample!B:B + 2) = sum(Sample!D:D)
    ...

    Is this possible? Thank you!

  2. #2
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,582

    Re: Adding to a column reference

    Try

    = SUM(OFFSET(B:B,0,ROWS($A$1:$A1)-1))
    ChemistB
    My 2?

    substitute commas with semi-colons if your region settings requires
    Don't forget to mark threads as "Solved" (Edit First post>Advanced>Change Prefix)
    If I helped, Don't forget to add to my reputation (click on the little star at bottom of this post)

    Forum Rules: How to use code tags, mark a thread solved, and keep yourself out of trouble

  3. #3
    Registered User
    Join Date
    12-04-2015
    Location
    Chicago, IL
    MS-Off Ver
    2013
    Posts
    2

    Re: Adding to a column reference

    Thank you so much!! Such a simple solution but saved me so much time!

+ 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: 1
    Last Post: 08-14-2015, 02:49 AM
  2. Adding ROW using 1 column as reference and another column for naming - BAD title
    By dbondmelo in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 11-21-2013, 12:05 PM
  3. [SOLVED] adding target lines into graphs without adding an extra column of data
    By ea223 in forum Excel Charting & Pivots
    Replies: 5
    Last Post: 03-16-2013, 12:32 PM
  4. Replies: 5
    Last Post: 09-21-2012, 02:08 PM
  5. Replies: 1
    Last Post: 02-03-2006, 12:00 PM
  6. [SOLVED] Adding a column with reference to another
    By charles in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 10-17-2005, 02:05 PM
  7. Adding a Reference in VBA
    By Jim May in forum Excel General
    Replies: 3
    Last Post: 07-26-2005, 08:05 AM

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