Easy-to-follow video tutorials help you learn software, creative, and business skills.Become a member

Using database functions like DSUM, DAVERAGE, and DMAX

From: Managing and Analyzing Data in Excel 2010

Video: Using database functions like DSUM, DAVERAGE, and DMAX

In Excel there is a category of functions called database functions, and although less frequently used in the past because of the SUMIF family of functions has been expanded greatly, these database functions rely on the kinds of criteria ranges used with the Advanced Filter. If you haven't used the Advanced Filter these might seem a little strange to you. But there are some advantages here and there. And these functions do mesh well with those Advanced Filter applications, particularly when you've got unusual calculations SUMIF and COUNTIF can't handle.

Using database functions like DSUM, DAVERAGE, and DMAX

In Excel there is a category of functions called database functions, and although less frequently used in the past because of the SUMIF family of functions has been expanded greatly, these database functions rely on the kinds of criteria ranges used with the Advanced Filter. If you haven't used the Advanced Filter these might seem a little strange to you. But there are some advantages here and there. And these functions do mesh well with those Advanced Filter applications, particularly when you've got unusual calculations SUMIF and COUNTIF can't handle.

Now for reference in Column J I've simply listed here the various database functions. If you remove the letter D from each of these of course you probably recognize most of those anyway. Now here is a strange thing. In Excel 2007 and in Excel 2010 if you're a little bit curious about these database functions, you heard a little bit about them, if you go to the Formulas tab you say, "Well, I don't see them here, they must be here under More Functions." But we're not seeing them; they're not shown here.

Maybe that's some indication as to what Microsoft plans to do with these functions in the future. But we don't see them. However, if you click the fx button on the left side of the Formula Bar and look at the categories that are available here you will see Database functions, and here are those 12 functions. And what they all have in common is that they refer to a criteria range as the third argument. And if you have worked with the Advanced Filter you probably recognize on the screen here that potentially this is a criteria range. This is or maybe the two of them together are.

So, let's talk about how we might use one of these, for example DAVERAGE, =daverage. We'd like to find the average salary of our full time people. Now I think a lot of you know possibly you could be using one of the SUMIF, COUNTIF, AVERAGEIF functions here. Let's choose this function as an example of how we might use the others. We're looking at a database. I'm simply going to drag across columns A through F. In other situations you might be highlighting all the cells. Make sure you do include the title row there. Comma. Which field are we trying to tabulate data from? From left to right it's the seventh column, Column G. So we put in the number 7 here, comma, and how about this criteria range? And here your knowledge of using Advanced Filter would come into play.

We simply want to highlight the cells J1 and J2. What's the average salary of our or full time people, that's what we are calculating right now, and there it is. If we wanted to know the total salary of those salaries that are greater than 80,000 or maybe more interestingly a count of how many salaries are over 80,000, perhaps we'd use DCOUNT, =dcount. So once again like in the previous example we're looking at this database here. Comma.

We're tabulating a data from Column G so that's the seventh column, comma, and our criteria range this time around is these cells here. Tell me how many cells have salaries greater than 80,000, and there are 71 of them. So perhaps you can begin to see how this has some merit. Again they seem to be on the wane in terms of being widely used in Excel worksheets, but there's some real power and capability.

And if you do work with the Advanced Filter concept you're aware of how these have some real potential here and there are quite a few variations on how you use the Advanced Filter. And these functions do mesh nicely with that capability.

Show transcript

This video is part of

Image for Managing and Analyzing Data in Excel 2010
Managing and Analyzing Data in Excel 2010

27 video lessons · 22566 viewers

Dennis Taylor
Author

 
Expand all | Collapse all
  1. 1m 32s
    1. Welcome
      54s
    2. Using the exercise files
      38s
  2. 25m 18s
    1. Sorting from the Sort menu
      4m 37s
    2. Sorting from the toolbar
      4m 2s
    3. Multi-key sorting
      3m 4s
    4. Sorting based on the order of data in custom lists
      4m 44s
    5. Sorting by color font, color background, or icon
      3m 57s
    6. Sorting columns
      2m 11s
    7. Sorting data in random order
      2m 43s
  3. 19m 1s
    1. Using single- and multiple-column text filtering
      5m 8s
    2. Taking a look at special numeric filters
      1m 54s
    3. Harnessing special date filters
      2m 5s
    4. Creating a top-ten list by value or percent
      3m 11s
    5. Creating custom filters
      1m 40s
    6. Copying and sorting filtered lists
      3m 7s
    7. Recognizing the limitations of standard filtering
      1m 56s
  4. 11m 16s
    1. Setting up subtotals
      4m 20s
    2. Creating multiple levels and copying subtotals
      6m 56s
  5. 13m 22s
    1. Using the Advanced Filter for complex OR criteria
      4m 30s
    2. Using the Advanced Filter for complex multiple-field criteria
      5m 37s
    3. Using the Advanced Filter to create unique lists from repeating field data
      3m 15s
  6. 10m 44s
    1. Using the Remove Duplicates command
      2m 30s
    2. Using a specialized array formula to identify data that's been duplicated
      5m 10s
    3. Using an array formula to count the number of unique items in a list
      3m 4s
  7. 10m 31s
    1. Using SUMIF, COUNTIF, and related functions for quick data analysis
      6m 48s
    2. Using database functions like DSUM, DAVERAGE, and DMAX
      3m 43s
  8. 34s
    1. Next steps
      34s

Start learning today

Get unlimited access to all courses for just $25/month.

Become a member
Sometimes @lynda teaches me how to use a program and sometimes Lynda.com changes my life forever. @JosefShutter
@lynda lynda.com is an absolute life saver when it comes to learning todays software. Definitely recommend it! #higherlearning @Michael_Caraway
@lynda The best thing online! Your database of courses is great! To the mark and very helpful. Thanks! @ru22more
Got to create something yesterday I never thought I could do. #thanks @lynda @Ngventurella
I really do love @lynda as a learning platform. Never stop learning and developing, it’s probably our greatest gift as a species! @soundslikedavid
@lynda just subscribed to lynda.com all I can say its brilliant join now trust me @ButchSamurai
@lynda is an awesome resource. The membership is priceless if you take advantage of it. @diabetic_techie
One of the best decision I made this year. Buy a 1yr subscription to @lynda @cybercaptive
guys lynda.com (@lynda) is the best. So far I’ve learned Java, principles of OO programming, and now learning about MS project @lucasmitchell
Signed back up to @lynda dot com. I’ve missed it!! Proper geeking out right now! #timetolearn #geek @JayGodbold
Share a link to this course

What are exercise files?

Exercise files are the same files the author uses in the course. Save time by downloading the author's files instead of setting up your own files, and learn by following along with the instructor.

Can I take this course without the exercise files?

Yes! If you decide you would like the exercise files later, you can upgrade to a premium account any time.

Become a member Download sample files See plans and pricing

Please wait... please wait ...
Upgrade to get access to exercise files.

Exercise files video

How to use exercise files.

Learn by watching, listening, and doing, Exercise files are the same files the author uses in the course, so you can download them and follow along Premium memberships include access to all exercise files in the library.


Exercise files

Exercise files video

How to use exercise files.

For additional information on downloading and using exercise files, watch our instructional video or read the instructions in the FAQ.

This course includes free exercise files, so you can practice while you watch the course. To access all the exercise files in our library, become a Premium Member.

Join now "Already a member? Log in

Are you sure you want to mark all the videos in this course as unwatched?

This will not affect your course history, your reports, or your certificates of completion for this course.


Mark all as unwatched Cancel

Congratulations

You have completed Managing and Analyzing Data in Excel 2010.

Return to your organization's learning portal to continue training, or close this page.


OK
Become a member to add this course to a playlist

Join today and get unlimited access to the entire library of video courses—and create as many playlists as you like.

Get started

Already a member?

Become a member to like this course.

Join today and get unlimited access to the entire library of video courses.

Get started

Already a member?

Exercise files

Learn by watching, listening, and doing! Exercise files are the same files the author uses in the course, so you can download them and follow along. Exercise files are available with all Premium memberships. Learn more

Get started

Already a Premium member?

Exercise files video

How to use exercise files.

Ask a question

Thanks for contacting us.
You’ll hear from our Customer Service team within 24 hours.

Please enter the text shown below:

The classic layout automatically defaults to the latest Flash Player.

To choose a different player, hold the cursor over your name at the top right of any lynda.com page and choose Site preferencesfrom the dropdown menu.

Continue to classic layout Stay on new layout
Exercise files

Access exercise files from a button right under the course name.

Mark videos as unwatched

Remove icons showing you already watched videos if you want to start over.

Control your viewing experience

Make the video wide, narrow, full-screen, or pop the player out of the page into its own window.

Interactive transcripts

Click on text in the transcript to jump to that spot in the video. As the video plays, the relevant spot in the transcript will be highlighted.

Are you sure you want to delete this note?

No

Your file was successfully uploaded.

Thanks for signing up.

We’ll send you a confirmation email shortly.


Sign up and receive emails about lynda.com and our online training library:

Here’s our privacy policy with more details about how we handle your information.

Keep up with news, tips, and latest courses with emails from lynda.com.

Sign up and receive emails about lynda.com and our online training library:

Here’s our privacy policy with more details about how we handle your information.

   
submit Lightbox submit clicked
Terms and conditions of use

We've updated our terms and conditions (now called terms of service).Go
Review and accept our updated terms of service.