How to Not Show Zero Values in Excel Line Chart (prevent drop to zero & dynamic legend positioning)

Поделиться
HTML-код
  • Опубликовано: 29 ноя 2017
  • Join 400,000+ professionals in our courses here 👉 link.xelplus.com/yt-d-all-cou...
    Enhance your Excel charting skills with this insightful tutorial, perfect for anyone who needs to create dynamic and informative line charts in their reports. This video walks you through an essential trick to cut off line series based on a specific month selection, ensuring your charts display only relevant data.
    ⬇️ Download the workbook here: pages.xelplus.com/line-chart-...
    Here's what you'll learn:
    Problem with Extended Line Series: Understand the common issue in Excel line charts where future months are displayed even when not needed.
    Creating a Dynamic Dropdown List: Follow the steps to insert a dropdown list for month selection using data validation, which dictates the data shown in the chart.
    Preparing Data for Charting: Discover how to prepare a data table that the chart will reference, ensuring it only shows data up to the selected month.
    Implementing the MATCH Function: Learn to use the MATCH function to locate a specific month within your data, a crucial step in customizing your line chart.
    Using IF and COUNTA for Data Comparison: Find out how to compare months and set up conditions to display data only for selected months and earlier.
    Crafting the Line Chart: See the process of inserting and optimizing a line chart, including how to avoid line crashes to zero by using the NA function.
    Adding Dynamic Data Labels and Titles: Get tips on creating moving labels for your line series that update based on the selected month, making your charts more interactive and informative.
    Hiding Errors in Your Report: A bonus tip on how to hide NA errors in your report using conditional formatting, keeping your charts clean and professional.
    In this Excel Line Chart tutorial, you learn four tricks:
    1. How to prevent your line series to drop to zero
    2. How to create dynamic charts based on a Point of View (in this case month selection)
    3. How to integrate your legend inside the chart - i.e. at the end of the line series for improved readability and...
    4. How to hide or make error values in cells, invisible with conditional formatting.
    Links to related videos:
    Basics of Excel Charts: • Excel Charts & Graphs:...
    Matrix charts in Excel: • How to Create Panel Ch...
    Fully Playlist on Charts: • Excel Charts
    ★ My Online Excel Courses ► www.xelplus.com/courses/
    ➡️ Join this channel to get access to perks: / @leilagharani
    👕☕ Get the Official XelPlus MERCH: xelplus.creator-spring.com/
    🎓 Not sure which of my Excel courses fits best for you? Take the quiz: www.xelplus.com/course-quiz/
    🎥 RESOURCES I recommend: www.xelplus.com/resources/
    🚩Let’s connect on social:
    Instagram: / lgharani
    LinkedIn: / xelplus
    Note: This description contains affiliate links, which means at no additional cost to you, we will receive a small commission if you make a purchase using the links. This helps support the channel and allows us to continue to make videos like this. Thank you for your support!
    #excel

Комментарии • 184

  • @LeilaGharani
    @LeilaGharani  5 месяцев назад

    Grab the file I used in the video from here 👉 pages.xelplus.com/line-chart-zero-file

  • @dseaq
    @dseaq 3 года назад +1

    The fact that you bring up real business problems to discuss, makes these classes so interesting! And the solutions discussed are simple yet elegant. Thank you so much.

  • @FinnJenkins
    @FinnJenkins 2 года назад +1

    As always, you have saved the day. I've been battling with a challenging graphic situation for 2 days and just found the answer in your na() trick. Thank you.

  • @saikarlsass710
    @saikarlsass710 Год назад

    Leila, it's just magic what your doing with Excel. Awsome!

  • @excelisfun
    @excelisfun 6 лет назад +2

    Thanks for the Actual charting fun : )

  • @mazarata73
    @mazarata73 5 лет назад

    I was just looking for the button to giv you at least 3 thumbs up. So very precious your tips. Thank you very much Leila!

  • @speedylogic
    @speedylogic 6 лет назад

    Thanks Leila, great content, great presentation, simple, elegant and very useful.

  • @widuralatest
    @widuralatest 4 года назад

    Oh, dear. thanks a lot for the video. You saved my day. I didn't know about "na()" that can be used to omit specific values from a chart. thanks a lot for pointing it out.

  • @muazabdullah3124
    @muazabdullah3124 3 года назад

    Thanks Ms. Gharani for saving my day!
    Seeing #N/A in tables isn't giving me aches anymore!

  • @rajnajat
    @rajnajat 2 года назад

    You always give a simple solution to complex problems. Thanks and God bless !

  • @Max_-
    @Max_- 5 лет назад +2

    Awesome videos!!! Thank you very much for the pragmatic advice, excellent quality and your really friendly style!

    • @LeilaGharani
      @LeilaGharani  5 лет назад

      You're very welcome Max. I'm glad you like the videos!

  • @saraz9179
    @saraz9179 3 месяца назад

    You explain so well and
    make it so simple
    Thank you
    مرسی

  • @michaeldiamond2726
    @michaeldiamond2726 6 лет назад

    Great video Leial, as always. I like the moving label trick I think this should also be added to your chart course. I do remember you addressing this several times in some of your advanced charting techniques.

    • @LeilaGharani
      @LeilaGharani  6 лет назад

      Hi Michael. Thank you for your comment. Yes - this one is included. Although I have to redo the chart course sometime next year on the latest Excel version....

  • @ashpatacpan6215
    @ashpatacpan6215 3 года назад

    I need a Leila Gharani by my side everyday. Love your vids ❤️❤️❤️
    The best!

  • @Stepford
    @Stepford 6 лет назад

    Nice one Leila! The zeros on charts had always bugged me, so it's great to hear that there is a dynamic solution to the problem. Thanks for sharing :)

    • @LeilaGharani
      @LeilaGharani  6 лет назад

      You're very welcome! Glad to hear that.

    • @rjvandan
      @rjvandan 3 года назад

      @@LeilaGharani Hi Can You Share details on Custom Cell and Number Formatting in Deep
      As I am always getting freezed and unable to understand system of it

  • @esthergrace3516
    @esthergrace3516 4 года назад +1

    Oh gosh amazing, i feel am learning more here than any other paid courses....Love it..I am gonna watch all :)

    • @LeilaGharani
      @LeilaGharani  4 года назад

      Wonderful! I'm happy to hear that.

  • @arnabdebnath1223
    @arnabdebnath1223 4 года назад

    Was really not expecting to find a solution to this - thank you

  • @MohammedShajialpetta
    @MohammedShajialpetta 4 года назад

    Great thanks for productive lessons in excel.. you are an Angel for people need to learn ..

  • @Chef-1707
    @Chef-1707 Год назад

    solved so many problems at once for me. genius and cannot thank you enough. Great channel

    • @LeilaGharani
      @LeilaGharani  Год назад

      I’m glad you found this helpful! Thanks for sharing.

  • @bricc322
    @bricc322 6 лет назад

    Such awesome and smart tricks! Thank you, Leila!

    • @LeilaGharani
      @LeilaGharani  6 лет назад +1

      Glad you like it Celia. You're very welcome.

  • @terrymadeley
    @terrymadeley 6 лет назад

    Very helpful, thanks a lot. And a great tip about hiding the NA from view too.

  • @matthewbrierley88
    @matthewbrierley88 3 года назад

    Leila, you're a legend.

  • @feliperodriguessousa5759
    @feliperodriguessousa5759 4 года назад

    Girl, I want to be just like when I grow up! You're truly amazing!

  • @1gopalakrishnarao
    @1gopalakrishnarao 6 лет назад

    One MORE BIG SALUTE/ROYAL SALUTE to our greatest teacher, " GODDESS OF EXCEL"- Many Many countless thanks.

    • @LeilaGharani
      @LeilaGharani  6 лет назад

      Thank you very much for your very kind comment Gopala. Many many welcomes :)

  • @yeddyable
    @yeddyable 2 года назад

    Wow this what i've been looking for... Thanks...

  • @semperdiscendum7439
    @semperdiscendum7439 6 лет назад

    That was Awesome!!! Will wait for next one!! 👍👍👍👌👌

    • @LeilaGharani
      @LeilaGharani  6 лет назад

      Thanks. Glad you like it. Next one coming in a few days :).

  • @nz2555
    @nz2555 Год назад

    Amazing tutorial!

  • @dmarti47
    @dmarti47 2 года назад

    Thank you, Leila. This helped a lot.

  • @robertojunqueira
    @robertojunqueira 6 лет назад

    Exactly what I needed! Congratulations

  • @manuelvalbuena2755
    @manuelvalbuena2755 Год назад

    god bless you, i kept having that drop to zero... awesome!

  • @AbhishekTripathidce
    @AbhishekTripathidce 4 года назад

    Awesome video. Thank You LG .

  • @ismailismaili0071
    @ismailismaili0071 6 лет назад

    OMG you are just an awesome teacher chart is your life you blow my mind thank u so much for this video i can't wait for the next one.

    • @LeilaGharani
      @LeilaGharani  6 лет назад +1

      Thank you Ismail for your kind comment! Glad you like it :)

  • @craigvoss1468
    @craigvoss1468 6 лет назад +1

    Another great video. You're awesome.

  • @stephengibson100
    @stephengibson100 5 лет назад

    Fantastic...again. Thanks Leila

  • @gauravmore1908
    @gauravmore1908 2 года назад

    Exactly what I was looking for 👍

  • @rienthongw
    @rienthongw 6 лет назад

    This is a great VDO. Thank you for sharing.

  • @johnn5728
    @johnn5728 4 года назад

    Great videos
    I’m a senior analyst and some of these tips are awesome👍👍👍

  • @09shirish
    @09shirish 6 лет назад

    Thanks for your valuable guidance !!

  • @samuelkodjoe1645
    @samuelkodjoe1645 4 года назад

    powerful wisdom shared!!! love it!!

    • @LeilaGharani
      @LeilaGharani  4 года назад +1

      Thanks Samuel! Hope it will come in handy.

  • @johnborg6005
    @johnborg6005 6 лет назад

    Thanks Leila. Very helpful for my work :)

    • @LeilaGharani
      @LeilaGharani  6 лет назад

      Great! thanks for your comment John.

  • @processengineer5088
    @processengineer5088 4 года назад

    You have amazing skills...

  • @gulfway111
    @gulfway111 6 лет назад

    Thank you for great short lessons

  • @internet_wanderer8316
    @internet_wanderer8316 4 года назад

    Too good. Keep going. Thanks.

  • @44.7b.kaharaditya6
    @44.7b.kaharaditya6 6 лет назад

    Great job, Very Informative knowledge

  • @nazmulkalam9859
    @nazmulkalam9859 4 года назад

    Thanks! Helpful indeed.

  • @WWShorter
    @WWShorter 5 лет назад +2

    Thanks for your insightful and easy to understand tutorials. There may be another way to hide data rather than use the font color of the background. When setting the formatting, use a custom setting using three semi-colons; e.g. “;;;”. The cell will appear blank even though the cell contains your content.

    • @nkoketsengkonopi6316
      @nkoketsengkonopi6316 11 месяцев назад

      True but the only problem with this solution is that you cannot use it in a formula. You would have to do this manually for all the cells returning NA.

  • @katerina6495
    @katerina6495 5 лет назад

    Great Video Leila, thank you

  • @chatkishore
    @chatkishore 2 года назад

    Thanks for sharing this. Is it possible also mention the budget YTD to actual?

  • @Waragog
    @Waragog 3 года назад

    Thank you!

  • @Detailedtravelers
    @Detailedtravelers 6 лет назад

    Excellent lesson thank you.

  • @TanzanianRoots
    @TanzanianRoots 5 лет назад +1

    3:45am. Im saved. My Hero :)

  • @RaviVerma-zp2fz
    @RaviVerma-zp2fz Год назад

    You are a magician

  • @SyedMuzammilMahasanShahi
    @SyedMuzammilMahasanShahi 2 года назад

    Thanks for the share.

  • @mmc9305
    @mmc9305 6 лет назад

    Hi Leila, thanks for sharing. I really enjoy your videos. Could you also do some video(s) for Get & Transform + Data Model + Power Pivot? A combination tutorial of the 3 would be awesome. Thanks.

    • @LeilaGharani
      @LeilaGharani  6 лет назад

      Thank you. Glad you like the videos. I don't do PQ videos yet - but Mike from ExcelisFun and Oz du soleil (Excel on Fire) have great RUclips channels that cover all this. Make sure you check them out.

  • @rudi-gruber
    @rudi-gruber 6 лет назад

    This is really helpful. Thx a lot

  • @zipp141
    @zipp141 6 лет назад

    Great video. Thanks a lot.

  • @CarlosAguilar-xw7ot
    @CarlosAguilar-xw7ot 5 лет назад +1

    Hi Leila, i think you can also hide the "n/a" using IF.ERROR in the begining of the formula. Thanks for sharing your knowledge

  • @salehmohammad5170
    @salehmohammad5170 3 года назад

    Beautiful leila

  • @PraveenKumar-hv9is
    @PraveenKumar-hv9is 6 лет назад

    Super thanks for you new tricks....

    • @LeilaGharani
      @LeilaGharani  6 лет назад

      My pleasure Praveen. Thanks for watching.

  • @henryleonrivera7385
    @henryleonrivera7385 4 года назад

    Excelente miss.

  • @neranjankarunaratne1690
    @neranjankarunaratne1690 4 года назад

    Thanks !

  • @Otisawide
    @Otisawide 3 года назад

    Thank you

  • @andylenihan9738
    @andylenihan9738 3 года назад

    Hi Leila, is it possible to remove the big line drop and subsequent zeros on a stacked line pivot chart?

  • @huseinshajrawi8455
    @huseinshajrawi8455 6 лет назад

    Thank you Laila, awesome

  • @elisacarari4750
    @elisacarari4750 3 года назад

    Leila, is it possible to overcome overlapping data labels in line chart with multiple series?

  • @ahmedramadan4837
    @ahmedramadan4837 3 года назад

    thank you

  • @Dev_Bartwal
    @Dev_Bartwal 6 лет назад

    Amezing topic LG
    Your class method is really meaning full and suitable... thanks LG ❣️

    • @LeilaGharani
      @LeilaGharani  6 лет назад +1

      Charts are one of my favorite topics :) Thanks for your comment and feedback.

    • @Dev_Bartwal
      @Dev_Bartwal 6 лет назад

      Leila Gharani your welcome Lg
      Plzz share scroll chart bar if possible

    • @LeilaGharani
      @LeilaGharani  6 лет назад

      I've added it to my list. Thanks for the suggestion.

  • @Sal_A
    @Sal_A 6 лет назад

    Very useful technique :)

  • @sandipgumtya130
    @sandipgumtya130 4 года назад

    Hi @leila: Suppose I have only one data series, Actual profit which changes as per the month selection. but the months in X-axis does not update it is till Dec only. Can it also be updated as per the month selection i.e. X-axis will show months what is selected.

  • @estrouse123
    @estrouse123 Год назад

    Very helpful

  • @prashantsapale3822
    @prashantsapale3822 2 года назад

    Thanks

  • @jbcanlas
    @jbcanlas 5 лет назад

    Awesome!

  • @lebronimad9941
    @lebronimad9941 6 лет назад

    Merci beaucoup Leila.....Thnx so much ^_^

  • @tamim2545
    @tamim2545 6 лет назад

    Thank you very much

  • @81039178
    @81039178 4 года назад

    Hi Leila,
    What if the first 3 and last 3 values for both curves are empty but eventually may be values??
    How can I tell my graph to extend the middle values?

  • @phatnq2002
    @phatnq2002 3 года назад

    Thanks for your tutor. But I have a question:
    If the month is from Jan to Oct, the "Actual label" is displayed well, but not if accidentally select Nov or Dec. How to solve this?

  • @saifahmed5246
    @saifahmed5246 6 лет назад

    great thanks a lot Leila

  • @joefromdc
    @joefromdc 6 лет назад

    Great video

  • @sudhansugrahacharya7094
    @sudhansugrahacharya7094 6 лет назад

    Thank you madam all your videos are very educative, I would request you to make a video on macro VB language..

    • @LeilaGharani
      @LeilaGharani  6 лет назад

      You're very welcome Sudhansu. Glad you like the content. Yes - I'm currently working on my online VBA course. Due out hopefully in March. I will for sure put VBA content on RUclips as well. Coming up soon.

  • @shaikhzahid2363
    @shaikhzahid2363 6 лет назад

    Awesome trick

  • @backendadmin1217
    @backendadmin1217 5 лет назад

    You are awesome... 😘😘😘

  • @eng.hafizhabibhabib1268
    @eng.hafizhabibhabib1268 5 лет назад

    many thanks

  • @stuksy4321
    @stuksy4321 2 года назад

    so smart!

  • @ralfprechtel2966
    @ralfprechtel2966 5 лет назад

    Hi Leila, great chart! May I suggest a small improvement? If you select November or December, you will have a drop in the chart. I adjusted the formulas a little to avoid this problem:
    =WENN(ODER(C10="";ANZAHL2($B$10:B10)>VERGLEICH($D$8;Months;0));NV();C10)
    =WENN(UND(ISTFEHLER($E11);$E10"NV()");$E10;NV())
    You just have to change the cells to your sheet.
    Kind regards, Ralf

    • @harshanaweragama270
      @harshanaweragama270 4 года назад +2

      is there any way that you can type this in English.. finding it difficult to understand the formula.

  • @eng.hafizhabibhabib1268
    @eng.hafizhabibhabib1268 5 лет назад

    Very good

  • @user-cu5jr6eb4y
    @user-cu5jr6eb4y 3 месяца назад

    Is there is any alternative methods? I have sevelar data coloums. I just want to omit data beyond give month(want to avoid falling to zeros after given month). Please reply.

  • @nagesh530
    @nagesh530 4 года назад

    Hi Leila, Is there a way to hide the line in a line chart, for example, I plot growth 2017 2018 2019 for one country in x-axis and again show another country growth for 2017 2018 2019 in X-axis, the problem is it shows a continuous line from 2019(data ends for the first country) to 2017(when the data for the second country begins). Thanks

  • @hosseinhosseinpoor4845
    @hosseinhosseinpoor4845 3 года назад

    thanks thanks

  • @salamamohammad7276
    @salamamohammad7276 4 года назад

    To avoid drop to zero, I use this IF formula format: If(plot value="",NA(),plot value).

  • @AlokMishra2
    @AlokMishra2 5 лет назад

    Please suggest how to make s curve

  • @chamindabasnayake4844
    @chamindabasnayake4844 6 лет назад

    Great !

  • @tlee7028
    @tlee7028 2 года назад

    Hi Leila, I have Pivot Line Chart, how do i prevent a line series from dropping to Zero?

  • @bijaykr4502
    @bijaykr4502 6 лет назад

    In line chart can i manage the minimum start point and max point in axis and make it dynamic. I know you touched this in one of the video but i cant find it. I do not want the axis starting with zero but start with the minim value of the series and the maximum is the max value of the series. And i want to make it dynamic so that based on my series axis gets adjusted to min and max. Thanks for educational videos.

    • @LeilaGharani
      @LeilaGharani  6 лет назад

      Hi - I did this for the secondary axis once. Unfortunately, you cannot do this automatically (yet) for the primary axis. You can either manually set it or let Excel do it for you. There is a uservoice on this which I'm supporting. If you'd like to see this feature implemented in the next versions of Excel, please click on this link and press the vote button: excel.uservoice.com/forums/304921-excel-for-windows-desktop-application/suggestions/9046207-link-the-min-and-max-values-of-a-chart-axis-to-cel

  • @UbaidUllah-nj5et
    @UbaidUllah-nj5et 6 лет назад

    Hi mam...such a nice video and explanation...mam i have started to visit mr.excel.com and started reading peoples qureies and answer to them ...as per ur instructions mam...

    • @LeilaGharani
      @LeilaGharani  6 лет назад +1

      Thanks for your comment Ubaid! That sounds great! Way to go :)
      I find that every time I go over there with the intention of answering questions, I end up learning more.... :)

    • @UbaidUllah-nj5et
      @UbaidUllah-nj5et 6 лет назад

      Same here mam...lots of questions plus lots of lerning there mam...

  • @punchbuddies220
    @punchbuddies220 6 лет назад +1

    Kiss kiss to you, Lei! Amazing!

  • @pumpkhim
    @pumpkhim 5 лет назад

    Hi Leila, I have a problem here. When i change the B8 to other column, it will now show NA for future month. Please help me, I don't understand what when wrong.

  • @adolfohc78
    @adolfohc78 6 лет назад

    Hi Leila, thanks for your videos. I follow you here on RUclips and have all your courses on Udemy! I'm struggling mightily with one little thing that should be fairly simple only if Excel have include it in its functionality. I tried to use the methods used on this video but not getting it right. I want to show just the data labels for the start and end of each line for a line chart with multiple categories. I know that I can just select the data points and show the labels but this will be a fixed solution, I want to do it more flexible in case more years are added so the label "moves" with the year. Do you have any video on this? Help please! Thanks!

    • @LeilaGharani
      @LeilaGharani  6 лет назад

      Hi Adolfo - happy to see you here too :) The start can be fixed right? For the end to be dynamic and have your chart update automatically, you could possibly turn your data into an Excel table and for the dynamic label add a similar formula: =IF(ROWS([Year])-(ROW([@Year])-ROW($A$3))=0,[@Label],NA()) Whereas row A3 is the header of the table. This gives you #NA in all the cells except the last one..... It's a good idea for a video! I'll add this to my list. Thanks for your comment.

  • @DK_85
    @DK_85 6 лет назад

    Great video! One advice: it is much easier and faster to use the "iferror(if(..);"") function to hide the #nv's

    • @LeilaGharani
      @LeilaGharani  6 лет назад +1

      Yes - but then the line chart wouldn't work properly. This is one of the few times we actually need the NVs in the cells :)

    • @DK_85
      @DK_85 6 лет назад

      Leila Gharani
      Oh yes, thought too fast and too wrong:D You are right! Sorry

    • @LeilaGharani
      @LeilaGharani  6 лет назад

      No problem - happens to me too :)

  • @Rohit-nb8nf
    @Rohit-nb8nf 5 лет назад

    You should have showed how did u initially start the pivot graph by taking all values ,,

  • @josephjoachim8755
    @josephjoachim8755 Месяц назад

    Suppose the chart is create from pivot table (Pivot chart) how do you handle that?