+ Reply to Thread
Results 1 to 8 of 8

Using a variable number of cells in SUM function

Hybrid View

lucasar Using a variable number of... 03-13-2014, 06:04 PM
TMS Re: Using a variable number... 03-13-2014, 06:14 PM
lucasar Re: Using a variable number... 03-14-2014, 02:49 PM
newdoverman Re: Using a variable number... 03-14-2014, 03:11 PM
TMS Re: Using a variable number... 03-14-2014, 03:11 PM
lucasar Re: Using a variable number... 03-14-2014, 03:18 PM
TMS Re: Using a variable number... 03-14-2014, 03:28 PM
newdoverman Re: Using a variable number... 03-14-2014, 04:14 PM
  1. #1
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    48,069

    Re: Using a variable number of cells in SUM function

    Formula: copy to clipboard
    =SUM(INDEX(2:2,$B2):INDEX(2:2,$B2+$C2-1)


    B2 contains the start cell/column; C2 contains the number of cells/columns.


    Regards, TMS
    Trevor Shuttleworth - Retired Excel/VBA Consultant

    I dream of a better world where chickens can cross the road without having their motives questioned

    'Being unapologetic means never having to say you're sorry' John Cooper Clarke


  2. #2
    Registered User
    Join Date
    01-30-2014
    Location
    Brazil
    MS-Off Ver
    Excel 2016
    Posts
    46

    Re: Using a variable number of cells in SUM function

    Hello TMS!
    I'm getting a "The formula you typed contains an error.".
    Can you help me understand your formula? I can see that it's possible to reference to a cell, but I'm not getting the whole thing.
    I'm updating an excel file so you can better undersand my problem, can you apply that formula on that sheet?
    Thank you very much for the attention!

    Help.xlsx

+ 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] using Countif Function: Column number stored in a variable
    By vidyuthrajesh in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 01-21-2014, 06:58 PM
  2. Summing a variable number of cells
    By rschammel in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 08-30-2013, 02:55 AM
  3. Averaging Variable Number of Cells
    By MaxM&M in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 05-26-2013, 09:01 PM
  4. Sum a variable number of cells
    By lhmome in forum Excel General
    Replies: 11
    Last Post: 05-02-2009, 02:31 AM
  5. Hyperlink function fails when using variable row number
    By Balex in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 04-08-2006, 01:45 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