Create a Dynamic Named Range using the INDEX Function in Excel

Поділитися
Вставка
  • Опубліковано 28 жов 2024

КОМЕНТАРІ • 63

  • @rockguitarist8907
    @rockguitarist8907 7 років тому +2

    Excellent explanation and walkthrough. Thank you so much for teaching this lesson to people like me who are trying to understand the complexities of Excel. :)

  • @Sabrewave
    @Sabrewave 5 років тому

    Great Tutorial! Clear, concise and beautifully executed. Couldn't ask for more and exactly what I needed. Thank you Alan.

    • @Computergaga
      @Computergaga  5 років тому

      You're welcome. Thank you very much David.

  • @mohideenthassim7180
    @mohideenthassim7180 7 років тому +1

    Thanks Alan, great tutorial as always very clear and helpful

  • @charlesball9522
    @charlesball9522 4 роки тому

    I know this is a few years old but let's hope for the best. I used this formula and it was successful up to a point. I have 48 items in my range but it only finds 46, if i add one it will find the 47th one but it won't find the 48th and 49th. in your example it would be like your range is France through Venezuela, but it only showed you France through Spain, then when you added Italy it would show you France through UK.

    • @charlesball9522
      @charlesball9522 4 роки тому

      I discovered the problem. there were two blank rows above the first bit of data, (A1 and A2 had column headers, A3&4 were blank, and A5 was the first data in the range). i used =$A$5:INDEX($A:$A,COUNTA($A:$A)).

    • @Computergaga
      @Computergaga  4 роки тому

      Well done Charles.

  • @teoxengineer
    @teoxengineer 3 роки тому

    Good technique!👏 However, everytime, we can not be able to use this formula. For example, if we erase a data inside of range, index formula will give us false result because of counting of rows.
    And,
    For the second example, if we insert a column for this table, vlookup will give us false result. But,
    Index():index() formula is so great and extraordinary function and so useful.
    Thank you

    • @Computergaga
      @Computergaga  3 роки тому

      Thank you, Emre. Yes, INDEX():INDEX() is awesome. For the first approach, instead of counting the rows, the ROWS fucntion could be used.

  • @cd-ux9ot
    @cd-ux9ot 7 років тому +2

    I heard named ranges with index are faster than offset. Only I recommend doing $A$1:$A$1000 as it's faster than counting the whole column

    • @Computergaga
      @Computergaga  7 років тому

      Yes OFFSET is a volatile function and can slow a workbook down. As long as the range you use is big enough you can use what you wish.

  • @justinlim709
    @justinlim709 4 роки тому +1

    hi, a question.
    why would you not use an excel table, since it expands and contracts automatically without formulas?

    • @swamyjiki
      @swamyjiki 3 роки тому

      it crossed my mind too

  • @jackchan7532
    @jackchan7532 6 років тому +1

    Many thanks. Much appreciate your work

  • @janburckhardt
    @janburckhardt 4 роки тому

    Works well, thank you! However, when I try to use the named reference as an INDIRECT function it doesn't seem to work. I have a drop-down list in Column A and then a dependent drop-down list in Column B. Column B is an INDIRECT function of the value in Column A, which references the name of the range with the INDEX function, but this evaluates to an error. Please help!

  • @kamranpouryavari9197
    @kamranpouryavari9197 4 роки тому

    Dear alan
    Please advice did this method worked with droupdown and indirect function i try but I didn't get any results

    • @kamranpouryavari9197
      @kamranpouryavari9197 4 роки тому

      Dear alan
      Please advice if this methods worked with droupdown and indirect functions
      Best regards
      Kamran pouryavari

    • @Computergaga
      @Computergaga  4 роки тому

      Hi Kamran, yes I believe this works with INDIRECT and drop downs. You can also making a range dynamic by formatting it as a table and then naming that range.

  • @mirrrvelll5164
    @mirrrvelll5164 5 років тому

    Great tutorial so far! Really decent explained! BUT, got one question, what in a case my range isn't whole column (not $A:$A), but like 5-10 rows (A1:A10..) within one column and how to add some of them but to be shown (auto updated) in data validation list??

    • @Computergaga
      @Computergaga  5 років тому

      You can use the same technique and use that range instead of A:A.

    • @mirrrvelll5164
      @mirrrvelll5164 5 років тому

      @@Computergaga Well, I tried exactly in your example and it didnt work. I added new row but no updates on data validation.

  • @jackychawla5422
    @jackychawla5422 7 років тому +1

    nice and awesome please indirect function advance tutorial

  • @abulaise07
    @abulaise07 7 років тому +2

    thanks for helping me. god bless u sir.

    • @Computergaga
      @Computergaga  7 років тому +1

      Your welcome Abu

    • @abulaise07
      @abulaise07 7 років тому

      Computergaga dear sir. i have some worksheet it's really needy to my daily work. if you send your email address I'll share the file. actually I don't no how my superior did the worksheet he not ready to teach me. pls show me how he did the worksheet.

    • @Computergaga
      @Computergaga  7 років тому

      That's a lot of consultancy Abu.

    • @abulaise07
      @abulaise07 7 років тому

      Dr. Rashid Baloch thank u so much. well how would I send the file to you sir.

  • @adoremm7052
    @adoremm7052 6 років тому

    At the 7:00 mark you said that you are after the row number and the column number, What I dont understand is why did you use CountA($A:$A),column, first instead of ($1:$1) row. Can i use them interchangeably or did i go wrong somewhere?

    • @Computergaga
      @Computergaga  6 років тому

      I used CountA($A:$A) first to retrieve the last row number in column A. You cannot use them interchangeably.

  • @scottthurgood241
    @scottthurgood241 4 роки тому

    Is the Dynamic Named range specific to a Tab? Or how do we make it specific to one tab? What if we have Dynamic Ranges for multiple Tabs?

  • @dalskiBo
    @dalskiBo Рік тому

    Concise - thanks

  • @MarkElDeiry
    @MarkElDeiry 3 роки тому

    If I want to name all of column A, is there a reason to avoid making the range equal to $A$1:$A$1048576?

  • @muhammadfathi3845
    @muhammadfathi3845 7 років тому +1

    Thanks, Awesome Video!!!

  • @Sam-cv6un
    @Sam-cv6un 4 роки тому

    You solved my problem. Thank you. :)

  • @stoyanpetkov182
    @stoyanpetkov182 5 років тому

    I was trying to use a range defined that way together with sum function, but it returned #VALUE. Basically the syntax is =SUM(MyRange), where MyRange is the range defined in the Name Manager. This works if the range is static, but it doesn't work if the range is defined with the INDEX function. Is there a way to make this work, or maybe to use another function to define the range?

    • @Computergaga
      @Computergaga  5 років тому

      The INDEX function should not be a problem here. The #VALUE error is normally an indication of incorrect formatting especially with sum. Typically there is text in the range to be summed. When you said that it works without the named range, that confused me somewhat.

    • @stoyanpetkov182
      @stoyanpetkov182 5 років тому +1

      @@Computergaga The named range actually works, but if it is defined as a static range, tried it both ways. If it is defined as static range, SUM function works, if it is defined as a dynamic - it doesn't. This makes me think, that the problem is not in the values of the cells. Works fine for validation list though.
      Edit: I tried this on a blank sheet, it works just fine. Something is wrong with my other document, I'll try to sort it out. Thanks for help anyway

  • @Dark_Jester89
    @Dark_Jester89 6 років тому

    How could you go about if you needed a City range, based on the country. B2: France countries, B3: Germany countries, etc, and if the A:Column moves, the b:Columb accommodates to it. Thanks in advance!

    • @Computergaga
      @Computergaga  6 років тому

      There are a few different techniques depending on what you need the list of cities for. You could use something similar to what I show in this video - ua-cam.com/video/R5lmT-7m8aQ/v-deo.html
      Here I get VLOOKUP to look in a different range depending on a cell selection much like your question on city range dependent upon country selection. You just may not need the VLOOKUP.
      You can also check out this situation where I have a dependent drop down list. The second list is dependent upon selection from the first - ua-cam.com/video/yychXPx2gUY/v-deo.html

  • @stoyanpetkov182
    @stoyanpetkov182 6 років тому +1

    thumbs up! Very helpful

  • @mirrrvelll5164
    @mirrrvelll5164 4 роки тому

    So if I add additional column it will expand automatically without errors?

    • @Computergaga
      @Computergaga  4 роки тому

      Sure. The second is dynamic in both directions. Formatting your data as a table is another way.

  • @mohammedsalwan382
    @mohammedsalwan382 2 роки тому

    What about offset,index and counta function is that work?

    • @Computergaga
      @Computergaga  2 роки тому

      You can use OFFSET instead of INDEX if you wish.

    • @mohammedsalwan382
      @mohammedsalwan382 2 роки тому

      @@Computergaga Sir, OFFSET and COUNTA function is the best combination for dynamic range.

    • @Computergaga
      @Computergaga  2 роки тому

      @@mohammedsalwan382 👍

  • @Leomunozguedes
    @Leomunozguedes 3 роки тому

    works, thanks!

  • @charliefasurf1000
    @charliefasurf1000 5 років тому

    Hey, it doesnt work in excel 2016. Data validation "the source must be a delimited list, or a reference to a single row or column"

    • @Computergaga
      @Computergaga  5 років тому

      Check the video again to try and spot the problem. The video was done in 2016 but will work in any version.

  • @felixstiefel9443
    @felixstiefel9443 6 років тому

    Would the number of columns of the new dynamic range not be 5, instead of 3?

    • @Computergaga
      @Computergaga  6 років тому

      This is true. Does not affect the VLOOKUP in the example, but you are correct.

    • @felixstiefel9443
      @felixstiefel9443 6 років тому

      @@Computergaga Thanks for replying! Great video.

  • @atherbeg2177
    @atherbeg2177 Рік тому

    When I use this in SUM & If array, I get N/A error. Why?

    • @Computergaga
      @Computergaga  Рік тому

      I would need to see more detail. SUM can absolutely be used on a range returned by INDEX.