+ Reply to Thread
Results 1 to 3 of 3

Create a chart that automatically removes '0' value or blank rows from a range

  1. #1
    Registered User
    Join Date
    10-06-2021
    Location
    London
    MS-Off Ver
    Microsoft 365
    Posts
    1

    Create a chart that automatically removes '0' value or blank rows from a range

    Hi - thank you for taking the time to look.

    Hoping can please help.

    I'm making a document / master template that that can be used for anywhere between 1 and 100 sites. I'm trying to set this up, so all formulas and charts etc will work whether I use this for 1x location or the 100x.

    I'd like to have a chart that looks at the range of a 100x sites, however, if it only finds 10x sites have been listed, then it will automatically remove the blank columns from the chart (rather than showing as '0' values). To further complicate things (!), the formula in one of the columns will mean the row isn't truly blank as will contain the formula, but that will always return a '0' / blank unless a site name has been entered...

    Hopefully the example I've made in the attached makes it clear what I'm trying to achieve.

    Thank you for any help and guidance you can give, BR, Nick
    Attached Files Attached Files

  2. #2
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,494

    Re: Create a chart that automatically removes '0' value or blank rows from a range

    Try:

    C5: =SORT(UNIQUE(FILTER(Summary!B3:B100,Summary!B3:B100<>"")))
    D5: =SUMIF(Summary!B:B,Charts!C5#,Summary!C:C)

    DNR ChartNames =Charts!$C$5:INDEX(Charts!$C:$C, MATCH(REPT("z",9),Charts!$C:$C,1))
    DNR ChartData =Charts!$D$5:INDEX(Charts!$D:$D, MATCH(REPT("z",9),Charts!$C:$C,1))

    Series ='Excel - Test Case.xlsx'!ChartNames
    Series ='Excel - Test Case.xlsx'!ChartData
    Attached Files Attached Files
    Trevor Shuttleworth - Retired Excel/VBA Consultant

    I dream of a better world where chickens can cross the road without having their motives questioned

    'Being unapologetic means never having to say you're sorry' John Cooper Clarke


  3. #3
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,494

    Re: Create a chart that automatically removes '0' value or blank rows from a range

    Is this resolved yet?

+ 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. create print file after hiding blank rows in data range.
    By yatin1964 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 09-20-2018, 05:40 AM
  2. [SOLVED] Pasting Dynamic Data that Removes Blank Rows
    By sherylt13 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 09-01-2018, 07:51 AM
  3. Macro that removes blank rows?
    By taylorsm in forum Excel Programming / VBA / Macros
    Replies: 12
    Last Post: 02-22-2017, 09:35 PM
  4. [SOLVED] Create a dynamic stacked bar chart and remove blank rows
    By sav1979 in forum Excel General
    Replies: 3
    Last Post: 03-21-2016, 01:12 PM
  5. Replies: 6
    Last Post: 11-13-2014, 03:16 PM
  6. Replies: 5
    Last Post: 05-09-2013, 01:16 AM
  7. Can I create a macro to identify and delete blank rows in a range?
    By carlsondj in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 06-09-2005, 08:05 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