+ Reply to Thread
Results 1 to 8 of 8

How to remove result from bar chart which contain "0"

  1. #1
    Registered User
    Join Date
    08-10-2020
    Location
    Riyadh
    MS-Off Ver
    MS Office 365 Apps for Bussiness (Windows 10 64 Bit)
    Posts
    68

    How to remove result from bar chart which contain "0"

    Hi, I create a bar chart with scroll down feature,

    As you can see in 1st image below, there are 1st 3 records contain 0.. all i want is to hide them from chart..

    TIA


    1.png
    Attached Images Attached Images
    Attached Files Attached Files

  2. #2
    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
    43,984

    Re: How to remove result from bar chart which contain "0"

    Is this what you wanted?

    if so, then i will explain what I did.
    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.

    Temporary addition of accented to illustrate ongoing problem to the TT: L? fh?ile P?draig sona dhaoibh

  3. #3
    Registered User
    Join Date
    08-10-2020
    Location
    Riyadh
    MS-Off Ver
    MS Office 365 Apps for Bussiness (Windows 10 64 Bit)
    Posts
    68

    Re: How to remove result from bar chart which contain "0"

    Quote Originally Posted by Glenn Kennedy View Post
    Is this what you wanted?

    if so, then i will explain what I did.
    Yes sir, i want same exact like this one. is it possible to filter the chart data and deselect "0"?

  4. #4
    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
    43,984

    Re: How to remove result from bar chart which contain "0"

    What do you mean by this:

    is it possible to filter the chart data and deselect "0"?

    In what way does my approach NOT do what you want?? In effect, it is using two formulae and 2 named ranges to deselect the zero values.

  5. #5
    Registered User
    Join Date
    08-10-2020
    Location
    Riyadh
    MS-Off Ver
    MS Office 365 Apps for Bussiness (Windows 10 64 Bit)
    Posts
    68

    Re: How to remove result from bar chart which contain "0"

    Quote Originally Posted by Glenn Kennedy View Post
    What do you mean by this:

    is it possible to filter the chart data and deselect "0"?

    In what way does my approach NOT do what you want?? In effect, it is using two formulae and 2 named ranges to deselect the zero values.
    Yes sir it works perfectly, I was asking just for knowledge that if there is any function to deselect perticular thing. thanks

  6. #6
    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
    43,984

    Re: How to remove result from bar chart which contain "0"

    There is not.

    Do you need an explanation of what I did?

  7. #7
    Registered User
    Join Date
    08-10-2020
    Location
    Riyadh
    MS-Off Ver
    MS Office 365 Apps for Bussiness (Windows 10 64 Bit)
    Posts
    68

    Re: How to remove result from bar chart which contain "0"

    Quote Originally Posted by Glenn Kennedy View Post
    There is not.

    Do you need an explanation of what I did?
    Yes sir.....

  8. #8
    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
    43,984

    Re: How to remove result from bar chart which contain "0"

    OK.

    M3:
    =IFERROR(INDEX(A:A,AGGREGATE(15,6,ROW($A$2:$A$21)/(INDEX($B$2:$D$21,,MATCH($F$3,$B$1:$D$1,0))>0),ROWS(M$3:M3))),"")

    Red: selects the column range defined by F3.
    Cyan: when the values in that column range are >0
    Green: the row number is returned
    Purple: in order smallest to largest
    Blue: starting from 1st smallest, then 2nd smallest, etc,
    Black: fianlly returning the corresponding value from column A.

    N3 is a straightforward INDEX-MATCH. No need to explain.

    To make the chart axes dynamic, I used two Named ranges (CTRL-F3)

    Place:
    =Conclusion!$M$3:INDEX(Conclusion!$M:$M,MATCH("Zzzz",Conclusion!$M:$M))

    Data:
    =Conclusion!$N$3:INDEX(Conclusion!$N:$N,MATCH(10^300,Conclusion!$N:$N))

    These dynamically adjust the range selected to go from the starting cell (M3 or N3) to the last non-blank value in the column.

    To make these Named Ranges work with a chart, the file&sheet name needs to be included as well. So. CHART DESIGN/Select Data/series 1/Edit and you will see that I have refered to the X an Y axes, not as a cell reference range but as:

    ='Hide 0 from chart (1).xlsx'!Place

    and
    ='Hide 0 from chart (1).xlsx'!Data

    That passes only the dyanmically selected data to the chart. Job done.


    You're welcome.



    It would be very nice if you were to just click the Add Reputation button at the foot of any of the posts of members who helped you reach a solution.

    Finally, if that takes care of your original question, please select "Thread Tools" from the menu link above and mark this thread as SOLVED.

+ 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] Need Result in "F", "T", "I", "TI", "IP", "TP" instead of "PASS" "FAIL"
    By vijubhau in forum Excel - New Users/Basics
    Replies: 11
    Last Post: 01-23-2018, 10:20 AM
  2. [SOLVED] Pivot table/chart - remove "<0 or (blank)" from grouping
    By michellepace in forum Excel Charting & Pivots
    Replies: 3
    Last Post: 12-07-2015, 08:42 AM
  3. [SOLVED] VBA help needed to remove all "/" then replace with "-" from cell "B3"and "B5"
    By krjoshi in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 03-17-2014, 02:11 PM
  4. compare two excel sheets using macros and display the result in "true" or "false"
    By gayunana01 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 07-09-2012, 07:21 AM
  5. Replies: 5
    Last Post: 10-12-2010, 06:46 AM
  6. Pivot Chart: Remove "Drop Page Fields Here" box
    By celine in forum Excel Charting & Pivots
    Replies: 6
    Last Post: 12-01-2009, 10:45 PM
  7. Recognize "formulas "result" as "typed data", through and through.
    By gandolff in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 01-13-2009, 01:30 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