+ Reply to Thread
Results 1 to 2 of 2

sum() and average() formula with dynamic columns

  1. #1
    Registered User
    Join Date
    03-29-2010
    Location
    Toronto, Canada
    MS-Off Ver
    Excel 2010
    Posts
    70

    sum() and average() formula with dynamic columns

    I've come across this formula in an excel spreadsheet that I'm working with:

    =SUM(INDEX($A1120:$FI1120,COLUMN(Current_qtr)):$FI1120)

    where current_qtr refers to column BO:BO (defined in the Name Manager)

    I've never seen the SUM function used this way, but its useful because it allows the formula to be updated automatically with changing values of current_qtr. Can this approach be adapted to an array formula? such as:

    ={AVERAGE(IF(BO1150:FI1150<>0, BO1150:FI1150,""))}

    i.e. how can current_qtr be used to replace the values of BO1150?

    Thanks....

    Don

  2. #2
    Forum Expert skywriter's Avatar
    Join Date
    06-09-2014
    Location
    USA
    MS-Off Ver
    365 Version 2409
    Posts
    2,789

    Re: sum() and average() formula with dynamic columns

    i.e. how can current_qtr be used to replace the values of BO1150?
    BO1150 is only a single cell.
    If what you really meant is how do I replace BO1150:FI1150 with current_qtr, then have you tried simply replacing that range in the formula with the named range and using Control + Shift + Enter to confirm the array formula?

+ 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] average formula for dynamic range
    By rossg in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 03-01-2014, 07:41 AM
  2. Dynamic Range and Average Formula
    By molfetta55 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 02-25-2014, 09:54 AM
  3. Conditional Weekly Average Formula for Dynamic Dates
    By roychirodeep in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 12-10-2013, 01:51 AM
  4. Replies: 10
    Last Post: 11-21-2011, 12:51 PM
  5. Dynamic range in average formula
    By Cicada in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 05-09-2011, 02:08 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