Results 1 to 9 of 9

Offset+counta to autoselect data range for charting purposes

Threaded View

  1. #1
    Registered User
    Join Date
    11-12-2013
    Location
    Geneva
    MS-Off Ver
    Excel 2007
    Posts
    59

    Offset+counta to autoselect data range for charting purposes

    Hi community!

    I have learned how to play with data ranges and define names for charts to automatically update them by using the formula offset + counta. An example would be: =OFFSET(Sheet1!$B$7,0,0,COUNTA(Sheet1!$B$6:$B$37)-1).

    So, the problem comes when there is a need to select a data range which is not that well defined like $B$6:$B$37. So, I need to import data regularly into my workbook, this data will be imported right below of the last cell with values.

    Now, how would I manage to automatically select the data range from this new import for my chart? See attached example. I have highlighted in Yellow a potential import... Please note there is no data in there so feel freel to fill it with any numbers you like.

    I have tried to use a vlookup to find Country+Programme+Year (cat1 in the example) in the 'counta' part of the formula above. But I get lost,as a vlookup would retrieve a value and would not be useful for the data range?

    Thanks a lot for your help! Really appreciate it.

    All the best from my side to you all for Xmas time
    Attached Files Attached Files

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. [SOLVED] +OFFSET and COUNTA in VBA
    By Baphomay in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 10-31-2013, 08:11 PM
  2. Data validation, IF, OFFSET & COUNTA
    By alfgrey in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 09-24-2013, 08:27 PM
  3. autoselect a range with text
    By studioturnhout in forum Excel General
    Replies: 1
    Last Post: 07-28-2013, 10:52 AM
  4. [SOLVED] Autoselect data using Macros
    By shoaibj@gmail.com in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 06-02-2006, 01:35 PM
  5. [SOLVED] Defining maximum value from a named range for charting purposes
    By Barb Reinhardt in forum Excel Charting & Pivots
    Replies: 2
    Last Post: 03-08-2006, 12:15 PM

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