Referencing Dynamic Arrays with Tables

  Рет қаралды 26,318

Access Analytic

Access Analytic

Күн бұрын

Пікірлер: 78
@s1ngularityxd64
@s1ngularityxd64 2 жыл бұрын
Awesome solution and all these short-cut tips are the cherry on the cake 😊
@AccessAnalytic
@AccessAnalytic 2 жыл бұрын
Cheers!
@johnhackwood1568
@johnhackwood1568 2 жыл бұрын
Really good practical topic Wyn. Dynamic arrays are awesome but don't format dynamically, so your Table workaround gives a good solution. And the Grouping controls to the right setting, you would have heard my groan from here, never knew that one.
@AccessAnalytic
@AccessAnalytic 2 жыл бұрын
Cheers John 😁
@KO1967
@KO1967 2 жыл бұрын
Thanks Wyn. Interesting approach. I typically do something similar but with a little VBA tied to the Worksheet_Change event and your SelectedWorkOrder you can simply clear the filter and apply the new filter based on your selection. Thus no buttons requiring the user to click additional things, no helper columns, etc. Much cleaner but does require a little VBA.
@AccessAnalytic
@AccessAnalytic 2 жыл бұрын
Yep, absolutely, I shy away more and more from VBA these days if I can. More options to run on web, avoid security warnings etc. I used to live in VBA but not so much anymore.
@KO1967
@KO1967 2 жыл бұрын
@@AccessAnalytic Valid points
@martyc5674
@martyc5674 2 жыл бұрын
Interesting approach Wyn, I use dynamic arrays all the time and I use conditional formatting to make them appear as tables, I understand that’s not what your doing here as you want to utilize table behaviour and keep it as a table. One to keep in the memory bank 👍
@AccessAnalytic
@AccessAnalytic 2 жыл бұрын
Cheers Martin
@jude6387
@jude6387 2 жыл бұрын
Since using unique I have wanted to use in a table. This is great can't wait to try it out. Thanks for sharing this.
@AccessAnalytic
@AccessAnalytic 2 жыл бұрын
Great to know thanks for taking the time to leave a kind comment
@dre5229
@dre5229 Жыл бұрын
Very useful, I just came across the problem a few days ago. Thanks for the instructions
@AccessAnalytic
@AccessAnalytic Жыл бұрын
You’re welcome. Thanks for taking the time to leave a kind comment
@TubeWatcher935
@TubeWatcher935 Жыл бұрын
Very smart!
@AccessAnalytic
@AccessAnalytic Жыл бұрын
Cheers 😀
@GrainneDuggan_Excel
@GrainneDuggan_Excel 2 жыл бұрын
Interesting workaround Wyn.
@AccessAnalytic
@AccessAnalytic 2 жыл бұрын
Cheers Grainne
@ismaelkourouma5558
@ismaelkourouma5558 Жыл бұрын
Hey Wyn, thanks for this tutorial. Currently I am struggling to do something if someone has an idea here, very similar to this above. So, in my dashboard, I would like to use the slicers (for instance the Year slicer), which will dynamically change my data. Data is filtered by the Filter function and stored in an Excel table 😁😁. The idea is to update the Dashboard without refreshing any Pivot tables. My issue is exactly at the opposite of this case, I want the the dynamic filter collapsing or expanding based on the Excel table drove by a slicer. Tricky!
@AccessAnalytic
@AccessAnalytic Жыл бұрын
Maybe capture the slicers in a pivot table containing exactly the same field as the slicer and reference that, or even create slicer from data model and turn the linked pivot into cube formulas
@JAADAAZ
@JAADAAZ Жыл бұрын
Beautiful content, sr.
@AccessAnalytic
@AccessAnalytic Жыл бұрын
Thank you
@alimoudden444
@alimoudden444 2 жыл бұрын
Im in love with your content videos 💯👍
@AccessAnalytic
@AccessAnalytic 2 жыл бұрын
Thanks Ali !
@teaking1981
@teaking1981 2 жыл бұрын
Cool video learnt a lot for sure, I think it may be possible to for go one of the helper columns for hidden rows it seems to work count the rows in a filter for only visible rows in the table less the count of rows that are visible, which shows a positive for hidden rows and a negative where rows that should be hidden are visible ROWS ( FILTER ( Table , Table Column Show ="Visible" ) ) less the AGGREGATE ( CountA , Ignore Hidden , Table Column Show)
@AccessAnalytic
@AccessAnalytic 2 жыл бұрын
Thanks Glyn
@lorenzoladejobi8701
@lorenzoladejobi8701 2 жыл бұрын
Very useful. Thanks Wyn.
@AccessAnalytic
@AccessAnalytic 2 жыл бұрын
You’re welcome Lorenzo
@thegaminglearning
@thegaminglearning 2 жыл бұрын
That was one of the great ways to include Dynamic Arrays in the Table. Tables help in many ways. However dynamic arrays and tables can't stay under the same roof 😅😅. Now Power Query supports dynamic arrays. We need to press the refresh button only. Dynamic Arrays will change the data in Powe Query. We can externally apply the SUMIFS function. Things will get automated and that too in Table Structure.
@AccessAnalytic
@AccessAnalytic 2 жыл бұрын
Thanks for the comment
@GeertDelmulle
@GeertDelmulle 2 жыл бұрын
Hi Wyn, in my experience I tend to gravitate towards dynamic arrays (DA’s) and not so much excel tables (ET’s). And your proces in reverse (ET=>DA) is trivial, and I do use that happily (I do like ET’s). OTOH, it would be great to be able to use spilling DA’s in ET’s, even if they were restricted to just column vectors, and in that capacity, they could very well replace the (uniform) column formula, a concept that already exists inside ET’s (default = blank). This sounds to me as the logical next step for increasing the interoperability of DA’s and ET’s. If this were available, your current proces would be equally trivial. :-) Perhaps -as an MVP- you can suggest this to the Excel Team?
@AccessAnalytic
@AccessAnalytic 2 жыл бұрын
We’ve had discussions Geert 😀. Me and others will continue to flag use cases to try and encourage a change
@iankr
@iankr 2 жыл бұрын
Brilliant - some great techniques there, Wyn! Just one other thing re tidying up - can you hide the unneeded "-" slicer button (I presume you don't need this)? This is so you can only see the "Show" button.
@AccessAnalytic
@AccessAnalytic 2 жыл бұрын
Not that I know of, but it’s useful to have incase you want to show all rows ( Ctrl select both )
@patrickkinbonso1809
@patrickkinbonso1809 Жыл бұрын
Great video once again. Is there a way to just have the show show slicer without the dash next to it please
@AccessAnalytic
@AccessAnalytic Жыл бұрын
At 10:09 I add the dash. You can choose anything ( must have at least 2 though )
@steven2745
@steven2745 2 жыл бұрын
There was some nice tricks in the video. Why use the table at all? If you just reference the dynamic array in a sumif formula (=SUMIFS(tblData[Hours],tblData[Name],Summary2!F11#)) it'll do the same thing, without the need to create a table, show or hide rows.
@AccessAnalytic
@AccessAnalytic 2 жыл бұрын
As I mentioned in the video you could indeed do it that way - especially in this simple scenario. However in a few recent real life requirements this was the better solution,
@xlrobot
@xlrobot 2 жыл бұрын
Nice! Have you considered using conditional formatting on the table to make the rows with zeros “disappear” using ;;; for number formatting and remove the background shading?
@AccessAnalytic
@AccessAnalytic 2 жыл бұрын
A nice idea
@michaelbrown4925
@michaelbrown4925 4 ай бұрын
There is a way to automate this completely! If you write an object-based event operation macro for that worksheet, you can run a macro that would do the filtering for you if the value in your drop-down menu changed. And, in fact, you wouldn't even need your helper columns because all of those calculations could occur in the macro. In addition, you could build into the macro the automatic resizing of the table to eliminate the need for all of the blank rows in the first place. This way of doing things, there are 0 extra rows and 0 helper columns, leading to much smaller file sizes and a 100% automated table update when selecting from the drop-down. Same concept, better result. Does require VBA though.
@AccessAnalytic
@AccessAnalytic 4 ай бұрын
Thanks, indeed VBA can solve a lot. The additional challenge there : - knowing how to write robust VBA - organisations banning VBA - inability to work online I used to be writing VBA all day every day. My work needs and technology changes have meant I rarely touch it these days.
@FRANKWHITE1996
@FRANKWHITE1996 2 жыл бұрын
Great content 🙌🔥🙏
@AccessAnalytic
@AccessAnalytic 2 жыл бұрын
Cheers Frank
@askeijaz
@askeijaz Жыл бұрын
which video editing and screen recording software are you using? the video looks so clean.
@AccessAnalytic
@AccessAnalytic Жыл бұрын
Camtasia
@nethikarnarendra4884
@nethikarnarendra4884 2 жыл бұрын
Thank you. Can you show how to create dynamic table with fixed number of rows. If the data is more then fixed rows (in table), then new table has to be created dynamically for spill over data. In short, I would like to know if we can create automatically new tables dynamically with fixed number of rows in table?
@AccessAnalytic
@AccessAnalytic 2 жыл бұрын
With VBA most likely yes. Not otherwise
@MrWish332
@MrWish332 2 жыл бұрын
Superb!!
@AccessAnalytic
@AccessAnalytic 2 жыл бұрын
Cheers Vishal
@minamishail_Tech2024
@minamishail_Tech2024 11 ай бұрын
good trick that worked a year ago now, is any updates that help automatic expand & shrink to fit Dynamic array new results ?
@AccessAnalytic
@AccessAnalytic 11 ай бұрын
Not that I’m aware of
@kebincui
@kebincui 2 жыл бұрын
Awesome👍🏻👍🏻
@AccessAnalytic
@AccessAnalytic 2 жыл бұрын
Thanks Kebin
@feipan3227
@feipan3227 Жыл бұрын
Hidden gem❤
@AccessAnalytic
@AccessAnalytic Жыл бұрын
Glad you liked it 😀
@puguhhariyadi3971
@puguhhariyadi3971 5 ай бұрын
Wow.., very useful, let me know, Wyn What office is it ? Thanks anyway
@AccessAnalytic
@AccessAnalytic 5 ай бұрын
Dynamic Array Excel is the 365 version and Excel 2021
@jaimesantana2834
@jaimesantana2834 7 ай бұрын
Genius
@AccessAnalytic
@AccessAnalytic 7 ай бұрын
😊 cheers
@jassimone4266
@jassimone4266 11 ай бұрын
is there a way of bringing up the available named ranges (F3 in data validation source) for mac?
@AccessAnalytic
@AccessAnalytic 11 ай бұрын
Hi, I don't know about Macs sorry. I'd suggest posting the question here techcommunity.microsoft.com/t5/microsoft-excel/ct-p/Excel_Cat
@slryt
@slryt 2 жыл бұрын
Good stuff as a workaround but why-oh-why don't spill formulas and structured references just play nice? They are both individually awesome but not being able to spill formulae in tables is very, very vexing.
@AccessAnalytic
@AccessAnalytic 2 жыл бұрын
Agreed, I can see how there would be difficulties in managing the process and programming it successfully. The Excel team are open to us giving useful examples of where we’d use this. Maybe one day this will be a reality.
@davidferrick
@davidferrick 3 ай бұрын
Good stuff but I have to admit, making the drop list cell look "3D'ish" was a great little tip.
@AccessAnalytic
@AccessAnalytic 2 ай бұрын
Cheers 😀
@OlivierTravers
@OlivierTravers 2 жыл бұрын
Another area where I've struggled referencing dynamic arrays is in OfficeScripts. More specifically I haven't been able to use the A1# type of reference via OfficeScripts. I'm not sure whether there's a syntax I'm missing that should work or maybe it's just not supported. OfficeScripts is under-documented :(
@AccessAnalytic
@AccessAnalytic 2 жыл бұрын
Not something I've played with Olivier, still seems a Work In Progress to me
@sajjadabouei6721
@sajjadabouei6721 6 ай бұрын
king of working with dynamic reference and setsups I came a crossed a problem for dynamic resizing for a kind of setup is there any chance that I ask you that? is there any discord channle or s.th😅😅😅😅 I know you have tons to do but I just ask if there are any possibilities💙
@AccessAnalytic
@AccessAnalytic 6 ай бұрын
I often reply to posts on slack www.reddit.com/r/excel/s/ov3ERlqAFZ
@patrickkinbonso1809
@patrickkinbonso1809 Жыл бұрын
Also, is this workaround restricted to the number of rows that you created in the dynamic array reference table? Does it mean that we need to manually update the reference table range when the number of rows in the source data expands more than the number of rows available in the reference table please? Thanks
@AccessAnalytic
@AccessAnalytic Жыл бұрын
Yes the Table needs to be manually adjusted or make it WAY bigger than your data at the beginning.
@patrickkinbonso1809
@patrickkinbonso1809 Жыл бұрын
Then what is the purpose of referencing a dynamic array in a table?
@AccessAnalytic
@AccessAnalytic Жыл бұрын
Because Dynamic Arrays Calculations are very powerful and I want to use the results in a Table for its features
@patrickkinbonso1809
@patrickkinbonso1809 Жыл бұрын
Thanks. Then what is the difference between this and a slicer controlled pivot table please?
@Sancarn
@Sancarn Жыл бұрын
> It would be nice if the table just automatically expanded and collapsed based on the dynamic array, that currently isn't possible! You could quite easily sync this up actually using VBA events. ```vb Private Sub Worksheet_Calculate() Call resizeTable("Table3", Me.Range("D6#").Rows.CountLarge) End Sub Private Sub resizeTable(ByVal sTableName As String, ByVal iRows As Long) With Me.ListObjects(sTableName) If .ListRows.Count > iRows Then .Range.Offset(iRows + 1).Resize(.ListRows.Count - iRows).Value = Empty Call .Resize(.Range.Resize(iRows + 1)) End With End Sub ``` Ultimately here in the worksheet calculate sub we are saying resize Table3 to the number of rows in D6#. Simple yet effective.
@AccessAnalytic
@AccessAnalytic Жыл бұрын
Thanks, having Tables work with Dynamic arrays is on the wish list but I don’t see it happening soon
@Sancarn
@Sancarn Жыл бұрын
@@AccessAnalytic with the amount of money Microsoft are getting for excel per year I'm quite surprised generally by the lack of progress with the application honestly... Something like dynamic tables should be trivial
@AccessAnalytic
@AccessAnalytic Жыл бұрын
​@@Sancarn to be fair they have been focusing on Excel for Web, while introducing the concept of Dynamic Array Excel and in-cell data types. I have a list of 10 things that I would like to see implemented before DA working with tables, and I'm sure 10 other people have 10 different needs. It's a tough job keeping us happy!!
ТЮРЕМЩИК В БОКСЕ! #shorts
00:58
HARD_MMA
Рет қаралды 2,3 МЛН
Walking on LEGO Be Like... #shorts #mingweirocks
00:41
mingweirocks
Рет қаралды 7 МЛН
Мама у нас строгая
00:20
VAVAN
Рет қаралды 6 МЛН
Увеличили моцареллу для @Lorenzo.bagnati
00:48
Кушать Хочу
Рет қаралды 7 МЛН
Make Excel Formulas Dynamic with the This Trick
10:54
Kenji Explains
Рет қаралды 194 М.
#️⃣ Dynamic Arrays in Excel - This Changes Everything!
17:12
The Excel Trick I Use EVERY DAY (and you should too!)
11:21
MyOnlineTrainingHub
Рет қаралды 210 М.
Advanced Formula Magic: Running total by row with dynamic arrays in Excel
10:15
Excel Hash Sign Operator - What is it + ADVANCED Tricks!
8:58
MyOnlineTrainingHub
Рет қаралды 63 М.
3 Essential Excel skills for the data analyst
18:02
Access Analytic
Рет қаралды 1,6 МЛН
Excel VBA Arrays, Resize (ReDim, Preserve) Arrays, Create Functions That Return Dynamic Arrays
27:24
Learn Google Sheets & Excel Spreadsheets
Рет қаралды 23 М.
Excel Dynamic Arrays (How they will change EVERYTHING!)
7:01
Leila Gharani
Рет қаралды 705 М.
ТЮРЕМЩИК В БОКСЕ! #shorts
00:58
HARD_MMA
Рет қаралды 2,3 МЛН