View Single Post
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Tom Hutchins Tom Hutchins is offline
external usenet poster
 
Posts: 1,069
Default DCOUNT or nested functions?

You could use a SUMPRODUCT formula similar to this:
=SUMPRODUCT(--(A16:A19="Ford"),--(B16:B19=2005))

Here is a link to a great tutorial about SUMPRODUCT:
http://www.xldynamic.com/source/xld.SUMPRODUCT.html

Hope this helps,

Hutch

"martinbarnes" wrote:

The help page for the DCOUNT function is a little confusing. I am trying to
count the number of cells that meet criteria in 2 different columns. For
example, I have a column of cars by model and a column with the month and
year the cars were purchased. I want a count of each model bought during a
specific month/year. Is there another way to do this (i.e. nest the COUNTIF
function) besides DCOUNT?

any help would be appreciated...