+ Reply to Thread
Results 1 to 3 of 3

Dynamic chart with formua derived data

  1. #1
    Forum Contributor
    Join Date
    12-02-2008
    Location
    Brisbane
    MS-Off Ver
    2016
    Posts
    807

    Dynamic chart with formua derived data

    I am trying to create a dynamic range chart using dynamic ranges, not a table. It's not a problem if data is added to the source data but if I extract data from the source data by formula the chart shows the blank formula cells to contain data and shows nothing. The attached chart explains it better. Thanks for any help.
    Attached Files Attached Files
    Last edited by BRISBANEBOB; 10-09-2016 at 04:57 AM. Reason: Duplicated

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

    Re: Dynamic chart with formua derived data

    If I follow correctly, I will ask if you understand how the dynamic named range you are using works - specifically, do you understand how the COUNTA() function fits into the OFFSET() function to determine how many rows of data to include in the named range? As explained in the help file for the COUNTA() function (https://support.office.com/en-us/art...2-53f3219e2509 ), the COUNTA() function counts all non-empty cells, which includes cells with functions that return empty string "". Since an Excel function cannot return a truly empty or blank cell, any cell with a function will be included in the COUNTA() function. the resolution to your problem, I believe, will be to think through what kind of counting function you need here. Perhaps a regular COUNT() function (that does not count the empty text values) on column I or J would be a better choice. Or a COUNTIF() or COUNTIFS() function would better recognize which rows are real data and which are not.

    Let us know if you need help formulating a different counting function.
    Quote Originally Posted by shg
    Mathematics is the native language of the natural world. Just trying to become literate.

  3. #3
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,139

    Re: Dynamic chart with formua derived data

    One Named Range needed to be adjusted to take account of the formula blanks in it. I used the column with the persons name. So rather than setting the column height as being th ewhole column minus 1, I used:

    =OFFSET(ChartData!$H$4,0,0,SUMPRODUCT(--(LEN(ChartData!$H$4:$H$100)>0)),1)

    This bit: SUMPRODUCT(--(LEN(ChartData!$H$4:$H$100)>0))

    returns all the cells where the length of the content exceeds 0. In your Named range, any cell with a formula also counted. hence the compressed Y-axis. I then used simpler NR's for the data, e.g.:

    =OFFSET(rgNames,0,1) for Data A.

    I deleted your total further down the data columns. If you MUST have the totals, put them in a row ABOVE the starting row of the NR, otherwise, everything may well go pear-shaped again.

    Oh, I also tidied up (deleted) your unnecessary index columns, and used an array formula to return a unique list of names. Formula used:

    =IFERROR(INDEX($B$4:$B$25,MATCH(0,INDEX(COUNTIF($F$3:$F3,$B$4:$B$25),0),0))&"","")

    Array Formulae are a little different from ordinary formulas in that they MUST be confirmed by pressing CTRL+SHIFT+ENTER to activate the array, not just ENTER.

    You will know the array is active when you see curly braces { } appear around the outside of your formula. If you do not CTRL+SHIFT+ENTER you will (almost always) get an error message or an incorrect answer. Press F2 on that cell and try again.

    Don't type the curly braces yourself - it won't work...
    Attached Files Attached Files
    Glenn




    None of us get paid for helping you... we do this for fun. So DON'T FORGET to say "Thank You" to all who have freely given some of their time to help YOU

+ 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] Box chart for dynamic data
    By Sai Prashanth in forum Excel Charting & Pivots
    Replies: 1
    Last Post: 10-18-2014, 01:38 PM
  2. Dynamic Chart Data
    By jj1982 in forum Excel Charting & Pivots
    Replies: 1
    Last Post: 06-26-2014, 08:22 AM
  3. Chart with dynamic data in a row, account valid data only when building chart
    By artmak in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 05-05-2014, 02:21 PM
  4. Chart Newbie - Right Axis Derived From Values
    By snapfade in forum Excel Charting & Pivots
    Replies: 4
    Last Post: 03-02-2014, 06:58 AM
  5. Replies: 3
    Last Post: 01-06-2014, 01:22 PM
  6. How to create a dynamic chart off dynamic data
    By jananas in forum Excel Charting & Pivots
    Replies: 2
    Last Post: 08-07-2013, 10:48 AM
  7. Cell retains value derived from dynamic function.
    By BaldySlaphead in forum Excel General
    Replies: 2
    Last Post: 01-14-2009, 11:31 AM

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