WUGNET, the Windows User Group Network
Your Complete Resource Center for "The Best" in Shareware, Computing Tips and Support, Windows Industry News... and much more!
Home Forums Shareware Windows Tips Hot Offers FREE Newsletters Arcade Contact Us About Partners
Search WUGNET: RSS Feeds RSS Feeds Advertise with WUGNET    |    Shareware eBooks
HomeHome FAQFAQ      ProfileProfile    Private MessagesPrivate Messages   Log inLog in

DCOUNTA with multiple criteria

 
   Home -> Office -> Worksheet Functions RSS
Next:  Import external data into Excel  
Author Message
stumped in texas

External


Since: Nov 01, 2009
Posts: 1



(Msg. 1) Posted: Sun Nov 01, 2009 1:14 pm
Post subject: DCOUNTA with multiple criteria
Archived from groups: microsoft>public>excel>worksheet>functions (more info?)

Can anyone explain how to do a DCOUNTA formula with multiple criteria? I need
to count the number of people that have PPO insurance that live in Ft. Worth
or Bedford on a worksheet.
Back to top
Login to vote
Chip Pearson

External


Since: Sep 25, 2008
Posts: 173



(Msg. 2) Posted: Sun Nov 01, 2009 5:11 pm
Post subject: Re: DCOUNTA with multiple criteria [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Assume the PPO and City info exists in A1:B10 with A1 = "PPO" and B1 =
"City". Enter the following in F15:G17:

PPO City
TRUE Fort Worth
TRUE Bedford

Then, use the following DCOUNTA formula:

=DCOUNTA(A1:B10,2,F15:G17)

This will return the number of values in A1:A10 where column A is TRUE
and column B is either 'Fort Worth' or 'Bedford'.

Cordially,
Chip Pearson
Microsoft Most Valuable Professional
Excel Product Group, 1998 - 2010
Pearson Software Consulting, LLC
www.cpearson.com
(email on web site)



On Sun, 1 Nov 2009 13:14:01 -0800, stumped in texas <stumped in
texas.TakeThisOut@discussions.microsoft.com> wrote:

>Can anyone explain how to do a DCOUNTA formula with multiple criteria? I need
>to count the number of people that have PPO insurance that live in Ft. Worth
>or Bedford on a worksheet.
Back to top
Login to vote
Jacob Skaria

External


Since: Mar 15, 2009
Posts: 231



(Msg. 3) Posted: Sun Nov 01, 2009 5:14 pm
Post subject: RE: DCOUNTA with multiple criteria [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

--Using DCOUNTA
http://office.microsoft.com/en-us/excel/HP052090501033.aspx
Specify your criterias in Row 2


--Using SUMPRODUCT() for 2 criterias
=SUMPRODUCT((A1:A10=criteria1)*(B1:B10=criteria2))
=SUMPRODUCT((A1:A10=F1)*(B1:B10=F2))


--If you are using Excel 2007 check out help on COUNTIFS()

If this post helps click Yes
---------------
Jacob Skaria


"stumped in texas" wrote:

> Can anyone explain how to do a DCOUNTA formula with multiple criteria? I need
> to count the number of people that have PPO insurance that live in Ft. Worth
> or Bedford on a worksheet.
Back to top
Login to vote
Dave Peterson

External


Since: Jul 08, 2005
Posts: 9297



(Msg. 4) Posted: Sun Nov 01, 2009 6:00 pm
Post subject: Re: DCOUNTA with multiple criteria [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

There are other worksheet functions that may be easier to use. If you're using
xl2007, look at =sumifs().

In all versions, you could use =sumproduct().

=SUMPRODUCT(--(A1:A10="PPO"),
--ISNUMBER(MATCH(B1:B10,{"bedford","Ft. Wayne"},0)))

Adjust the ranges to match--but you can't use whole columns (except in xl2007).

=sumproduct() likes to work with numbers. The -- stuff changes trues and falses
to 1's and 0's.

Bob Phillips explains =sumproduct() in much more detail here:
http://www.xldynamic.com/source/xld.SUMPRODUCT.html

And J.E. McGimpsey has some notes at:
http://mcgimpsey.com/excel/formulae/doubleneg.html



stumped in texas wrote:
>
> Can anyone explain how to do a DCOUNTA formula with multiple criteria? I need
> to count the number of people that have PPO insurance that live in Ft. Worth
> or Bedford on a worksheet.

--

Dave Peterson
Back to top
Login to vote
Display posts from previous:   
       Home -> Office -> Worksheet Functions All times are: Eastern Time (US & Canada) (change)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
Categories:
 Windows XP
 Windows Vista
 Windows Other
  Office
 Office Other
 Security
  • Home |
  • Shareware |
  • Windows Tips |
  • Hot Offers |
  • FREE Newsletters |
  • Arcade |
  • Forums |
  • eBooks |
  • About WUGNET |
  • Partners |
  • Contact

  • WUGNET Privacy Policy |
  • Link to WUGNET |
  • IT Support