Thanks Mynda. I use database functions ALL the time . I have created a whole DATA model with various tables fro my business that tracks orders, customers, invoices and so on, so the Database functions are a must.,.. Nice tutorial .Hope more people start using Excel's Data Model and these functions... Regards and thanks once again for you excellent tutorials. Bye for now
Thanks for sharing this! I've seen these "D" functions around and have been using Excel for years (for work) without being curious enough to look into them (getting by with SUMIFS and COUNTIFS etc). Now I can add one more tool to the Excel toolbox - thanks again!!
I used those a few years ago for KPI calculations. It was an elegant way to show the criteria to the customer without digging into formulas. One thing in the criteria is that the order of the columns doesn’t matter, since it’s based on matching labels. In the example from the video, the criteria on level could be between the two dates and it would work the same. Which is great because if some columns are added or the order changed in the data(base), you don’t have to rewrite the formula 🤠 Anyway to keep it more easy to read, I use the same columns order in data and in criteria.
Great video. The D functions also have the great bonus of having the criteria visible so no trying to work out what has been filtered in or out of the calculation. I also love the advanced filter for the same reason.
This is great. Up to now I used some other functionalities of Excel like tables, Power Query, sumifs and similar, array formulas, advanced filtering but only heard about database functions. Now I will harness them to the work 😀
Never used these. Thanks for sharing. The criteria table allowing formulas and the functions handling OR criteria are promising. We can have user control the output via inputs that have multiple conditions. Will give it a try. Any version compatibility issues with these functions? Thanks.
Database functions are a very powerful tool. I have been using it for many years. I even developed a special application with an interface to organize any kind of queries to the database. I recommend you to listen to this lecture carefully, you will definitely need it! Mynda, I apologize for the harsh words I said before.
Thanks! I've seen the functions but I've never dug into them yet. This was a good primer for getting started. One question I have, can the criteria reference be to a Criteria Excel Table (with matching headers for the columns you want to filter on)?
I did not know about these. Many years ago I taught database functions in Lotus 1-2-3 where the criteria were structured this same way. I guess Microsoft developers knew a good idea when they saw it
Nicely explained Mynda.. I was using database functions for sometimes but there were some confusions which sorted out by this video. Thanks for sharing.
Hello Mynda and thanks for the tutorial, i saw there was another question on volatility, but I would like to expand on that. I read somewhere that Sumifs and Countifs become volatile when referencing another worksheet, is that the case also for the database formulas?
Thanks. Do you have a video about creating a database with a nice dashboard for any projects management (i.e. Contract management or inventory management). Thanks in advance for your sharing!
Hi Mynda, Thank you. Just a note. I was working on the file from your page and the formula was returning zero. I realized that it's because the date in your file is set to dd/mm/yyyy. I suspect (not sure) that each computer has a default setting for reading formulas, and mine requires dates to be in mm/dd/yyyy to be properly read. So when I changed the date on the criteria table from "
As always, another interesting, clear video. Many thanks. In this particular one, what is the difference with using the column filters? The filters seem to be much easier to use. I fear the answer is in another video that I have yet to watch...
Good stuff. I would like to see the video address (1) the syntax of the function without using a separate table for conditions and (2) how the function handles double counting when a value meets both filtering conditions.
Thanks, Jeremy! Good suggestions. I showed how you can hard key the conditions (criteria) into the formula in the video. The criteria are considered AND and therefore you shouldn't get double counting.
In Power Query? You can use Group By to summarise the data, but Power Query isn't really the tool for database type formulas, that's more the domain of Excel.
Thanks so much Mynda. These used to be my go to formulas before sumifs etc came along. It’s been almost 20 years since I last used the database functions. Were these called Dimensional Aggregates at one point? Setting criteria this way can be far more legible that long complex sumifs or averageifs I can’t remember though, can the field value be a cell reference with the column name as a string? If so the column being aggregated could by dynamic with use of data validation or even a slicer/pivot table on list result.
what is the efficiency like for database functions as apposed to *IF functions when dealing with large data sets? Also, are they fully volatile or only calculate when something in the relevant range is updated?
Hi. I just wanted to ask what is Your relationship to the function of type D... when the database contains columns with text (eg: A100, A1000, A10000 ...) and You provide A100 in the criterion... The results are the same as for the A100* criterion. What do You think about it?
When are these Database functions needed? If I have a dataset with 10’s of millions of records, will these still come in handy because the table would seize to be helpful since we Excel table can’t contain over 1.048 M
If you have that much data you should use Power Pivot and then you'll have access to the DAX Function library. More on Power Pivot here: www.myonlinetraininghub.com/power-pivot-course
@@MyOnlineTrainingHub thanks for the content. I have started reading about DAX but I am considering enrolling for a course in Power Pivots. I am a big follower of your channel.
How to change the font size of drop down lists? Actually i am using 75% screen fit size so that i can view all columns in one screen, In that if i select the drop down list cell it’s content not at all visible & font size is so small. Can you please help me to work on this?
Hi Deepakra, you can't change the font size in a drop down, so I suggest you change your zoom to 100% and instead change the font size of the data in the columns to fit it better.
@@MyOnlineTrainingHub Not like this .. Having 2 different tables with a single key column & intersecting it to find the sum of rows present in both columns. Like a power query merge.
Yes, the DGET function returns the first match. If you want multiple matches, you can use the FILTER function: ruclips.net/video/ZCQAweoAdOw/видео.html
Hi Danny, no, you can only reference cells in the worksheet. You can put formulas in those cells. You just can't nest a formula in the database functions.
@@MyOnlineTrainingHub Thanks Mynda, I am currently using SUMIFS formula with 2 criteria’s, the 1st criteria I m using the wildcard, but the 2nd criteria is depending on the row number. Is there another way to solve this other than SUMIFS formula?
Maybe with SUMPRODUCT. Please post your question and sample Excel file on our forum where we can help you further: www.myonlinetraininghub.com/excel-forum
Cheers, Jared! You can hard code the criteria, but I don’t usually recommend doing that for any formulas because it can result in a lot of maintenance if you want to update multiple formulas that all have the same criteria.
@@MyOnlineTrainingHub How do you hardcode criteria? AFAIK, it has to be a range (which is the biggest drawback to these functions generally). Have I missed something?
Hi Rory, I thought I tested this =DSUM(DataTable[#All],"Amount",{"Type";"Level 1"}) back when I created the video, but I must have imagined it because it doesn't work 😛
I may very well be wrong but I believe your comment about double counting in example (4) is incorrect. What will happen is that all Level 1 invoices will be included as well as any invoices from all other Levels not equal to "Atkins". This is not double counting.
Hard to say without seeing your file and formula. Please post your question and sample Excel file on our forum where someone can help you further: www.myonlinetraininghub.com/excel-forum
:-) glad you like the database functions, Raul! I don't think you can ever use PivotTables more than you need. They're more robust than any formula and easier to create.
@@MyOnlineTrainingHub Thanks! True, but sometimes I create report out of pivot tables (using a Getpivot function where arguments are referenced in the reporting table, so I can scroll formulas) and I need Totals by both Region and Product. So if the pivot has Region totals (and each region has almost the same Products) when I want totals for Products I just don’t’ have that available in that pivot and need a second Pivot.. perhaps for that reporting row I can use Database Functions (that is, for some aggregations)? Thanks!!
Thanks Mynda. I use database functions ALL the time . I have created a whole DATA model with various tables fro my business that tracks orders, customers, invoices and so on, so the Database functions are a must.,.. Nice tutorial .Hope more people start using Excel's Data Model and these functions... Regards and thanks once again for you excellent tutorials. Bye for now
Fantastic to hear, Martin!
Thanks for sharing this! I've seen these "D" functions around and have been using Excel for years (for work) without being curious enough to look into them (getting by with SUMIFS and COUNTIFS etc). Now I can add one more tool to the Excel toolbox - thanks again!!
Great to hear, Alan!
the most clear and full explanation of D~ function on youtube thank you so much
Wow, thanks so much, Jojo!
Thanks will learn this. :) I cannot express how thankful I am for your work.
Glad to hear 😊
Hi Mynda!Great Run Through Of Database Functions,I Learnt These Powerful Functions While Working With Access Back In The Day...Thank You :)
Thanks, Darryl! 😊
I used those a few years ago for KPI calculations. It was an elegant way to show the criteria to the customer without digging into formulas.
One thing in the criteria is that the order of the columns doesn’t matter, since it’s based on matching labels. In the example from the video, the criteria on level could be between the two dates and it would work the same. Which is great because if some columns are added or the order changed in the data(base), you don’t have to rewrite the formula 🤠
Anyway to keep it more easy to read, I use the same columns order in data and in criteria.
Great points!
Great video. The D functions also have the great bonus of having the criteria visible so no trying to work out what has been filtered in or out of the calculation. I also love the advanced filter for the same reason.
Yes, great points about transparency 🙏
I’m in the middle of preparing budgets now, this will come in very handy, looks much better than using sumifs, etc.. Thank you so much!!!!
Great to hear 😊
Me too!!! I can’t wait to use these functions!!
Very nice tutorial Mynda! Excel has so many hidden gems and thank you for getting them to us! Stay blessed! 👌👍
My pleasure, Vijay!
This is great. Up to now I used some other functionalities of Excel like tables, Power Query, sumifs and similar, array formulas, advanced filtering but only heard about database functions. Now I will harness them to the work 😀
Great to hear!
thank you for explaining so well!
Glad you liked it!
Never used these. Thanks for sharing. The criteria table allowing formulas and the functions handling OR criteria are promising. We can have user control the output via inputs that have multiple conditions. Will give it a try.
Any version compatibility issues with these functions? Thanks.
Great to hear! There’s no compatibility issues 👍
I did not know about these and will certainly think about how & when to use them - thank you for the great instruction!
Glad it was helpful!
Thanks for D useful video. We can use a drop-down list and MATCH to return a number which intern feeds to column number in DSUM.
Yes, nice idea.
Database functions are a very powerful tool. I have been using it for many years. I even developed a special application with an interface to organize any kind of queries to the database. I recommend you to listen to this lecture carefully, you will definitely need it! Mynda, I apologize for the harsh words I said before.
Great to hear!
Clearly explained and well presented. Thank you very much for this.
Thanks so much 😊
Thanks! I've seen the functions but I've never dug into them yet. This was a good primer for getting started. One question I have, can the criteria reference be to a Criteria Excel Table (with matching headers for the columns you want to filter on)?
Yes, it sure can 😊
Td to dx to😮 No h
Great video! I didn’t know about those formulas until I saw your video! Thanks Mynda
Glad you’ll find them useful, Maria!
Very useful! This is a lot easier than writing large sumifs with many criteria.
Glad you think so!
Great video Mynda, I rarely use them so this was very helpful!
Cheers, Chris!
Great video, thanks for sharing!
My pleasure 😊
I did not know about these. Many years ago I taught database functions in Lotus 1-2-3 where the criteria were structured this same way. I guess Microsoft developers knew a good idea when they saw it
Yes. A lot of early Excel features are the same as Lotus 1-2-3!
Great video Mynda thank you! How/does this work with Dynamic Array Functions?
These aren't dynamic array functions, but you can reference the output of a dynamic array in the first argument e.g.: =DSUM(A1#,...
Excellent! Exactly what I needed. Cheers.
Great to hear!
Excellent, very well explained Mynda, thanks!
Thanks so much!
Great video! I have never used these functions but as I watched I was thinking of all the ways I can use a number of them in my reports. Thank you!
Fantastic to hear, Lesley!
Nicely explained Mynda.. I was using database functions for sometimes but there were some confusions which sorted out by this video. Thanks for sharing.
Great to hear, Hemant 😊
Hi Mynda. Thanks for this great summary of these less well know and used Database functions. Thumbs up!!
Thanks so much, Wayne!
Hello Mynda and thanks for the tutorial, i saw there was another question on volatility, but I would like to expand on that. I read somewhere that Sumifs and Countifs become volatile when referencing another worksheet, is that the case also for the database formulas?
In some rare instances, as explained here: www.decisionmodels.com/calcsecretsi.htm
This is great, not something I’ve ever stumbled across, i will need to consider when this is more appropriate than sumifs!
Great to hear, Tom! 😊
Thank you. Great explanation. I didn't know those functions before.
Glad it was helpful!
Another good one, I’ll have to check these out more.
Glad you liked it!
Awesome stuff. I think I love you, in an Excel kind of way.
Glad you liked it 😊
Thanks. Do you have a video about creating a database with a nice dashboard for any projects management (i.e. Contract management or inventory management). Thanks in advance for your sharing!
I have this video on Project Management that might be of use to you: ruclips.net/video/5qtSioTE2wY/видео.html
@@MyOnlineTrainingHub Thanks so much! 🥰
Can you use a nested OFFSET for the criteria, so that you always have the full grid selected without Excel assuming you want "all"?
Probably.
Wow, i've indeed never seen these before. These could be very useful.
Glad you like them!
Hi Mynda, Thank you.
Just a note. I was working on the file from your page and the formula was returning zero. I realized that it's because the date in your file is set to dd/mm/yyyy. I suspect (not sure) that each computer has a default setting for reading formulas, and mine requires dates to be in mm/dd/yyyy to be properly read. So when I changed the date on the criteria table from "
Yep, I'm using dd/mm/yyyy, so you're right to change the format of the filter critieria.
As always, another interesting, clear video. Many thanks.
In this particular one, what is the difference with using the column filters? The filters seem to be much easier to use. I fear the answer is in another video that I have yet to watch...
Hi Stephen, filtering with the column drop down buttons is a manual process, filtering with formulas is dynamic/automatic.
@@MyOnlineTrainingHub Many thanks.
Will dsum work to if you are linking it to an external workbook and don't have it open
No, the database functions don't work on closed workbooks.
Thank you Mynda for this interesting video! 👏
My pleasure, Isaac 😊
"Donkey's years" didn't know that one!
Must be an Australian saying 😁
Great video, fully and clearly explains all the features and rules. Nice one .
Thanks so much 😊
Thank you - I didn't use these before but seems to be very handy
Glad you liked it, Emil!
Good stuff. I would like to see the video address (1) the syntax of the function without using a separate table for conditions and (2) how the function handles double counting when a value meets both filtering conditions.
Thanks, Jeremy! Good suggestions. I showed how you can hard key the conditions (criteria) into the formula in the video. The criteria are considered AND and therefore you shouldn't get double counting.
@@MyOnlineTrainingHub Perhaps I missed it. Where did you show the hard-coding syntax?
One of life's quirks.
Man talking about a database......boring
Woman talking about a database......not boring.
Glad you enjoyed it, Mark!
First I thought this is same as filter or countif functions ...
But this is better ♥️
Glad you liked it 😊
Please how did you select the table data? or you used a shortcut?
There are lots of ways to select data e.g. for contiguous ranges CTRL+A or CTRL+SHIFT+arrow keys. HTH.
How does it compare to sum(filter(...)), using filter you can turn any function into a database function? Eg, percentile(filter(...))
FILTER is amazing. These functions are old. They don't compete with FILTER, but they're great alternatives to the IFs functions.
Thank You. Very much informative & useful video...
You are most welcome :-)
Hi Mynda! Great video. Is there anything similar in power query?
In Power Query? You can use Group By to summarise the data, but Power Query isn't really the tool for database type formulas, that's more the domain of Excel.
Mynda, as always thanks for sharing. Why do you say that they´re more powerful than sumifs and countifs? I didn´t get it!
Because with database functions you can have both AND and OR criteria, but with the ...IFS functions all criteria is considered AND.
Thank you!
Can we use dget function to get multiple rows or columns? Like a substitute to pivot table?
Only with multiple DGET formulas, because remember DGET can only return a single value and it must be the only match in the table.
Thank u i will watch this video in my exam for a 100 % 😀😀😀😀😀
Great to hear 😊
Hi , is there any function similar to Query in Google sheet for Excel ? Thanks
Not that I know of, Mahmud.
Thanks so much Mynda. These used to be my go to formulas before sumifs etc came along. It’s been almost 20 years since I last used the database functions. Were these called Dimensional Aggregates at one point?
Setting criteria this way can be far more legible that long complex sumifs or averageifs
I can’t remember though, can the field value be a cell reference with the column name as a string? If so the column being aggregated could by dynamic with use of data validation or even a slicer/pivot table on list result.
Thanks, Justin! I don’t remember them being called dimensional aggregates 🤔 yes, the field can be a cell reference and the column name a string 😊
As usual, professor thank you very much. You are great.
Many thanks, Mohammad!
what is the efficiency like for database functions as apposed to *IF functions when dealing with large data sets? Also, are they fully volatile or only calculate when something in the relevant range is updated?
They’re not volatile. I haven’t speed tested them, but I’ve also not heard of them being slow.
Can you somehow reference a database loaded into a datamodel? Tried by referencing it by a cubemember inside dsum formula but it doesnt work ...
You can use CUBE functions themselves: ruclips.net/video/Wvajqz7uBbs/видео.html
Thanks will learn this.my Dear Mentor
Great to hear :-)
Hi. I just wanted to ask what is Your relationship to the function of type D... when the database contains columns with text (eg: A100, A1000, A10000 ...) and You provide A100 in the criterion...
The results are the same as for the A100* criterion.
What do You think about it?
Good question. These functions are designed to work with tabular data. Having headers like that tells me that it's not tabular.
How did i miss these functions?!! :( thanks for sharing :)
My pleasure 😊
Never heard of these! I thought I knew excel 😅
Hope you can make use of them, Paul!
When are these Database functions needed? If I have a dataset with 10’s of millions of records, will these still come in handy because the table would seize to be helpful since we Excel table can’t contain over 1.048 M
If you have that much data you should use Power Pivot and then you'll have access to the DAX Function library. More on Power Pivot here: www.myonlinetraininghub.com/power-pivot-course
@@MyOnlineTrainingHub thanks for the content. I have started reading about DAX but I am considering enrolling for a course in Power Pivots. I am a big follower of your channel.
Thanks Mynda, that was very helpful. :)
Great to hear, John!
How to change the font size of drop down lists? Actually i am using 75% screen fit size so that i can view all columns in one screen, In that if i select the drop down list cell it’s content not at all visible & font size is so small. Can you please help me to work on this?
Hi Deepakra, you can't change the font size in a drop down, so I suggest you change your zoom to 100% and instead change the font size of the data in the columns to fit it better.
Awesome Mam 👌
Thank you 😊
Superb Minda… Are there any ways to do intersection sum of tables ?
You mean like this: www.myonlinetraininghub.com/excel-factor-15-the-lazy-lookup
@@MyOnlineTrainingHub Not like this .. Having 2 different tables with a single key column & intersecting it to find the sum of rows present in both columns. Like a power query merge.
Please post your question and sample Excel file on our forum where we can help you further: www.myonlinetraininghub.com/excel-forum
I always learn something when watching your vids. Keep up the great work.
Thanks so much, Rory!
Can this be use to count unique values?
No, but if you have Microsoft 365 then there is a UNIQUE function: www.myonlinetraininghub.com/excel-functions/excel-unique-function
Just to confirm, each database row is included in the summation only once even if it matches multiple rows of the criteria, Correct?
Yes, the DGET function returns the first match. If you want multiple matches, you can use the FILTER function: ruclips.net/video/ZCQAweoAdOw/видео.html
@@MyOnlineTrainingHub Actually, I meant like DSUM would only include rows once even if they matched multiple criteria rows.
Ah, no it will double count them if the criteria is on separate rows like in the OR scenario.
Hi Mynda, can we use formula in the criteria field?
Hi Danny, no, you can only reference cells in the worksheet. You can put formulas in those cells. You just can't nest a formula in the database functions.
@@MyOnlineTrainingHub
Thanks Mynda, I am currently using SUMIFS formula with 2 criteria’s, the 1st criteria I m using the wildcard, but the 2nd criteria is depending on the row number. Is there another way to solve this other than SUMIFS formula?
Maybe with SUMPRODUCT. Please post your question and sample Excel file on our forum where we can help you further: www.myonlinetraininghub.com/excel-forum
Nicely done.
Cheers 😊
This is awesome thanks! Is there any way to code criteria into formula bar? Or do they have to be setup in a table like you have?
Cheers, Jared! You can hard code the criteria, but I don’t usually recommend doing that for any formulas because it can result in a lot of maintenance if you want to update multiple formulas that all have the same criteria.
@@MyOnlineTrainingHub How do you hardcode criteria? AFAIK, it has to be a range (which is the biggest drawback to these functions generally). Have I missed something?
Hi Rory, I thought I tested this =DSUM(DataTable[#All],"Amount",{"Type";"Level 1"}) back when I created the video, but I must have imagined it because it doesn't work 😛
@@MyOnlineTrainingHub Shame - I thought they were about to become a lot more useful to me! :)
Extremely powerful!!!!
Glad you liked it 😊
Amazing video and content. Really appreciate your help.
Thanks, Abdul 😊
Super handy...Thanks Mynda
Great to hear, Matt!
Very useful tips 👍 hopefully this will be implemented in the future in the normal excel filter tho lol
Not sure what you mean by 'the normal Excel filter'.
Good finding it's very useful for me 👍
Great to hear 😊
Thanks I think I need to look on these function, they could be interesting. Cheers
Glad you liked it, Mickael!
Brilliant. Why even use Sumifs when DSUM is much quicker?
Glad you liked it, Tommy!
Thanks, Excellent.
Glad you liked it!
Thanks
Welcome :-)
again, really quite excellent!
Cheers, Eliot!
Thanks so much love
Glad you liked it 😊
Terimakasih
You're welcome 😊
It is easy to use.
Glad you think so 😊
How come i can't download the workbook???
Probably a browser issue. Try a different browser and be sure to follow the instructions on the page.
I may very well be wrong but I believe your comment about double counting in example (4) is incorrect. What will happen is that all Level 1 invoices will be included as well as any invoices from all other Levels not equal to "Atkins". This is not double counting.
If you use the filters on the table and do the math you'll see what I mean.
this is great
Glad you liked it!
good video
Glad you enjoyed it 🙏
Unfornutately I can´t download the excel file :-(
Hmmm, not sure why that would be. Give it a try again now please, Claus.
I swear I am doing everything exactly the way you're showing it, but it returns me nothing but the minus sign! Why it is so?
Hard to say without seeing your file and formula. Please post your question and sample Excel file on our forum where someone can help you further: www.myonlinetraininghub.com/excel-forum
Awesome
Cheers 😊
And just like that… now I think I am using more pivot tables than I actually need.
:-) glad you like the database functions, Raul! I don't think you can ever use PivotTables more than you need. They're more robust than any formula and easier to create.
@@MyOnlineTrainingHub Thanks! True, but sometimes I create report out of pivot tables (using a Getpivot function where arguments are referenced in the reporting table, so I can scroll formulas) and I need Totals by both Region and Product. So if the pivot has Region totals (and each region has almost the same Products) when I want totals for Products I just don’t’ have that available in that pivot and need a second Pivot.. perhaps for that reporting row I can use Database Functions (that is, for some aggregations)? Thanks!!
👍👍
Glad you liked it :-)
Ach jo, škoda že to není český :-(
Hopefully you can follow the file.
@@MyOnlineTrainingHub Thank you for answer.
Excellent
So pleased you liked it 🙏