Automatically Skip Blanks in Excel Charts with Formulas (ignore gaps in Excel chart axis)

Поделиться
HTML-код
  • Опубликовано: 7 июл 2024
  • Join 400,000+ professionals in our courses here 👉 link.xelplus.com/yt-d-all-cou...
    In this video I show you how to dynamically ignore blank dates and errors in charts. This trick doesn't just apply to dates, but to any data set that has gaps in it and you'd like Excel to completely ignore the gaps, even for cases where you have values in front of the gaps.
    ⬇️ Download the workbook here: pages.xelplus.com/remove-gaps...
    Key Learning Points:
    - Dynamic Formula Approach: Learn a dynamic method for ignoring blank cells and error values in both X and Y axes of Excel charts.
    - Data Preparation Table: Understand how to create a dense data preparation table that filters out blanks and errors, providing clean data for charting.
    - Innovative Use of Index Formula: Explore how the Index formula can efficiently return dates and numbers, filtering out unwanted cells.
    - Advanced Excel Techniques: Delve into the use of advanced functions like Aggregate and Rows, and how they contribute to accurate data filtering.
    - Creating Dynamic Charts: Step-by-step guide on creating dynamic charts that automatically update with your data.
    - Utilizing Name Manager: Learn the crucial role of Name Manager in creating dynamic charts and how to set it up effectively.
    - Practical Application and Testing: See the formulas in action with practical examples, ensuring your chart responds dynamically to changes in data.
    This video shows you how to use the Aggregate functions, Index & Match and Name Manager to get the desired result automatically.
    Links to related videos:
    Part 1: Manual approach to removing gaps in charts: • Skip Dates in Excel Ch...
    Index & Match basics: • How to use Excel Index...
    Index & Match advanced: • Index Match Advanced: ...
    Changing Chart Ranges with Index: • How to Create a Dynami...
    ★ My Online Excel Courses ► courses.xelplus.com/
    ➡️ 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

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

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

    Grab the file I used in the video from here 👉 pages.xelplus.com/remove-gaps-in-charts-file

  • @dlswa0310
    @dlswa0310 2 года назад +2

    WOW! I have been wracking my brain trying to get my chart to be dynamic. I could not have done it without your help. Look at you go this video is 5 years old and still helping people.

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

    More simpler functions specially if your category axis has dates as in video - or other numbers - just not text:
    For sorting of dates: =IFERROR(SMALL($A$36:$A$60,ROWS($E$36:E36)),"")
    For sorting of values: =IF(E36="","",LOOKUP(E36,$A$36:$B$60))
    Thank you to Bill Szysz!
    And thank you to Mohamed:
    =IFERROR(AGGREGATE(15;6;($A$36:$A$60/$A$36:$A$60)*$A$36:$A$60;ROWS($A$36:A36));"")
    Appreciate the input from the Excel Online team for helping us all become better in Excel.

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

    You are a saint. Thank you soooo much.
    Dealing with thousands of cells and manually filtering, and deleting would mess up the order my code, but this solves it all.

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

    Leila you are not from this world. Legend!!

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

    People like Mike, Bill Szysz, Bill Gelen you and all the online excel team help all of us learn more and more. A Feast of Excel.

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

      That's very kind! I'm very glad to be part of the online Excel community. I have learnt so much from Mike & Bill & other Excel gurus out there - it's a great online Excel community. I like that term: "a Feast of Excel" :)

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

    You are pure gold!! it has never happened that I was looking for something in excel and I haven't found a solution to it in one of your videos!

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

    Thanks a lot, I 'm not a native English speaker but can understand your clip because you speak clearly and slowly. Your idiom is easy to understand so I love your clip.

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

    Exactly what I needed. Your solutions have saved me a lot of time over the years and taught me many interesting tricks in Excel. Thank you!!!

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

    love the way you take time to explain the logic of the function and how you design the solution - you are my go to Excel expert ....

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

    You are absolutely amazing!!!! Your step by step instruction has brought back my sanity.

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

    Used the formula to sort out dynamic cells for my dropdown list. It works amazingly well as my input cells are dynamic and so erratic. Full of spaces.

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

    Well done, Leila! Thank you, I really needed this info!

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

    For some strange reason, I couldn't get the FILTER function to work on dates. Good thing I found this video of yours. Thank you so much, Leila! 😃

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

    blew my mind. Exactly what I was looking for. Thank you for figuring this out.

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

    Excellent!!!...you made my day. Thank you Leila. Keep on helping people. God bless you.

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

    Just what I wanted, You're my first stop Guru

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

    Thank you so much for doing this. Please continue and keep up the awesome work.

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

    Thanks Leila! You're the absolute best!

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

    This is amazing, thank you!

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

    You made my day. Thanks!

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

    Your channel is a blessing. It is helping me in my presentations in my PhD. Thank you, Leila.

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

    I love you, my table had lots of blank rows but just at the end andwith the second part ot the video with the name ranges i was able to refresh my graph while ignoring all those blank rows a the end that I had to keep because my data changes

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

    Exactly what i needed! thanks

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

    This video needs a hashtag or other search handle for handling incongruous data. I think many people are looking for this topic. The dynamic charting is amazing and am surprised at what it can do

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

    WOAH WOAH WOAH !!! I was struggling for so long to get something like this and had watched so many tutorials but wasn't working. This solved :) Thank you so so much!!

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

    Thanks Leila! You're the best

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

    You did it again. Thank you!!!

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

    Thank you very much for your assistance!

  • @user-sn9mc7jt6n
    @user-sn9mc7jt6n Год назад

    Very useful. Thanks

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

    Superb! Thank you

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

    indeed more than amazing mohandesa leila and truly useful

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

    Thanks, simple intuitive video ,it help me to apply.

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

    Forever grateful for your videos. Please keep up the good work.

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

    This was a very informative video! Thank you for sharing this with us. I am wondering if you can apply this method to a pivot table? I tried to do this but my graph is still showing the blank fields. Any help will be much appreciated :)

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

    What a Beautiful Trick, Brilliant Formula and Super Awesome Video..... 1000 Likes for this Leila. Keep Up, Great Work.

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

    Thanks for the gap-less charting : )

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

    Saved my job!👌🏼🤓

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

    awesome. Keep up the great work.

  • @dr.imrankhanyousufzai4710
    @dr.imrankhanyousufzai4710 3 года назад

    Thanks a lot for the help

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

    Thank you for the explanation, since there are new O365 functions, can this be done a simpler way, please

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

    Thank you thank you thank you. Amazing!

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

    Thanks for this video. It was a great help.

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

    Good index session, I like it a lot 👍🏻👍🏻👍🏼

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

    You literally saved my life

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

    Thank you!!

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

    Love you Leila, you are awesome.. it is very helpful....

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

    Thank you

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

    this video is so useful to me that i have solved my sorting issues. thanks a lot....

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

    amaizing and simple...jejjjjj,thank you!

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

    Wow many thanks. I'm using this lecture for a presentation to my MD. Is it possible to create a dynamic graph that plots in the middle of the graph area? In other words I want to tell excel to plot data from a given column, however there is data in the middle of that column (column will update dynamically obviously) and I want it to plot that data only? Your response pointing me in the right direction would be deeply appreciated.

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

    TY very much

  • @user-lv3vo9ew2j
    @user-lv3vo9ew2j 6 лет назад +1

    What a genius woman !!

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

      Glad you like the video. The genius ones are the ones that programmed Excel :) I'm just a user - many thanks though for the compliment :)

    • @s.sathiyamoorthi6634
      @s.sathiyamoorthi6634 3 года назад

      What a genius woman having the brain of subtle understanding and having the heart to sharing it in simple Crystal clear communication.

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

    Thanks Leila. Now with the dynamic array on office 365, we could simply use the “filter” function for the data prep can’t we,? e.g., filter the date array when it is not blank.

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

    First, super channel! I thought I knew excel but I discovered a lot of tricks.
    Question though: I'm 3 years late on that so I don't expect an answer...but I'll try. The NA trick doesn't seem to work on a Bar Chart with percentages. How can I make it work for a Bar Chart? Thank you!

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

    thanks for the video but we have to add 1 to the agregate function as follows: agregate(15;3;row(X:Y);1)

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

    Hi Leila, Thank you so much for your tutorials!
    I appreciate you so much.
    I have a question on this one though, are you able to do the same formula for a table that has labels on the left side but a 0 value on the right?
    Example:
    Cash $40
    Debit Card $0
    Credit Card $250
    Savings $0
    Please help, thank you so much!!

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

    Please provide a video on dynamic sorting of text without using sort() or sortby()

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

    Thanks Leila :-)

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

      Thanks Bill - you're simply great! I've added your formulas to the comments and the workbook.

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

    Leila, have you ever heard rose diagram (used in geology)? Please show us how to do it please. @t
    Thanks in advance
    Your big fan

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

    This works well but when the "Dates" column is not actually dates but some text that is something like 2022 Q1. My data range is including some blank cells to allow for growth then my graph ends up with a large blank area at the end of my X-axis. It did however help me remove the quarters and years that had no data so that was very helpful!

    • @NicholasFalter00
      @NicholasFalter00 Год назад +1

      Try changing the formulas to use COUNTA instead of COUNT. After you do this, it should return the number of rows that are not blank, which then when used in the same formula in the video, removes the blanks. Hope this helps!

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

      @@NicholasFalter00 thanks, I'll give that a try

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

    Great

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

    thank's.

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

    Great video!
    I am struggling with adding two different lines within the same chart.. Do you have any workarounds to share?

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

      Do you need to break the line like in this video? ruclips.net/video/5nf8rucx80E/видео.html

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

      Thanks for the quick reply.
      I want to be able to compare actual vs budget with a dynamic x-axis. I believe the panel charts above is a bit too complicated. Is there no way to add another series?

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

      I do have a quiet complicated list of projects with different start and end dates with monthly reporting. I want to compare actual vs budget - therefore the method above seems to suit my needs. The only issue is that I am not able to add another data series (the monthly reported budget) to the chart..

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

    thanks thanks

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

    I keep getting #VALUE! for the name manager at 17:12, and i'm following step by step. It has the result of =E(1st number):E(2nd number), then when i press enter it says #VALUE!. Help!

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

    Hi Leila Gharani,
    Thanks for your video.
    Can I ask you a more things?
    I'm working on a scatter chart. When the user select the categories, the the chart will show this categories's data. E.g The user selected 2 categories, but there are 10 categories in total.
    Then the chart is shown 10 legends and 8 legends are no need.
    May I know how to remove the legend label when the user doesn't select it?
    Many thanks.

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

      Excel by default shows the legend for the series that it's plotting, even if they are invisible. OFFSET might be an option. To basically create a data preparation table that holds the data the user selects and then to use OFFSET together with name manager to create dynamic ranges....

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

    Continuing the play with this just the following works too! =SMALL($A$36:$A$60,ROWS($G$36:G36)). It would appear that the SMALL function ignores the zeros produced by the gaps, whereas actual zero values would be picked up! Go figure! Hope that helps.

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

      Hi Kevin - yes very true. The fact that we have sorted dates makes this approach feasible. Something I forgot while I was filming. That's why I appreciate the comments so much :)

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

    Hi Leila, love the video on closing the gaps. I was having a play and discovered that the formula could be shortened to this. =AGGREGATE(15,3,$A$36:$A$60,ROWS($A$36:A36)). When you test the return of the values in the array argument you get the following - {42736;42737;0;42739;42740;42741;42742;42743;0;42745;42746;42747;0;0;0;42751;42752;42753;42754;0;42756;0;0;0;0}
    So where the blanks are you get a zero. By using the k value increment with the ROWS($A$36:A36) , this seems to work.
    Pleas let me know if I have got this wrong, it seems to work okay!

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

      Hi Kevin - You're absolutely right. No need for index since we are dealing with dates here :) It only occurred to me afterwards. Thank you for sharing. It's always fun to play around - right? That's what I love with Excel - the fun doesn't end.

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

    Hi Leila, what if suppose i have 2017 actual and 2018 budget (2 category in the X axis, I wanted a line chart but the problem is, it causes a gap at dec 17 actual and jan18 budget. How do i joint them together?

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

      You have to overlap your data set for the month that's causing the gap. So for Actual series, for Jan 2018 - you need the same number as you have in your budget series for January..this causes the gap to close.

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

    does this work with text, or formula to get form another worksheet?

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

    多謝!

  • @Christian-uz3qs7fe5g
    @Christian-uz3qs7fe5g 5 лет назад

    How do you skip columns instead of rows

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

    what if the my data are in text format then what can be done ?

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

    Can it be done with newest dates on top automatically?

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

    What if you continue to enter cells beyond the range of the Index? This formula doesn't pick up cells exceeding the range. Is there a way, besides a table to continue expanding the Index and Count range?

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

      Not that can think of, besides dragging your formulas all the way down to the point where you think there might be numbers and then maybe include a few more cells on top.....

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

    Is it possible to skip zeros too?

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

    Leila, what microphone do you use? You sound perfect :)

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

      Thank Malina. I use Edutige lavalier mic: amzn.to/2y3Yq5y.

  • @86Maryj
    @86Maryj 3 года назад

    Hi instead of blanks if its text string mentioned how to exclude that string pls assist

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

    How do you apply this if the formula I'm starting with is:
    If(e3=f3,c3,"")
    I want the above formula to skip blanks.

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

    can this also apply to Bar chart?

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

    Does it have to be so complicated!!! All i need to do is ignore 0 when i query a table

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

    How do you manage these blanks when data is missing from a pivot table and you are creating a pivot chart? Sorry i'm just a beginner, if this is a very simple solution

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

    Hello, this is a little misleading graphics , if we are working with time series data. Fir example, if there is no production in the third month, the value should appear as zero. In this chart , if we skip the month, it may appear that there is continuous product every month

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

    I get an Num Error when using the Formula

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

      Try downloading the workbook (link is in the description of the video) and cross-checking with own formulas...

  • @Wosso-Spiritas
    @Wosso-Spiritas 2 года назад

    Leila - if one date is repeated the result is no longer correct

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

    👍👍👍

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

    This solution is useless for line graphs with more than one series. Excel simply doesn’t recognise values associated with vectors set up in the Name Manager section, hence, not useful