+ Reply to Thread
Results 1 to 7 of 7

Dynamic Range in Column Chart That Ignores Blank and With-Formula Cells

  1. #1
    Forum Contributor
    Join Date
    08-29-2012
    Location
    Manila, Philippines
    MS-Off Ver
    2019
    Posts
    102

    Dynamic Range in Column Chart That Ignores Blank and With-Formula Cells

    Hello gurus,

    I just want to seek yet another help with regard to creating a dynamic chart with named ranges.

    As you can see in the attached workbook, I was able to generate what I want to achieve however, the problem surfaces as even the blank and formula-driven cells are also included in the chart plotting. I do not want these to appear, and leave those with values in the chart, as entries will vary depending on the selection (i.e. value on ='Filtered Table'!$A$1)

    Chart Issue.xlsx

    I have done my own research but the solutions are generic and are not addressing my unique concern.

    Thanks in advance for your help guys.

  2. #2
    Valued Forum Contributor
    Join Date
    09-17-2012
    Location
    Johannesburg, South Africa
    MS-Off Ver
    Excel 2007
    Posts
    454

    Re: Dynamic Range in Column Chart That Ignores Blank and With-Formula Cells

    Like this?

    DynamicSeries.xlsx

  3. #3
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: Dynamic Range in Column Chart That Ignores Blank and With-Formula Cells

    Hi,

    See attached.

    Change your random function to (1,10) not (0,10) and use the Countif function in your range names.
    Attached Files Attached Files
    Richard Buttrey

    RIP - d. 06/10/2022

    If any of the responses have helped then please consider rating them by clicking the small star icon below the post.

  4. #4
    Forum Contributor
    Join Date
    08-29-2012
    Location
    Manila, Philippines
    MS-Off Ver
    2019
    Posts
    102

    Re: Dynamic Range in Column Chart That Ignores Blank and With-Formula Cells

    You're awesome guys! Thanks for both of your inputs. Both worked great! Rep point to both of you!

  5. #5
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,215

    Re: Dynamic Range in Column Chart That Ignores Blank and With-Formula Cells

    Note your "Database" range starts in row 2 but ranges in formulae start in row 3

    =INDEX(Database!$G$3:$G$100, SMALL(IF($A$1>Database!$D$3:$D$100, ROW(Database!$D$3:$D$100)-ROW($A$3)+1), ROW(1:1)))

    ????


    by changing the formula as follows you could simply drag them across the columns

    =INDEX(Database!A$3:A$100, SMALL(IF($A$1>Database!$D$3:$D$100, ROW(Database!$D$3:$D$100)-ROW($A$3)+1), ROW(1:1)))

  6. #6
    Forum Contributor
    Join Date
    08-29-2012
    Location
    Manila, Philippines
    MS-Off Ver
    2019
    Posts
    102

    Re: Dynamic Range in Column Chart That Ignores Blank and With-Formula Cells

    Hello again gurus,

    Though all your solutions meet my preference (esp @cyiangou) however, I cannot seem to apply it to the file I am currently working on. I'm not sure where I am missing in the process, but the named ranges I am assigning to it do not allow me to proceed and pops out an error.

    Please note that I am working on with a macro-enabled document as a whole, but I guess it is not the reason why I am experiencing the error.

    I have been draining my brain cells out yet to no avail. I will appreciate if you can help me again with this file (attaching the file which is apart from the confidential info cleansed out, it is the exact row and column arrangement)

    Thank you again for all your inputs and help!

    SAMPLE.xlsm

  7. #7
    Forum Contributor
    Join Date
    08-29-2012
    Location
    Manila, Philippines
    MS-Off Ver
    2019
    Posts
    102

    Re: Dynamic Range in Column Chart That Ignores Blank and With-Formula Cells

    I don't know what exactly I did different, but I was able to fix it myself!

    Lesson learned: Stretch my patience more!

    Thanks anyway guys!

+ 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. Dynamic Print Area that ignores blank cells containing formulas
    By ms.mount in forum Excel - New Users/Basics
    Replies: 8
    Last Post: 07-03-2017, 05:46 PM
  2. [SOLVED] Dynamic Chart ranges are picking the blank cells as these contain formula
    By controlfreak in forum Excel Charting & Pivots
    Replies: 2
    Last Post: 03-28-2014, 04:15 AM
  3. Replies: 1
    Last Post: 12-20-2013, 12:49 PM
  4. Dynamic named range that ignores formulas that return blank
    By Nils88 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 06-27-2013, 05:02 AM
  5. [SOLVED] Macro to copy formula to blank cells in a dynamic range
    By masben in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 02-25-2013, 07:07 AM
  6. Replies: 2
    Last Post: 07-11-2012, 08:58 AM
  7. Dynamic Range that ignores formulas that return Blank
    By oo0tommyk0oo in forum Excel General
    Replies: 10
    Last Post: 03-16-2011, 01:06 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