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

  Рет қаралды 141,747

Leila Gharani

Leila Gharani

6 жыл бұрын

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 жыл бұрын
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.
@saikarlsass710
@saikarlsass710 Жыл бұрын
Leila, it's just magic what your doing with Excel. Awsome!
@speedylogic
@speedylogic 6 жыл бұрын
Thanks Leila, great content, great presentation, simple, elegant and very useful.
@excelisfun
@excelisfun 6 жыл бұрын
Thanks for the Actual charting fun : )
@LeilaGharani
@LeilaGharani 6 жыл бұрын
You're welcome Mike :)
@FinnJenkins
@FinnJenkins 2 жыл бұрын
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.
@LeilaGharani
@LeilaGharani 2 жыл бұрын
Glad it helped, Alex!
@nz2555
@nz2555 Жыл бұрын
Amazing tutorial!
@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.
@yeddyable
@yeddyable 2 жыл бұрын
Wow this what i've been looking for... Thanks...
@saraz9179
@saraz9179 3 ай бұрын
You explain so well and make it so simple Thank you مرسی
@Max_-
@Max_- 5 жыл бұрын
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!
@dmarti47
@dmarti47 2 жыл бұрын
Thank you, Leila. This helped a lot.
@MohammedShajialpetta
@MohammedShajialpetta 4 жыл бұрын
Great thanks for productive lessons in excel.. you are an Angel for people need to learn ..
@AbhishekTripathidce
@AbhishekTripathidce 4 жыл бұрын
Awesome video. Thank You LG .
@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!
@LeilaGharani
@LeilaGharani 5 жыл бұрын
That's very kind! Thank you.
@stephengibson100
@stephengibson100 5 жыл бұрын
Fantastic...again. Thanks Leila
@muazabdullah3124
@muazabdullah3124 3 жыл бұрын
Thanks Ms. Gharani for saving my day! Seeing #N/A in tables isn't giving me aches anymore!
@LeilaGharani
@LeilaGharani 3 жыл бұрын
My pleasure 😊
@bricc322
@bricc322 6 жыл бұрын
Such awesome and smart tricks! Thank you, Leila!
@LeilaGharani
@LeilaGharani 6 жыл бұрын
Glad you like it Celia. You're very welcome.
@matthewbrierley88
@matthewbrierley88 3 жыл бұрын
Leila, you're a legend.
@internet_wanderer8316
@internet_wanderer8316 4 жыл бұрын
Too good. Keep going. Thanks.
@rajnajat
@rajnajat 2 жыл бұрын
You always give a simple solution to complex problems. Thanks and God bless !
@LeilaGharani
@LeilaGharani 2 жыл бұрын
Our pleasure!
@ashpatacpan6215
@ashpatacpan6215 3 жыл бұрын
I need a Leila Gharani by my side everyday. Love your vids ❤️❤️❤️ The best!
@gauravmore1908
@gauravmore1908 2 жыл бұрын
Exactly what I was looking for 👍
@nazmulkalam9859
@nazmulkalam9859 4 жыл бұрын
Thanks! Helpful indeed.
@Waragog
@Waragog 3 жыл бұрын
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....
@robertojunqueira
@robertojunqueira 6 жыл бұрын
Exactly what I needed! Congratulations
@LeilaGharani
@LeilaGharani 6 жыл бұрын
Perfect!
@terrymadeley
@terrymadeley 6 жыл бұрын
Very helpful, thanks a lot. And a great tip about hiding the NA from view too.
@LeilaGharani
@LeilaGharani 6 жыл бұрын
You're very welcome Terry.
@craigvoss1468
@craigvoss1468 6 жыл бұрын
Another great video. You're awesome.
@LeilaGharani
@LeilaGharani 6 жыл бұрын
You're very welcome Craig :)
@processengineer5088
@processengineer5088 4 жыл бұрын
You have amazing skills...
@arnabdebnath1223
@arnabdebnath1223 4 жыл бұрын
Was really not expecting to find a solution to this - thank you
@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 :).
@SyedMuzammilMahasanShahi
@SyedMuzammilMahasanShahi 2 жыл бұрын
Thanks for the share.
@samuelkodjoe1645
@samuelkodjoe1645 4 жыл бұрын
powerful wisdom shared!!! love it!!
@LeilaGharani
@LeilaGharani 4 жыл бұрын
Thanks Samuel! Hope it will come in handy.
@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.
@09shirish
@09shirish 6 жыл бұрын
Thanks for your valuable guidance !!
@LeilaGharani
@LeilaGharani 6 жыл бұрын
You're very welcome Shirish.
@manuelvalbuena2755
@manuelvalbuena2755 Жыл бұрын
god bless you, i kept having that drop to zero... awesome!
@esthergrace3516
@esthergrace3516 4 жыл бұрын
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.
@RaviVerma-zp2fz
@RaviVerma-zp2fz Жыл бұрын
You are a magician
@salehmohammad5170
@salehmohammad5170 3 жыл бұрын
Beautiful leila
@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 жыл бұрын
Thank you Ismail for your kind comment! Glad you like it :)
@rienthongw
@rienthongw 6 жыл бұрын
This is a great VDO. Thank you for sharing.
@LeilaGharani
@LeilaGharani 6 жыл бұрын
You're very welcome.
@neranjankarunaratne1690
@neranjankarunaratne1690 4 жыл бұрын
Thanks !
@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
@katerina6495
@katerina6495 5 жыл бұрын
Great Video Leila, thank you
@LeilaGharani
@LeilaGharani 5 жыл бұрын
You're very welcome Katerina.
@feliperodriguessousa5759
@feliperodriguessousa5759 4 жыл бұрын
Girl, I want to be just like when I grow up! You're truly amazing!
@Otisawide
@Otisawide 3 жыл бұрын
Thank you
@johnborg6005
@johnborg6005 6 жыл бұрын
Thanks Leila. Very helpful for my work :)
@LeilaGharani
@LeilaGharani 6 жыл бұрын
Great! thanks for your comment John.
@henryleonrivera7385
@henryleonrivera7385 4 жыл бұрын
Excelente miss.
@gulfway111
@gulfway111 6 жыл бұрын
Thank you for great short lessons
@LeilaGharani
@LeilaGharani 6 жыл бұрын
You're very welcome Abdul.
@zipp141
@zipp141 6 жыл бұрын
Great video. Thanks a lot.
@LeilaGharani
@LeilaGharani 6 жыл бұрын
You're very welcome :)
@estrouse123
@estrouse123 Жыл бұрын
Very helpful
@rudi-gruber
@rudi-gruber 6 жыл бұрын
This is really helpful. Thx a lot
@LeilaGharani
@LeilaGharani 6 жыл бұрын
You're very welcome Rudolf.
@Detailedtravelers
@Detailedtravelers 6 жыл бұрын
Excellent lesson thank you.
@LeilaGharani
@LeilaGharani 6 жыл бұрын
You're welcome Darrin.
@ahmedramadan4837
@ahmedramadan4837 3 жыл бұрын
thank you
@44.7b.kaharaditya6
@44.7b.kaharaditya6 6 жыл бұрын
Great job, Very Informative knowledge
@LeilaGharani
@LeilaGharani 6 жыл бұрын
Thank you Manoj for your comment.
@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 :)
@stuksy4321
@stuksy4321 2 жыл бұрын
so smart!
@johnn5728
@johnn5728 4 жыл бұрын
Great videos I’m a senior analyst and some of these tips are awesome👍👍👍
@LeilaGharani
@LeilaGharani 4 жыл бұрын
Great to hear!
@huseinshajrawi8455
@huseinshajrawi8455 6 жыл бұрын
Thank you Laila, awesome
@LeilaGharani
@LeilaGharani 6 жыл бұрын
You're very welcome Husein.
@jbcanlas
@jbcanlas 5 жыл бұрын
Awesome!
@LeilaGharani
@LeilaGharani 5 жыл бұрын
Glad you like it Jeffrey!
@backendadmin1217
@backendadmin1217 5 жыл бұрын
You are awesome... 😘😘😘
@TanzanianRoots
@TanzanianRoots 5 жыл бұрын
3:45am. Im saved. My Hero :)
@PraveenKumar-hv9is
@PraveenKumar-hv9is 6 жыл бұрын
Super thanks for you new tricks....
@LeilaGharani
@LeilaGharani 6 жыл бұрын
My pleasure Praveen. Thanks for watching.
@prashantsapale3822
@prashantsapale3822 2 жыл бұрын
Thanks
@joefromdc
@joefromdc 6 жыл бұрын
Great video
@LeilaGharani
@LeilaGharani 6 жыл бұрын
Thanks Joe!
@Sal_A
@Sal_A 6 жыл бұрын
Very useful technique :)
@LeilaGharani
@LeilaGharani 6 жыл бұрын
Thanks Sal :)
@saifahmed5246
@saifahmed5246 6 жыл бұрын
great thanks a lot Leila
@LeilaGharani
@LeilaGharani 6 жыл бұрын
You're welcome Saif.
@tamim2545
@tamim2545 6 жыл бұрын
Thank you very much
@LeilaGharani
@LeilaGharani 6 жыл бұрын
You're very welcome Tamim.
@shaikhzahid2363
@shaikhzahid2363 6 жыл бұрын
Awesome trick
@LeilaGharani
@LeilaGharani 6 жыл бұрын
Glad you like it Shaikh :)
@eng.hafizhabibhabib1268
@eng.hafizhabibhabib1268 5 жыл бұрын
many thanks
@LeilaGharani
@LeilaGharani 5 жыл бұрын
You're very welcome!
@Dev_Bartwal
@Dev_Bartwal 6 жыл бұрын
Amezing topic LG Your class method is really meaning full and suitable... thanks LG ❣️
@LeilaGharani
@LeilaGharani 6 жыл бұрын
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.
@eng.hafizhabibhabib1268
@eng.hafizhabibhabib1268 5 жыл бұрын
Very good
@LeilaGharani
@LeilaGharani 5 жыл бұрын
Glad you like it!
@chatkishore
@chatkishore 2 жыл бұрын
Thanks for sharing this. Is it possible also mention the budget YTD to actual?
@hosseinhosseinpoor4845
@hosseinhosseinpoor4845 3 жыл бұрын
thanks thanks
@chamindabasnayake4844
@chamindabasnayake4844 6 жыл бұрын
Great !
@LeilaGharani
@LeilaGharani 6 жыл бұрын
Thank you for watching :)
@WWShorter
@WWShorter 5 жыл бұрын
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.
@lebronimad9941
@lebronimad9941 6 жыл бұрын
Merci beaucoup Leila.....Thnx so much ^_^
@LeilaGharani
@LeilaGharani 6 жыл бұрын
You're very welcome Lebron.
@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 KZbin channels that cover all this. Make sure you check them out.
@andylenihan9738
@andylenihan9738 4 жыл бұрын
Hi Leila, is it possible to remove the big line drop and subsequent zeros on a stacked line pivot chart?
@elisacarari4750
@elisacarari4750 3 жыл бұрын
Leila, is it possible to overcome overlapping data labels in line chart with multiple series?
@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.
@garzagarza01
@garzagarza01 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?
@punchbuddies220
@punchbuddies220 6 жыл бұрын
Kiss kiss to you, Lei! Amazing!
@franciscojaviergomezrodrig8325
@franciscojaviergomezrodrig8325 6 жыл бұрын
Me encantas 😍
@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 KZbin as well. Coming up soon.
@CarlosAguilar-xw7ot
@CarlosAguilar-xw7ot 5 жыл бұрын
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
@AlokMishra2
@AlokMishra2 5 жыл бұрын
Please suggest how to make s curve
@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?
@user-ng2hy2zu3l
@user-ng2hy2zu3l 5 ай бұрын
درود بر شما
@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
@user-cu5jr6eb4y
@user-cu5jr6eb4y 4 ай бұрын
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.
@tlee7028
@tlee7028 2 жыл бұрын
Hi Leila, I have Pivot Line Chart, how do i prevent a line series from dropping to Zero?
@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 жыл бұрын
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...
@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 жыл бұрын
is there any way that you can type this in English.. finding it difficult to understand the formula.
@salamamohammad7276
@salamamohammad7276 4 жыл бұрын
To avoid drop to zero, I use this IF formula format: If(plot value="",NA(),plot value).
@josephjoachim8755
@josephjoachim8755 Ай бұрын
Suppose the chart is create from pivot table (Pivot chart) how do you handle that?
@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.
@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 жыл бұрын
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 :)
@TheJoshtheboss
@TheJoshtheboss Жыл бұрын
I appreciate the creativity, but would it not be better just to use pivot chart?
DEFINITELY NOT HAPPENING ON MY WATCH! 😒
00:12
Laro Benz
Рет қаралды 23 МЛН
How to PREVENT a dynamic LINE CHART from DROPPING TO ZERO in Excel
5:31
Excel Variance Charts: Actual to Previous Year or Budget Comparisons
14:18
4 Hidden Excel Dashboard Design Tips for Beautiful Reports
11:09
Leila Gharani
Рет қаралды 533 М.
Conditional Formatting in Line Chart
7:53
PK: An Excel Expert
Рет қаралды 46 М.
Create a Dynamic Chart with Named Ranges, INDEX and MATCH
20:16
Make Impressive McKinsey Visuals in Excel!
16:47
Kenji Explains
Рет қаралды 272 М.
3 REALLY Useful Excel Chart Tips You May Have Missed
5:53
Leila Gharani
Рет қаралды 87 М.