+ Reply to Thread
Results 1 to 5 of 5

Using Offset for creating a Dynamic Range

  1. #1
    Registered User
    Join Date
    02-15-2016
    Location
    Manchester
    MS-Off Ver
    2013
    Posts
    17

    Using Offset for creating a Dynamic Range

    Hello,

    I am trying to create a dynamic range using OFFSET and COUNTA but for some reason the sum does not add up.

    Please see attached.

    The 20 results from a direct SUM but I wanted to be able to update the range dynamically as the row expands with new values towards the right.

    Does this make sense?

    Many thanks for your help.
    J.
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    09-20-2011
    Location
    England
    MS-Off Ver
    Excel 2010
    Posts
    2,278

    Re: Using Offset for creating a Dynamic Range

    Hello J welcome to the forum.

    Amend you Offset formula to something like:

    Formula: copy to clipboard
    Please Login or Register  to view this content.


    This will sum data entered until column Z but can be expanded to whatever you require to cover the data potentially being entered.

    DBY

  3. #3
    Registered User
    Join Date
    02-15-2016
    Location
    Manchester
    MS-Off Ver
    2013
    Posts
    17

    Re: Using Offset for creating a Dynamic Range

    Thank DBY.

    This is better than what I had, certainly.

    But would there be a way so that it could update itself regardless on the number of columns?


    In other words, why is COUNTA in my formula not working, then?

    Thank you

  4. #4
    Registered User
    Join Date
    02-15-2016
    Location
    Manchester
    MS-Off Ver
    2013
    Posts
    17

    Re: Using Offset for creating a Dynamic Range

    got it.

    this one works.

    =SUM(OFFSET($B2,0,0,1,COUNTA(B2:ZA2)))

    I missed the 1 for [height]
    using 0 killed it.

    Many thanks,

  5. #5
    Forum Expert
    Join Date
    09-20-2011
    Location
    England
    MS-Off Ver
    Excel 2010
    Posts
    2,278

    Re: Using Offset for creating a Dynamic Range

    Hi
    Because you've limited the COUNTA to column E: ,COUNTA(B2:E2). I won't count any values beyond that, also you had it in the Height argument, it is the Width when dealing with columns.

    * Just seen your last post, yes you've got it.

+ 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] Creating the OFFSET formula with a dynamic reference cell
    By jmillikan in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 05-21-2015, 04:05 PM
  2. Creating Dynamic Range Using OFFSET and COUNTA Adds Extra Rows
    By jcox1953 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 11-25-2014, 12:44 PM
  3. Replies: 1
    Last Post: 09-20-2012, 08:17 PM
  4. Dynamic Range using Offset, range not found for Pivot
    By GoneBaja in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 09-08-2012, 09:19 AM
  5. dynamic range and offset
    By ramzesm in forum Excel General
    Replies: 2
    Last Post: 03-26-2012, 03:17 PM
  6. Offset and Match in Dynamic Range
    By goldenbear10 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 12-01-2009, 09:54 PM
  7. dynamic range / offset
    By Jeff in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 02-23-2005, 12:21 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