+ Reply to Thread
Results 1 to 2 of 2

Drag and drop SUM value

  1. #1
    Registered User
    Join Date
    09-14-2016
    Location
    Moosonee, Ontario
    MS-Off Ver
    2013
    Posts
    1

    Drag and drop SUM value

    Hi all,

    Maybe I need another coffee cause the answer is simple, but maybe it isn't. Either way here is my dilemma:

    Row Column
    1 A
    1 B
    1 C
    1 D
    1 E
    1 F
    1 G
    1 H
    1 I
    1 J
    1 K
    1 L

    Assume the above have numerical data in them on SHEET 1. I want to be able to use the SUM function and add up ABC, DEF, GHI and JKL in Row 1 Columns A (ABC) B (DEF) C (GHI) and D (JKL). Right now I use the =SUM(Sheet1!A1:C1) to get the value of that put into cell A1 on SHEET 2. The problem is that if I use the drag handle from that cell it will return =SUM(Sheet1!B1:D1) in cell B1 on SHEET 2, but I want it to return =SUM(Sheet1!D1:F1). How to get this?
    Attached Files Attached Files

  2. #2
    Forum Expert rorya's Avatar
    Join Date
    08-13-2008
    Location
    East Sussex, UK
    MS-Off Ver
    365 Ent Monthly Channel / Insiders Beta
    Posts
    8,913

    Re: Drag and drop SUM value

    You can use OFFSET for that:

    =SUM(OFFSET(Sheet1!$A$2,0,(COLUMNS($A$1:A$1)-1)*3,1,3))
    and fill across.

+ 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. [SOLVED] Drag and Drop data using Treeview -Working great for the first drop, but locking on 2nd
    By graym463 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 03-01-2016, 09:38 AM
  2. Index/Sum Formula -Drap Drop Column, Help with Drag Drop Row
    By bbis21 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 11-17-2015, 09:36 PM
  3. Drag & Drop all at once
    By gill123 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 10-15-2015, 03:09 PM
  4. Drag&drop outlook email to drop zone in excel
    By mpx300 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 09-02-2015, 05:00 PM
  5. Replies: 2
    Last Post: 04-07-2015, 04:01 PM
  6. Drag and drop,VBA
    By luis87 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 08-30-2013, 11:54 AM
  7. Drag and Drop
    By Drag and Drop in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 08-03-2006, 05:40 AM

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