View Single Post
  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Peo Sjoblom Peo Sjoblom is offline
external usenet poster
 
Posts: 3,268
Default DCOUNTA WITH MULTIPLE FIELD CRITERIA

One way

=DCOUNTA(Database,"City",F1:G2)


Where in this case the criteria (F1:G2) looks like

Last Name City
Smith NYC

Criteria that are on the same row means that you are using what is in fact
AND functionality,
on separate rows it is OR


You can replace City in the formula with Last Name or any other header in
your database


--


Regards,


Peo Sjoblom



"galsaba" wrote in message
ups.com...
How can I create a statement that will take in consideration criterai
in two fields.
For example, all rows where the last name is Smith, and the City is
NYC.

Thanks,
galsaba