Excel functions
Database functions
Database functions calculate on a list (a 'database') using a separate criteria range that you type on the sheet. They predate SUMIFS and COUNTIFS but are still handy when the criteria need OR logic or when users should change the conditions in cells.
Start with these
All 12 database functions
- DAVERAGEAverages the values in one column of a list, using only the records that match conditions written in a separate criteria range.
- DCOUNTCounts the cells containing numbers in one column of a list, for the records that meet the conditions in a criteria range.
- DCOUNTACounts the non-empty cells in one column of a list for the records that match the conditions in a criteria range.
- DGETReturns a single value from a column of a list for the one record that matches the criteria. Errors if none or several records match.
- DMAXReturns the largest number in a column of a list, considering only the records that match the conditions in a criteria range.
- DMINReturns the smallest number in a column of a list, using only the records that meet the conditions in a criteria range.
- DPRODUCTMultiplies the values in one column of a list for the records that match the criteria, e.g. to compound yearly growth factors.
- DSTDEVEstimates the standard deviation of a column, treating the records that match the criteria as a sample of a larger group.
- DSTDEVPCalculates the standard deviation of a column for the records matching the criteria, treating them as the entire population.
- DSUMAdds up a column of a list for the records that meet conditions written in a criteria range, including AND and OR combinations.
- DVAREstimates the variance of a column for the records that match the criteria, treating them as a sample of a larger group.
- DVARPCalculates the variance of a column for the records that match the criteria, treating them as the entire population.