+ Reply to Thread
Results 1 to 5 of 5

Expand Defined Name Range Horizontally to Dynamically Change Chart with new data

  1. #1
    Registered User
    Join Date
    12-15-2017
    Location
    Washington, DC
    MS-Off Ver
    2013
    Posts
    2

    Expand Defined Name Range Horizontally to Dynamically Change Chart with new data

    Hello Everyone,

    I am working on streamlining a report. With each succeeding new month, new data is placed into my workbook horizontally, according to month. The data is ten used to populate a bar chart comparing the current year and SPLY performance for each month. The data is currently organized as such:
    BI BJ BK BL BM BN BO BP BQ BR BS BT BU BV
    28 Oct Nov Dec Jan Feb Mar Apr May Jun Jul Aug Sep
    29 Revenue FY18 5,575,407 #N/A
    30 SPLY 6,926,773 #N/A



    From January moving forward, I've written an IF formula to display "#N/A" as those months have not occurred yet. My goal is to extend a named range horizontally with each succeeding month so I do not have to change the cell references of my chart each reporting month. Any assistance is greatly appreciated.

    Respectfully,

    Michael
    Last edited by machl22; 12-20-2017 at 10:55 AM.

  2. #2
    Forum Expert
    Join Date
    05-20-2015
    Location
    Chicago, Illinois
    MS-Off Ver
    2016
    Posts
    2,103

    Re: Expand Defined Name Range Horizontally to Dynamically Change Chart with new data

    Welcome to the forum!

    It's hard to be too certain I'm understanding your data arrangement without seeing a sample workbook, but dynamic named ranges are often done using OFFSET and one of the COUNT functions to craft the formula used to define the named range. Maybe something like the following for revenue (assumes numbers start in BK):

    =OFFSET(BK29,0,0,1,COUNTIF(BK29:BV29,">0")
    If your problem has been solved, please use "Thread Tools" to mark the thread as "Solved".

    If you're grateful for this site's existence and would like to contribute to the community, please consider posting something hilarious in our joke thread:
    https://www.excelforum.com/the-water...ke-thread.html

  3. #3
    Registered User
    Join Date
    12-15-2017
    Location
    Washington, DC
    MS-Off Ver
    2013
    Posts
    2

    Re: Expand Defined Name Range Horizontally to Dynamically Change Chart with new data

    Thank you so much for your response, CAntosh. Worked perfectly! First time on the forum, thus I wasn't sure how to include an attachment. Happy holidays to you and yours!

  4. #4
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,719

    Re: Expand Defined Name Range Horizontally to Dynamically Change Chart with new data

    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED. Thanks.

    For future reference:

    Unfortunately the attachment icon doesn't work at the moment, so to attach an Excel file you have to do the following: just before posting, scroll down to Go Advanced and then scroll down to Manage Attachments. Now follow the instructions at the top of that screen.
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  5. #5
    Forum Expert
    Join Date
    05-20-2015
    Location
    Chicago, Illinois
    MS-Off Ver
    2016
    Posts
    2,103

    Re: Expand Defined Name Range Horizontally to Dynamically Change Chart with new data

    My pleasure, and thanks for marking the thread solved. Good luck!

+ 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] Can a Chart dynamically change it range based on a cells value?
    By Bobbbo in forum Excel Charting & Pivots
    Replies: 7
    Last Post: 09-09-2017, 03:11 PM
  2. SOLVED-Dynamically change size/range of x axis of chart
    By helpme858 in forum Excel General
    Replies: 2
    Last Post: 08-07-2017, 12:20 PM
  3. [SOLVED] cannot expand a pivot chart horizontally
    By Trebor777 in forum Excel Charting & Pivots
    Replies: 9
    Last Post: 12-21-2016, 01:48 PM
  4. Horizontally expand the range name into a Table
    By Pityon in forum Hello..Introduce yourself
    Replies: 2
    Last Post: 09-02-2015, 11:55 PM
  5. Change the range in x axis dynamically for line chart
    By dimwit in forum Excel Charting & Pivots
    Replies: 1
    Last Post: 06-27-2013, 05:23 AM
  6. Double click on element in dynamically defined chart
    By padleywoods in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 11-07-2012, 01:54 PM
  7. Dynamically Expand Range to Create Chart
    By alis88 in forum Excel General
    Replies: 5
    Last Post: 07-04-2011, 07:23 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