+ Reply to Thread
Results 1 to 2 of 2

Need help with creating a formula to Sum columns and drag and drop

  1. #1
    Registered User
    Join Date
    03-02-2020
    Location
    California
    MS-Off Ver
    MS 365 Sub Version 16.57 (Mac)
    Posts
    37

    Need help with creating a formula to Sum columns and drag and drop

    Hello,

    I am having a little difficulty on a project I am working on.

    In the sheet attached below I have a set of names in column A. Those same names are spread horizontally through G1:R1 using the transpose function. Starting in cell B2, I am looking for a formula to be able to sum each column that matches their name above. So in cell B2, I want to sum column G2:G16 and then divide by 15. I entered the formula "=sum(G2:G16)/15", however, from here I am unable to drag and drop where B3 will go to column H2:H16, and etc.

    I hope this makes sense.

    Greatly appreciate any help.
    Attached Files Attached Files

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

    Re: Need help with creating a formula to Sum columns and drag and drop

    Try in B2 copied down
    =SUM(INDEX($G$2:$R$16,0,ROWS($B$2:$B2)))
    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

+ 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. Creating hyperlinks in excel using drag and drop
    By param.malkan in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 05-10-2020, 09:06 PM
  2. How to Control Drag and Drop? (force "shift" drag-drop, disable into certain rows)
    By superlative in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 04-18-2019, 11:16 AM
  3. 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
  4. Need Formula to Ignore Drag and Drop
    By bigjayb024 in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 10-01-2013, 09:54 PM
  5. Drag and Drop entire row but Columns dont change?
    By ThaGonz in forum Excel General
    Replies: 1
    Last Post: 09-07-2011, 07:14 PM
  6. Lock-In Formula From Drag=Drop
    By alisacki in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 03-29-2007, 05:42 PM
  7. [SOLVED] drag and drop a formula
    By Bram in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 10-19-2005, 12:05 PM

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