Using SUMIFS with arrays | Excel problem... Solved! | Excel Off The Grid

  Рет қаралды 20,988

Excel Off The Grid

Excel Off The Grid

Күн бұрын

Пікірлер: 122
@Jim-zm6fw
@Jim-zm6fw 10 ай бұрын
Thank you, Mark. Truly awesome. And thank you for your clear presentation style in all your videos.
@ExcelOffTheGrid
@ExcelOffTheGrid 10 ай бұрын
Thanks Jim. I appreciate that feedback 😁
@ziggle314
@ziggle314 10 ай бұрын
Excellent! I am excited for when my update channel gets GROUPBY. Thanks, Mark!
@ExcelOffTheGrid
@ExcelOffTheGrid 10 ай бұрын
I think it might be a while off yet.
@bilalsheikh9127
@bilalsheikh9127 8 күн бұрын
Outstanding illustrations with sheer clarity. Bravo 👏 Mark. Please also start a series on Python. Would love to watch your content with same clarity and detail.
@leandratel2466
@leandratel2466 6 ай бұрын
I had this video on my watchlist for quite a while. Today I finally took the time to watch it once and will spend the rest of the month watching it repeatedly until I really understand and be able to reproduce what you're presenting. Good stuff, thanks 👍🏼
@ExcelOffTheGrid
@ExcelOffTheGrid 6 ай бұрын
Great stuff - I hope it all makes sense. 😁
@alexkerr7436
@alexkerr7436 10 ай бұрын
Fantastic. I've been struggling with this and not finding useful explanations anywhere. Also, I didn't know about '0' in the index formula 🥳 Thank you.
@rpopecpa
@rpopecpa 9 ай бұрын
Brilliant! Thank you for this solution. I have run into this problem many times.
@ExcelOffTheGrid
@ExcelOffTheGrid 9 ай бұрын
Glad it helped 👍
@Mohammad3000100
@Mohammad3000100 10 ай бұрын
A very handy video, thank you
@ExcelOffTheGrid
@ExcelOffTheGrid 10 ай бұрын
You're welcome!
@martyc5674
@martyc5674 10 ай бұрын
Brilliant video Mark. It gets confusing sometimes figuring out what works with what in the transition to dynamic arrays last few years. I usually figure it out but takes a few attempts! Group/pivotby will be great.
@ExcelOffTheGrid
@ExcelOffTheGrid 10 ай бұрын
Agreed. The more I look into it, the more I understand why things don't work. But it get's very complicated very quickly.
@yazazan
@yazazan Ай бұрын
Wow! Fantastic job. Thank you very much, good sir.
@90hsilva
@90hsilva 10 ай бұрын
Great tip and very well explained, thanks
@ExcelOffTheGrid
@ExcelOffTheGrid 10 ай бұрын
Glad it was helpful!
@DataVisualisation
@DataVisualisation 10 ай бұрын
Great video, well explained where the problem is and how different ways could look like.
@ExcelOffTheGrid
@ExcelOffTheGrid 10 ай бұрын
Thanks, I'm glad you found it useful.
@kebincui
@kebincui 10 ай бұрын
Brillaint as always. Thanks Mark 👍❤
@ExcelOffTheGrid
@ExcelOffTheGrid 10 ай бұрын
Thanks Kebin 😁
@tushev78
@tushev78 10 ай бұрын
Excellent explanation! Thank you for your efforts! 🎁🎁🎁
@ExcelOffTheGrid
@ExcelOffTheGrid 10 ай бұрын
You're very welcome!
@huseyinburaktasci1638
@huseyinburaktasci1638 10 ай бұрын
Thank you, Mark! It is a great video and a very clear explanation. The content becomes even more advanced by the end of the video. 😅 As a big fan of Sumifs function, I learned a lot!
@ExcelOffTheGrid
@ExcelOffTheGrid 10 ай бұрын
Thanks. Towards the end I decided to give solutions rather than explanations, otherwise it could have been a very long video. 😁
@huseyinburaktasci1638
@huseyinburaktasci1638 10 ай бұрын
@@ExcelOffTheGrid Thank you for your kind response. I have grabbed the logic :)
@chiengsaby2867
@chiengsaby2867 2 ай бұрын
Thanks. I was able to apply this in one of the spreadsheet tools I made. Well explained and really helpful.
@tuzaguilar4201
@tuzaguilar4201 10 ай бұрын
Great presentation. Very clear. Please continue bringing these types of tutorials. Thank you. and subscribed!
@ExcelOffTheGrid
@ExcelOffTheGrid 10 ай бұрын
Thank You. I will do my best.
@HusseinKorish
@HusseinKorish 10 ай бұрын
This is Amazing ... I already had these problems with sumifs ... now i know ... Many Thanks
@ExcelOffTheGrid
@ExcelOffTheGrid 10 ай бұрын
You're welcome.
@markjarvis72
@markjarvis72 2 ай бұрын
Great examples, explained and demonstrated very welll. Many thanks. Like modern day magic tricks for spreadsheet nerds like me. 😂👍
@jimfitch
@jimfitch 10 ай бұрын
Thank you! I use dynamic array functions extensively (almost always within LET statements for readability & documentation) & have been frustrated for a long time by the inability to use SUMIFS, et al, with DA functions. I never understood until viewing this video that (virtual) ranges & arrays are different beasts. The “bug” makes sense to me now. I still wish that MS would fix this “bug”, but I’ll labor on without the same level of frustration. Thanks!
@ExcelOffTheGrid
@ExcelOffTheGrid 10 ай бұрын
It does seem like a "bug". However, even before "dynamic" arrays, this function didn't work with non-dynamic arrays, so maybe it is by design. But so few people used arrays in the past that it rarely came up as an issue.
@IvanCortinas_ES
@IvanCortinas_ES 10 ай бұрын
Excellent high level explanation. Without a doubt, the introduction of GROUPBY has avoided using the BYROW - LAMBDA combination (always complicated for a user with little practice). Thank you Mark.
@ExcelOffTheGrid
@ExcelOffTheGrid 10 ай бұрын
There has been discussion as to whether GROUPBY / PIVOTBY will kill PivotTables. I think the answer is No. But it might be the killer of conditional aggregation (SUMIFS/AVERAGEIFS etc).
@stevereed5776
@stevereed5776 10 ай бұрын
Very well explained Mark, thank you.
@Fabi_terra
@Fabi_terra 9 ай бұрын
Incredible! Thanks so much, Mark! Great tutorials, elegant and clear presentation! Congratulations!
@ExcelOffTheGrid
@ExcelOffTheGrid 9 ай бұрын
Amazing. Thanks. It can be a little tricky to understand, so I'm glad it was clear 👍
@ExcelWithChris
@ExcelWithChris 8 ай бұрын
Genius!!! Thanks from South Africa.
@ExcelOffTheGrid
@ExcelOffTheGrid 8 ай бұрын
Thanks Chris 😁
@bentatlim
@bentatlim 10 ай бұрын
Very nice - Thank you for this great Vdieo !!!
@ExcelOffTheGrid
@ExcelOffTheGrid 10 ай бұрын
Glad you enjoyed it.
@mohammedelsakally540
@mohammedelsakally540 10 ай бұрын
Thank you Mark for your always valuable info and tricks you are providing to us...
@ExcelOffTheGrid
@ExcelOffTheGrid 10 ай бұрын
My pleasure!
@Omarnfm
@Omarnfm 2 ай бұрын
You are a genius!!!
@28goldenboy
@28goldenboy 4 ай бұрын
The video didn't address my original issue, but I did learn what VSTACK is which helped me accomplish what I originally set out to solve, so thank you!
@ExcelOffTheGrid
@ExcelOffTheGrid 4 ай бұрын
Thanks for sharing!
@shaneshort3216
@shaneshort3216 10 ай бұрын
Aboslutely BRILLIANT and so perfectly timed for me - thank you!
@ExcelOffTheGrid
@ExcelOffTheGrid 10 ай бұрын
Great news 👍
@kartikmohan3001
@kartikmohan3001 5 ай бұрын
Thanks man, super helpful
@safuwanch
@safuwanch 10 ай бұрын
🎉🎉🎉🎉i was encounter this problem, and i used sum filter, know i know more alternative thanks ❤
@ExcelOffTheGrid
@ExcelOffTheGrid 10 ай бұрын
SUM/FILTER is the way I would go. However GROUPBY might become the easiest alternative.
@ChristophTatzber
@ChristophTatzber 10 ай бұрын
very good example with good options - thank you :-)
@ExcelOffTheGrid
@ExcelOffTheGrid 10 ай бұрын
You are welcome!
@UtuDudas
@UtuDudas 9 ай бұрын
Thank you. Just what I was looking for. As groupby isn't available yet for non-beta users, I will use the byrow, filter, choosecols. I am creating a 100% dynamic report, so this came in handy
@ExcelOffTheGrid
@ExcelOffTheGrid 9 ай бұрын
Glad I could help! 👍
@djl8710
@djl8710 10 ай бұрын
Good explanation.
@ExcelOffTheGrid
@ExcelOffTheGrid 10 ай бұрын
Glad it was helpful!
@markpodesta4605
@markpodesta4605 10 ай бұрын
Thank you Mark.
@ExcelOffTheGrid
@ExcelOffTheGrid 10 ай бұрын
You're welcome. 👍
@jiskomodo
@jiskomodo 10 ай бұрын
Mark, great video. Can you give an example where you sum based on two criteria?
@ExcelOffTheGrid
@ExcelOffTheGrid 10 ай бұрын
That's just about understanding the FILTER function. FILTER([data],([column1]="XXXX")*([column2]="YYYY"))
@jiskomodo
@jiskomodo 10 ай бұрын
@@ExcelOffTheGrid I have a situation where I need to SUMIFS a table by a spilled array of dates and the value in a one cell. How can I do this?
@Pavel102025
@Pavel102025 8 күн бұрын
Thanks a lot.
@usmanghori6999
@usmanghori6999 10 ай бұрын
Great Sr..
@ExcelOffTheGrid
@ExcelOffTheGrid 10 ай бұрын
Thank You.
@KrasiMitkov-ms9bb
@KrasiMitkov-ms9bb 7 ай бұрын
thanks a ton!
@joesmith4254
@joesmith4254 10 ай бұрын
Very useful video. Would have been super nice if it was possible to create a table with the result of the vstack formula in column G-H. That would have simplified the formulas for sumifs. I have particularly missed the possibility to filll a table with the result of a filter-function. Hopefully this is next on the improvements to come in Excel.
@ExcelOffTheGrid
@ExcelOffTheGrid 10 ай бұрын
Thanks, I'm glad you liked it. Actually, I don't agree about putting an array into a Table. We would be mixing the data step with the calculation step. It might make referencing easier, but in terms of workflow, I don't believe it's the right option.
@eriksteven8462
@eriksteven8462 10 ай бұрын
Excellent :)
@ExcelOffTheGrid
@ExcelOffTheGrid 10 ай бұрын
Thank you! Cheers!
@KingsoTV
@KingsoTV 10 ай бұрын
Great video, I don't have GROUPBY yet! 🙃 I think I would use the below: Cell J2=UNIQUE ( CHOOSECOLS( VSTACK(Table1,Table2), 1 ) ) and =LET(x, VSTACK(Table1,Table2), SUM( FILTER(x, CHOOSECOLS(x, 1) = J2) ))
@MGE0007
@MGE0007 6 ай бұрын
…good stuff….my head will stop spinning by the end of next week…
@ExcelOffTheGrid
@ExcelOffTheGrid 6 ай бұрын
I’ll have a new video out by then… you head might never stop spinning 😂
@KO1967
@KO1967 10 ай бұрын
Great video explaining the nuances. However, SUMIFS will work with spilled arrays provided the arrays are 1 dimensional. So in your first example, if you VSTACK the [Item] and [Value] columns separately then the formula =SUMIFS(H3#,G3#,K3) will return the correct result and this will also work if your criteria is a spilled array as well (e.g., =SUMIFS(H3#,G3#,K11#)). The complication only comes in with 2 dimensional arrays.
@ExcelOffTheGrid
@ExcelOffTheGrid 10 ай бұрын
I think your understanding of ranges and arrays is slightly off. When an array is placed onto a worksheet, it ceases to be an array and becomes a range. So H3#, whether a 1D or 2D, is always a range (you can prove this with the ISREF function). If the spill range is 1D then, Yes, it will work inside SUMIFS because it is a range. If the spill range is 2D then, No, it won't work because even though it is a range, SUMIFS requires a single dimension. This is why using a function, such as INDEX (plus there are many other range functions) works. If it has a range input and returns a range output. However, if it has an array input, it returns an array output. CHOOSECOLS and VSTACK can take ranges or arrays as input, but always return an array.
@Jill_Liu
@Jill_Liu 10 ай бұрын
Hi, really appreciate this valuable video. So i understand that for functions like sumif,countif or filter that involve criteria arguments, the criteria range and criteria cannot be simultaneously spilled arrays, to solve the problem, index is a quite easy and simple method, or use byrow bycol /scan those iterate formulas. I hope what i understand is correct.
@ExcelOffTheGrid
@ExcelOffTheGrid 10 ай бұрын
It's not about the functions which require criteria arguments. SUMIF, COUNTIF can only use ranges, while FILTER can use arrays. INDEX if used with range input, also returns a range output, so can be used inside SUMIF/COUNTIF. FILTER/SUM doesn't spill so we need to use LAMBDA helper functions to force it to spill.
@Jill_Liu
@Jill_Liu 10 ай бұрын
thanks for the reponse. appreciate the explaination.@@ExcelOffTheGrid
@mathieutalon7183
@mathieutalon7183 4 ай бұрын
Hi Thanks for the video. Can you please give the link to your previous video you mentionned at 09:42 regardin de #N/A error ? Thanks
@ExcelOffTheGrid
@ExcelOffTheGrid 4 ай бұрын
Here you go: kzbin.info/www/bejne/d5ikh4CKl7N3j9Usi=EBmo898dVP6n1UuR
@AlThePal78
@AlThePal78 10 ай бұрын
could you do choose then have a sumif criteria in that
@ExcelOffTheGrid
@ExcelOffTheGrid 10 ай бұрын
Yes, CHOOSE is also a function which returns a range. So that would also work in a SUMIFS.
@strive2heal
@strive2heal Ай бұрын
Hi Mark, great Video! 8:54 I tried this spill criteria formula on google sheet but apparently gsheet doesn't recognize the "#" in formula. it gave me errors. Is there any way I can work around this in gsheet?
@LotfyKozman
@LotfyKozman 7 ай бұрын
Wonderful!!!. In this tutorial there was only ONE condition for Bravo, what if we have more than 3 conditions including Text, Numbers, and dates such that, what is the total interest amounts paid to the bank starting from a specific date and less than another specific date.
@ismaelkourouma5558
@ismaelkourouma5558 10 ай бұрын
Very helpful thanks Mark, I remember that I have been facing some issues here. Quick but big question 😅: Is it possible to add a total line at the bottom when we use any spilled function other than GroupBy?
@ExcelOffTheGrid
@ExcelOffTheGrid 10 ай бұрын
Yes, absolutely. Let me add that to my video list. I try to make that soon.
@maciejkopczynski55
@maciejkopczynski55 10 ай бұрын
I would try using VSTACK on the result of the spilled range combined with the aggregation we want at the bottom of our spilled range. Something like: =VSTACK(A, SUM(A)) where A is the spilled range we would get as output of some array calculation.
@ismaelkourouma5558
@ismaelkourouma5558 10 ай бұрын
@@maciejkopczynski55 Sure that is an option if you have to aggregate 2 tables. But let say that you’ve use the FILTER function to extract some data and you want to SUM at the bottom (with the text ‘´TOTAL = ´´ without a VBA.
@ismaelkourouma5558
@ismaelkourouma5558 10 ай бұрын
@@ExcelOffTheGrid Perfect, thanks Mark !
@ExcelOffTheGrid
@ExcelOffTheGrid 10 ай бұрын
@@maciejkopczynski55 it’s not quite that simple, if you need to be flexible for different numbers of columns. If you use VSTACK to combine arrays of different column widths you get #N/A errors in the empty cells. But you can use to use a MAKEARRAY/LAMBDA combo to create an empty array for the other cells in the total row where there are no values.
@wilfrons
@wilfrons 10 ай бұрын
Master...!
@ExcelOffTheGrid
@ExcelOffTheGrid 10 ай бұрын
I can only share what I know or discover...😁
@AnshulMarele-gbaa
@AnshulMarele-gbaa 7 ай бұрын
Any option that array functions could work inside the table as they throw #spill error
@FuadHossain-u2w
@FuadHossain-u2w 4 ай бұрын
Is there a way to recreate this in Google Sheets?
@danieltan9908
@danieltan9908 10 ай бұрын
is this for MS 365? I tried using the hash after the normal cell reference. it just returns an error.
@ExcelOffTheGrid
@ExcelOffTheGrid 10 ай бұрын
Excel 2021 has some dynamic array functionality, Excel 365 has all the functionality. Anything Excel 2019 and before and you won't have anything.
@danieltan9908
@danieltan9908 10 ай бұрын
@@ExcelOffTheGrid tried it with excel 2021. even tried the G3#.
@uhbi_ibhu
@uhbi_ibhu 10 ай бұрын
Instead of the SUMIFS function, you can also use the regular SUM function: =SUM( CHOOSECOLS(G3#,2) * ( CHOOSECOLS(G3#,1) = "Bravo" ) )
@ExcelOffTheGrid
@ExcelOffTheGrid 10 ай бұрын
Now try it with AVERAGE… is it the correct value?
@AlThePal78
@AlThePal78 10 ай бұрын
why use vstack over g3#?
@ExcelOffTheGrid
@ExcelOffTheGrid 10 ай бұрын
G3# must be on the face of the worksheet, while VSTACK calculates in memory. So it just depends if you want to take up unnecessary worksheet space just for a calculation.
@BhavyaGupta
@BhavyaGupta 10 ай бұрын
Nice Video and Solutions Sir!! That indeed is an issue from a long time. One thing I observed is, we can define the range inside LET Function: =LET(rng,G3#,SUMIFS(TAKE(rng,,1),TAKE(rng,,-1),K7)) TAKE/DROP also gives result a reference so they are also acceptable inside SUMIFS. Few months back I made a video on how to determine if result is a reference or not - kzbin.info/www/bejne/g2Ktimhnp6iWj7M
@serdip
@serdip 10 ай бұрын
Very cool technique! Thanks for sharing!
@ExcelOffTheGrid
@ExcelOffTheGrid 10 ай бұрын
Yes, agree 100%.
@mateuszklisowski8277
@mateuszklisowski8277 10 ай бұрын
Lol, didn't know that. Great hint, thanks a lot!
@tomjones1502
@tomjones1502 10 ай бұрын
NEVER condition, when you offer something!!! (download file.....)
@ExcelOffTheGrid
@ExcelOffTheGrid 10 ай бұрын
I'm not making you download the file, I show you everything on the video.
@tomjones1502
@tomjones1502 10 ай бұрын
It's hard for you to complete .... I wonder if it's hard for you to show the video too
@farooqtahir538
@farooqtahir538 10 ай бұрын
If you want to make things unnecessarily complicated
@ExcelOffTheGrid
@ExcelOffTheGrid 10 ай бұрын
Data is complicated, so how can we manage that complication to provide the least amount of future re-work. It saves you needing to manually update a formula range. Therefore reduces the risk of error. Which in turn it prevents the person who presented the information looking like a fool when they discover that the values don't add up, and then having to admit to the CFO why the budget was wrong... (just saying 😁)
@lvtutorials3039
@lvtutorials3039 10 ай бұрын
For these simple examples, the proposed cobinations of functions are convoluted. But they explain nicely how the different functions work and how to use them in situations where they will indeed be the easiest solution. Thanks Marc.
@farooqtahir538
@farooqtahir538 10 ай бұрын
@@ExcelOffTheGrid Fool is the person who makes simple things unnecessarily complicated like you are😄
@ExcelOffTheGrid
@ExcelOffTheGrid 10 ай бұрын
@@farooqtahir538 which part is over complicated? If the xxxxIFS functions supported arrays, we wouldn’t have these issues. But they don’t, so how would you solve it?
Next level FILTER Function tricks | Excel Off The Grid
13:23
Excel Off The Grid
Рет қаралды 35 М.
99.9% IMPOSSIBLE
00:24
STORROR
Рет қаралды 31 МЛН
1% vs 100% #beatbox #tiktok
01:10
BeatboxJCOP
Рет қаралды 67 МЛН
How to treat Acne💉
00:31
ISSEI / いっせい
Рет қаралды 108 МЛН
Table slicers for advanced interactivity in Excel | Excel Off The Grid
10:41
5 Conditional Formatting Hacks That Will Blow Your Mind
11:16
Mike’s F9 Finance
Рет қаралды 9 М.
DOUBLEXLOOKUP... the Excel function you've been waiting for!
12:29
Excel Off The Grid
Рет қаралды 30 М.
10 awesome Power Query tricks you NEED to know! | Excel Off The Grid
15:44
Excel Off The Grid
Рет қаралды 54 М.
Ultimate XLOOKUP Guide: 10 Tips You Need to Know!
13:14
Excel Off The Grid
Рет қаралды 16 М.
5 Problems with PIVOTBY vs Pivot Tables in Excel
9:22
Excel Campus - Jon
Рет қаралды 10 М.
VBA Array with Filter, Sort and Slice (2021)
15:55
Excel Macro Mastery
Рет қаралды 58 М.
99.9% IMPOSSIBLE
00:24
STORROR
Рет қаралды 31 МЛН