Awesome Trick to Get Dependent Drop Downs in Excel (works for multiple rows too)

แชร์
ฝัง
  • เผยแพร่เมื่อ 11 ก.พ. 2024
  • Need dependent drop downs or cascading drop-downs in Excel? Use this simple but elegant approach.
    This technique relies on the powerful & new XLOOKUP function.
    Learn more:
    Tutorial with sample workbook - chandoo.org/wp/how-to-create-...
    Full Excel Course - chandoo.org/wp/excel-school-p...
  • วิทยาศาสตร์และเทคโนโลยี

ความคิดเห็น • 105

  • @Jim-co7dv
    @Jim-co7dv 2 หลายเดือนก่อน +8

    I've been killing myself for 8 hours and 5 other videos...to the point of tears. I don't know how you pulled it off, but your method worked the first time I tried it. Superlative. Thank you.

  • @grantm9905
    @grantm9905 3 วันที่ผ่านมา

    You have saved me, my precious Excel Guru!
    THANK YOU!

    • @chandoo_
      @chandoo_  3 วันที่ผ่านมา

      Happy to help!

  • @GrainneDuggan_Excel
    @GrainneDuggan_Excel 3 หลายเดือนก่อน +1

    Thanks so much - this is the simplest solution I have seen for this problem! Quite a lot easier to implement!

  • @SharonShafiq
    @SharonShafiq หลายเดือนก่อน

    You are amazing! I've been trying to do this all day!

  • @alvinazocar1889
    @alvinazocar1889 3 หลายเดือนก่อน +5

    Thanks a lot! An explanation in less than 10 minutes, how wonderful 🎉

  • @simonvaughan5654
    @simonvaughan5654 3 หลายเดือนก่อน +1

    Incredible as always Chandoo, I didn't realise I needed this in my life until your video. Thank you!

    • @chandoo_
      @chandoo_  3 หลายเดือนก่อน +1

      "I didn't realise I needed this in my life until your video" should be my channel's tag line.
      😂

  • @chrism9037
    @chrism9037 3 หลายเดือนก่อน +1

    Excellent, thanks Chandoo!

  • @alysonjwilson
    @alysonjwilson 3 หลายเดือนก่อน

    Such a cool feature! Thank you.

  • @Mathematica1729
    @Mathematica1729 3 หลายเดือนก่อน +3

    Thank you ! Could you also provide the worksheet for practice?

  • @umairarshad8541
    @umairarshad8541 2 หลายเดือนก่อน

    Than you so much Chandoo. Love from Karachi Pakistan.

  • @faridqanet4709
    @faridqanet4709 3 หลายเดือนก่อน +1

    Thanks a lot, that is what I needed for my dashboard.

  • @tsbcoutinho
    @tsbcoutinho 10 วันที่ผ่านมา

    Thank you so much!!! Could you make a video explaining how to conditional format, in this situation? I didn't understand from the videos you have on conditional formating. Which formula to use in the rule of conditional formating? Because I have to relate the value to a list. I don't know how to do this. And the way yours shows the error, was awesome!

    • @chandoo_
      @chandoo_  7 วันที่ผ่านมา

      Thanks for the comment. I am in the process of making CF video. Stay tuned.

  • @m.m.basetolimishkat5846
    @m.m.basetolimishkat5846 2 วันที่ผ่านมา

    Hello Chandoo. This is a very helpful video. I am wondering if can we use spin button from the developer tab instead of drop down list. For example: the first spin button will spin category and the second spin button will spin only those products of a category selected by first spin. Thanks

  • @sudheerreddy4u
    @sudheerreddy4u 3 หลายเดือนก่อน +1

    Thank you Chandu😊

  • @aynino
    @aynino 3 หลายเดือนก่อน +1

    This is brilliant, thanks for sharing!

    • @chandoo_
      @chandoo_  3 หลายเดือนก่อน

      Glad you enjoyed it!

  • @unnikrishnansanthosh
    @unnikrishnansanthosh 3 หลายเดือนก่อน

    cool solution, thank you for sharing

  • @CAKPRashique
    @CAKPRashique 3 หลายเดือนก่อน

    Excellent chandoo

  • @MashakaMalalo
    @MashakaMalalo 3 หลายเดือนก่อน

    Awesome explanation. Thank you

    • @chandoo_
      @chandoo_  3 หลายเดือนก่อน

      Glad it was helpful!

  • @_kc14
    @_kc14 2 หลายเดือนก่อน +2

    Could u share how u automatically highlight row with stale data?

  • @rajn2079
    @rajn2079 หลายเดือนก่อน

    Excellent❤

  • @arbazahmad7177
    @arbazahmad7177 3 หลายเดือนก่อน +1

    Excellent 🎉.. specially the Pushpa t-shirt..
    Thanks for sharing 👍

    • @chandoo_
      @chandoo_  3 หลายเดือนก่อน

      My pleasure 😊

  • @roberttaylor3594
    @roberttaylor3594 3 หลายเดือนก่อน

    excellent t-shirt!

  • @Hudtndklkzl
    @Hudtndklkzl 3 หลายเดือนก่อน

    Awesome video followed by awesome T Shirt :)

    • @chandoo_
      @chandoo_  3 หลายเดือนก่อน

      Thanks so much!

  • @johnborg5419
    @johnborg5419 3 หลายเดือนก่อน

    Thanks Chandoo.
    Can you make similar with named ranges and using the indirect function??

  • @user-ri7sw2wt6f
    @user-ri7sw2wt6f 3 หลายเดือนก่อน

    Fabulous!

  • @abdelazizallam
    @abdelazizallam 3 หลายเดือนก่อน

    Thanks a lot!

  • @edwinyulianto3660
    @edwinyulianto3660 2 หลายเดือนก่อน

    Thank you.. thank you

  • @jacklynrochellealla7717
    @jacklynrochellealla7717 หลายเดือนก่อน

    new sub here, so cool!!! Thank you

    • @chandoo_
      @chandoo_  หลายเดือนก่อน

      Welcome!

  • @suryasabniveesu6946
    @suryasabniveesu6946 3 หลายเดือนก่อน +2

    Like how we teach our kids A,B,C,D the same way he explains the concepts

  • @arclightimages6293
    @arclightimages6293 16 วันที่ผ่านมา

    Where in your other "Conditional Formatting" video do you discuss how to highlight STALE data?

  • @MiniMomentsDesh
    @MiniMomentsDesh 3 หลายเดือนก่อน +2

    Can you do this without using xlookup function , are there any possibility to do this same thing using index match function?

    • @chandoo_
      @chandoo_  3 หลายเดือนก่อน +2

      You can...
      Use this formula -
      =INDEX($J$5:$N$15,,MATCH(D5,$J$4:$N$4,0))

  • @OzDesi
    @OzDesi 3 หลายเดือนก่อน

    Hi Chandoo, This is great. Is it possible to do this in google sheets?

  • @gauravmaurya2125
    @gauravmaurya2125 3 หลายเดือนก่อน +1

    Amazing

  • @melissabaldwin1186
    @melissabaldwin1186 หลายเดือนก่อน

    Thank you so much, super helpful and so much easier than using the INDIRECT option. Is there a way to remove the blanks though in the drop-down for the second dependent list, that may not have have as many options as the others? (for example, Bars has a larger list than Bites, so how do we prevent the bites list to show so many blanks? I saw in your example that those "zeros' only resulted in one single blank, but for some reason mine results in many blanks). My list keeps defaulting to the blanks so unless you scroll up the user wouldnt see everything included in the dropdown list. Thanks!!

    • @chandoo_
      @chandoo_  หลายเดือนก่อน

      You are welcome :)
      Excel should automatically remove all those excess blanks (barring one). I suggest updating Excel or waiting a few months instead of writing complex formulas that remove the blanks.
      But if you want to go down that route, you can use OFFSET() with XLOOKUP and calculate how many items are there in your list (with COUNTA).

  • @rubengao1508
    @rubengao1508 2 หลายเดือนก่อน

    Thank you for your video. Is there a way to remove the blank rows in the data validation?

    • @chandoo_
      @chandoo_  2 หลายเดือนก่อน +1

      You can by using an OFFSET formula instead of XLOOKUP. But probably not worth the hassle.

    • @rubengao1508
      @rubengao1508 2 หลายเดือนก่อน

      @@chandoo_ a fair tradeoff. One blank row for the convenience of XLOOKUP embedded in the data validation.👍

  • @wariojosh
    @wariojosh 5 วันที่ผ่านมา

    Hello, is it possible that the Source in my List Data validation doesn't accept a fonction?

  • @Excelingtheeasyway
    @Excelingtheeasyway 3 หลายเดือนก่อน +2

    Hey Chandoo, I'm a huge fan. Thank you for your consistently great content. I have a question, can i also use the old "Indirect" function to achieve this? Where in the validation, list, =Indirect(D5). Also the categories would have been made named ranges..Bars, Bites etc? Hope you can help 🙏🏿

    • @chandoo_
      @chandoo_  3 หลายเดือนก่อน +1

      You can, but I no longer recommend it (as you need to first create all the names too). If you have Excel 365, use the trick I've demoed in this video.

    • @Excelingtheeasyway
      @Excelingtheeasyway 3 หลายเดือนก่อน +1

      @chandoo_ Thank you. I Do have 365. So I'll study this vid again...thank you again Uncle Chandoo 😀😀

  • @lakshmik6610
    @lakshmik6610 3 หลายเดือนก่อน +1

    Your t shirt is very good. Where you have bought??

  • @rajeshmajumdar4999
    @rajeshmajumdar4999 3 หลายเดือนก่อน +1

    Thanks

  • @johannadoyle4810
    @johannadoyle4810 23 วันที่ผ่านมา +1

    Hi, typed in the data as above on a seperate sheet naming it DATA. Entering formula =xlookup(D5,data!$A$1:$E$1,data!$A$2:$E$12), but error tells me "VALUE NOT AVAILABLE .....". Any help troubleshooting this problem would be appreciate, many thanks

    • @thevaliantrebel4338
      @thevaliantrebel4338 4 วันที่ผ่านมา

      Having a similar problem but in my case it returns a value if i only select 1 row but if i selct them all well i get the value option

  • @ronaksuvarna1432
    @ronaksuvarna1432 16 วันที่ผ่านมา

    Great Video , but how can we extend these to 4 levels or 5 Levels . Can you please let me know @chandoo

    • @chandoo_
      @chandoo_  16 วันที่ผ่านมา

      The process is same, you just need to layout the data. But I recommend limiting it to 3 levels and changing the data set up for your sanity 😊

  • @Im_Dheena
    @Im_Dheena 2 หลายเดือนก่อน

    Can anyone help me understand on the last point on how to go with the conditional formatting. Couldn't find it out.

  • @lpanades
    @lpanades 15 วันที่ผ่านมา

    Can I get these values from a table like I get using filter command?
    I will explain better:
    I get a table with the collumns: category; product; product size.
    I can choose the category and show only the producs from that category in the next drop dow and in the othe next I only wanna show the sizes of that product. And this can follows how long desired.

    • @chandoo_
      @chandoo_  15 วันที่ผ่านมา +2

      As of now, Excel data validation needs data to be present in a physical range or from a formula that can return ranges. So that means you have to use XLOOKUP (or OFFSET). FILTER doesn't return a range. It returns an array, so we can't use that as DV formula.

  • @luthfinugraha485
    @luthfinugraha485 หลายเดือนก่อน

    Does it applicable to Google sheets as well?

  • @ravikiran2345
    @ravikiran2345 3 หลายเดือนก่อน +1

    Content is as good as your t-shirt (taggede le😊)

    • @chandoo_
      @chandoo_  3 หลายเดือนก่อน

      🧔👋

  • @Hamari_roz_ki_kahani
    @Hamari_roz_ki_kahani 3 หลายเดือนก่อน

    Can it e done by hlookup in older versions of excel

  • @bindui5589
    @bindui5589 3 หลายเดือนก่อน

    Sir,please explain about semantic model

  • @rakeshmvora
    @rakeshmvora 3 หลายเดือนก่อน

    Dear Chandoo Sir… can you please make same kind of function idea for Microsoft 2019

  • @addylyne026
    @addylyne026 3 หลายเดือนก่อน

    Do you have a video on this that does not use xlookup? So that it can be done w/o excel 365.

    • @chandoo_
      @chandoo_  3 หลายเดือนก่อน

      The approach is same. Instead of XLOOKUP, use this formula in Data Validation screen.
      =INDEX($J$5:$N$15,,MATCH(D5,$J$4:$N$4,0))

  • @lifecycles9625
    @lifecycles9625 3 หลายเดือนก่อน

    Please can you do a video on changing text size of specific text in various cells within a worksheet? Is it possible?

  • @JerryIwuogu
    @JerryIwuogu 3 หลายเดือนก่อน

    Hello Chandoo please help me out here, I am trying to do this on google sheets, but I keep getting an invalid error response anytime I try entering the formula

  • @BigCliq
    @BigCliq 3 หลายเดือนก่อน

    Unrelated: I have a SQL question... I hope you can help out ...
    Inserting data into ms SQL server, theres an error response saying I can't insert more than 1000 rows...
    Please do you have a Syntax to help insert more than 1000 rows? Thanks.

  • @rockchicbabe
    @rockchicbabe หลายเดือนก่อน

    I tried a few other videos and got stuck. Thank ypu for explaining each step so clearly, I now have 3 level drop downs and it was so straightforward!🎉

    • @chandoo_
      @chandoo_  หลายเดือนก่อน +1

      Glad it helped!

  • @Saad-Sadiq
    @Saad-Sadiq 3 หลายเดือนก่อน

    Can we use Index/Match if xlookup functionality is not available?

    • @chandoo_
      @chandoo_  3 หลายเดือนก่อน

      Yes, you can.

  • @Kakarot_Karthi
    @Kakarot_Karthi 3 หลายเดือนก่อน

    Could you pls make the video for calendar drop down while entering date? If it is made earlier, plz share the link. Thanks

    • @chandoo_
      @chandoo_  3 หลายเดือนก่อน

      Excel desktop doesn't have the calendar option and they are not easy to implement. I think Microsoft has plans for Excel on the web to show calendar for date fields.

    • @Kakarot_Karthi
      @Kakarot_Karthi 3 หลายเดือนก่อน

      @@chandoo_ yup. I'm using calendar for date fields in web. But I'm looking forward to the app version🥲

  • @priyaram7274
    @priyaram7274 16 วันที่ผ่านมา

    Where in your other "Conditional Formatting" video

  • @grendbelema
    @grendbelema 3 หลายเดือนก่อน

    nice

  • @johanverkerk3260
    @johanverkerk3260 3 หลายเดือนก่อน

    Thanks Chandoo,
    If you expand the table, I don't think it will work.
    Or is that even possible?
    Already found, give the data a name.

    • @chandoo_
      @chandoo_  3 หลายเดือนก่อน +1

      You can easily scale this by applying a dynamic named range idea on top.

    • @johanverkerk3260
      @johanverkerk3260 3 หลายเดือนก่อน

      @@chandoo_ I have done it and it works great.
      Thanks

  • @raaj8474
    @raaj8474 3 หลายเดือนก่อน

    What if the data is in separate Tab ?

  • @user-vw9ui4ln9q
    @user-vw9ui4ln9q 3 หลายเดือนก่อน

    🎉

  • @skv4611
    @skv4611 3 หลายเดือนก่อน

    Haven't noticed pushpa till the end...😊

  • @UKJ28
    @UKJ28 3 หลายเดือนก่อน

    Please make searchable dependent drop down list

    • @chandoo_
      @chandoo_  3 หลายเดือนก่อน +1

      Search is now a default feature of Excel drop downs. You don't need to do anything. Just type in the cell and it filters the list down (works in Excel 365).

  • @veluji8710
    @veluji8710 3 หลายเดือนก่อน

    "You may not use reference operators (such as unions, intersections and ranges) or array constants for Data Validation criteria"
    =N7:INDEX(N7:N35,LOOKUP(1,--(N7:N35""),N7:N35))

    • @chandoo_
      @chandoo_  3 หลายเดือนก่อน

      Double check your formulas. Type it in a cell and see what it returns.

  • @Kalicharan2737r9t
    @Kalicharan2737r9t 2 หลายเดือนก่อน

    1000 likes🎉🎉🎉

  • @mrvrkram
    @mrvrkram 3 หลายเดือนก่อน

    Unable to play the video

  • @kaushiksrivatsa
    @kaushiksrivatsa 3 หลายเดือนก่อน

    First view

  • @BenDC85
    @BenDC85 3 หลายเดือนก่อน

    Ok, but what if I don't know what I want? Bars, Bites...
    All I know is that I want something with peanut butter, and I don't want to search through all of the categories.

    • @chandoo_
      @chandoo_  3 หลายเดือนก่อน

      In that case, you can use my 2-level validation drop down trick - chandoo.org/wp/two-level-drop-downs/

    • @BenDC85
      @BenDC85 3 หลายเดือนก่อน

      @@chandoo_ Awesome, I will check it out. Thanks!

  • @user-qb1db3oo9y
    @user-qb1db3oo9y 2 หลายเดือนก่อน

    Nice but this can be achieved easily using the Indirect function.

    • @chandoo_
      @chandoo_  2 หลายเดือนก่อน

      I disagree. Indirect requires setting up either named ranges (which is manual) or sub-optimal formulas.

    • @DickvanderVelde
      @DickvanderVelde 2 หลายเดือนก่อน

      Agree, and with indirect it can be dynamic. So you can add categories and you don’t need to update formulas. If you look for column numer and then use that. So indirect works better.

  • @ganesh6283
    @ganesh6283 3 หลายเดือนก่อน

    We can use indirect formula instead of xlookup😂

    • @chandoo_
      @chandoo_  3 หลายเดือนก่อน +1

      You need to have either names or calculate the range address for INDIRECT option. I no longer recommend INDIRECT for this purpose as it is too manual and clunky.

  • @naseerhussain6080
    @naseerhussain6080 3 หลายเดือนก่อน

    Tried to create this xloopup function in browser but it says this entry leads to an error @chandoo

    • @chandoo_
      @chandoo_  3 หลายเดือนก่อน

      I am not sure if this concept is available in browser version of Excel.