+ Reply to Thread
Results 1 to 4 of 4

Edit formula in Chart Data Range to make it dynamic

  1. #1
    Forum Contributor
    Join Date
    06-08-2012
    Location
    Panama City, FL
    MS-Off Ver
    Excel 2016
    Posts
    175

    Edit formula in Chart Data Range to make it dynamic

    Hello Excel friends,

    I am using Excel 2016 on my little Dell / Windows10. I have been given instructions on where to go to create a dynamic table. In this case, I don't want to entirely recreate the spreadsheet (although I will try to learn and use that method in the future) when my purpose will be served if someone can help me EDIT THIS FORMULA to retrieve the row number from another sheet.

    I have the following formula in the "Chart data range:" of the Select Data Source of a chart, (once each in 45 different charts) that is on sheet '1-1-6'.
    Please Login or Register  to view this content.
    It works fine, except, every month I have to manually change the row number for every chart one-by-one. My data for the chart is on sheet '1-1-6D' as shown in the formula.
    I could either replace the row number (12 in this case) with the following code that displays the row number or place the code in cell '1-1-6D'!$F$10 and edit the formula above to retrieve the row number from '1-1-6D'.
    Please Login or Register  to view this content.
    The problem here is that I cannot figure out how to do what I stated above. I don't have a preference which method is used, as long as it works.

    Any assistance from y'all would be greatly appreciated. Thanks in advance!
    Last edited by GregM56; 07-17-2019 at 11:54 PM. Reason: inadequate title

  2. #2
    Forum Guru
    Join Date
    04-13-2005
    Location
    North America
    MS-Off Ver
    2002/XP and 2007
    Posts
    15,819

    Re: Formula problem in Chart Data Range

    It sounds like you are looking for "dynamic chart ranges". The easiest is usually to make your chart's source data part of a structured table. Structured tables "know" how big they are and chart's that reference the table will usually expand/shrink as the table expands/shrinks. The other approach is to create dynamic named ranges for your chart data that will grow/shrink as your data grows/shrinks. More detail here: https://chandoo.org/wp/dynamic-chart-data-series/ or put "excel dynamic chart" into your favorite internet search engine.
    Quote Originally Posted by shg
    Mathematics is the native language of the natural world. Just trying to become literate.

  3. #3
    Forum Contributor
    Join Date
    06-08-2012
    Location
    Panama City, FL
    MS-Off Ver
    Excel 2016
    Posts
    175

    Re: Formula problem in Chart Data Range

    I will follow your direction but would like to know in the meantime if the formula can be edited as I stated?
    Thanks!

  4. #4
    Forum Contributor
    Join Date
    06-08-2012
    Location
    Panama City, FL
    MS-Off Ver
    Excel 2016
    Posts
    175

    Re: Edit formula in Chart Data Range to make it dynamic

    Okay, I finally found how to do it, so it's only fair that I share it. Hopefully it'll help someone else.
    Taking MrShorty's advice to search for what's already there I found the perfect answer from a tutorial by Leila Gharani (she's great). She had me do the code like CFAman in Reddit suggested EXCEPT she showed that the code cannot be used in the Chart Data Range because it doesn't like functions and formulas which is what I was experiencing. Rather, she showed that I could use the code in the sheet and then NAME it and use the name (but absolutely preceded by the SheetName and !). Works like a charm. I did not convert to tables, but will likely do as MrShorty said since tables do resize with the data. That's for the assistance MrShorty and CFAman. Kudos to Leila and the Excel training she offers.

+ 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] Tweaking index match formula
    By Prince Dakkar in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 02-23-2017, 03:38 PM
  2. Help tweaking formula from one work sheet to another
    By mlopez60120 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 11-07-2016, 05:31 PM
  3. [SOLVED] Cell address formula needs tweaking
    By GregM56 in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 06-04-2014, 04:54 PM
  4. Formula needs tweaking to apply to 2 more cells in same row.
    By JACKLEO in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 06-25-2011, 04:05 AM
  5. Tweaking a SUMIF formula
    By JOGIER in forum Excel General
    Replies: 2
    Last Post: 05-30-2009, 06:55 PM
  6. Tweaking formula?
    By Richard in forum Excel General
    Replies: 2
    Last Post: 08-14-2006, 07:55 AM
  7. [SOLVED] Help tweaking a formula
    By Shhhh in forum Excel General
    Replies: 2
    Last Post: 10-05-2005, 08:05 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