+ Reply to Thread
Results 1 to 4 of 4

Ignore blanks (" ") cells when plotting Bar Graph

  1. #1
    Registered User
    Join Date
    08-08-2017
    Location
    UK
    MS-Off Ver
    2010
    Posts
    15

    Ignore blanks (" ") cells when plotting Bar Graph

    Hello all,

    I have a quick question that I've been trying to find the solution to on the net, but with no avail!

    I need to plot a bar graph that is dynamic, hence I need it to avoid plotting any fields with blanks or " " values in. I've attached a sample file where the blanks might be filled, else they would have " " values (I've not put the formulae in for now).

    Any help would be appreciated.

    P.S. I want to avoid the use of filtering/pivot charts if possible and prefer a more dynamic presentation. I don't mind using VBA but if I can get away with just formulae or a setting change that'd be great!

    Kind Regards,
    SGP
    Attached Files Attached Files
    Last edited by sgreenprice; 10-11-2017 at 11:37 AM.

  2. #2
    Forum Expert BadlySpelledBuoy's Avatar
    Join Date
    06-14-2013
    Location
    East Sussex, UK
    MS-Off Ver
    365
    Posts
    7,938

    Re: Ignore blanks (" ") cells when plotting Bar Graph

    You can do this with 'dynamic named ranges'. In the attached I've altered the chart to run off of two DNRs.
    One called XAxis to (unsurprisingly) give values to the X axis and uses this formula:
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    and this one called Values... well you get the idea
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    Press Ctrl + F3 to open the name manager to see the named ranges.
    Charts edited in the usual way but to use the named ranges rather than specified cell ranges.

    Any use?

    BSB
    Attached Files Attached Files

  3. #3
    Registered User
    Join Date
    08-08-2017
    Location
    UK
    MS-Off Ver
    2010
    Posts
    15

    Re: Ignore blanks (" ") cells when plotting Bar Graph

    Apologies for the late reply but works a charm - thanks for your help!! Will mark as solved and +rep

  4. #4
    Forum Expert BadlySpelledBuoy's Avatar
    Join Date
    06-14-2013
    Location
    East Sussex, UK
    MS-Off Ver
    365
    Posts
    7,938

    Re: Ignore blanks (" ") cells when plotting Bar Graph

    Happy to help

    BSB

+ 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. Replies: 1
    Last Post: 06-21-2017, 08:46 AM
  2. [SOLVED] How to get VBA to ignore "blank" cells or cells with "text"
    By mss90 in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 05-02-2016, 10:32 AM
  3. Replies: 9
    Last Post: 03-05-2016, 12:53 AM
  4. Data Validation - how to ignore cells with "0" or "-"
    By dgibney in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 01-29-2015, 08:16 PM
  5. [SOLVED] array formula count "number of" - can it ignore blanks
    By nigelog in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 09-24-2014, 09:33 AM
  6. Replies: 3
    Last Post: 02-05-2013, 03:51 AM
  7. Problem "plotting visible cells only" in List
    By jhovey in forum Excel Charting & Pivots
    Replies: 0
    Last Post: 04-14-2008, 12:24 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