PC Review


Reply
Thread Tools Rate Thread

How do I use DCOUNT with evaluation of multiple columns?

 
 
Bryan
Guest
Posts: n/a
 
      27th Feb 2009
I am running Excel 2007.

I have a spreadsheet with 7 fields (columns). I want to count the number of
rows where field 2 is a specific value AND filed 5 is a specific value (or
non-blank). I do not understand the instructions provided in DCOUNT help
under "Multiple criteria in multiple columns where all criteria must be true".

Thanks!

 
Reply With Quote
 
 
 
 
Teethless mama
Guest
Posts: n/a
 
      27th Feb 2009
Take a look COUNTIFS function in help menu


"Bryan" wrote:

> I am running Excel 2007.
>
> I have a spreadsheet with 7 fields (columns). I want to count the number of
> rows where field 2 is a specific value AND filed 5 is a specific value (or
> non-blank). I do not understand the instructions provided in DCOUNT help
> under "Multiple criteria in multiple columns where all criteria must be true".
>
> Thanks!
>

 
Reply With Quote
 
Luke M
Guest
Posts: n/a
 
      27th Feb 2009
You do not want to use DCOUNT. Use SUMPRODUCT like this:
=SUMPRODUCT((A2:A100="Condition1")*(D2100="Condition2"))
Or
=SUMPRODUCT((A2:A100="Condition1")*(NOT(ISBLANK(D2100))))

depending on what you want.
--
Best Regards,

Luke M
*Remember to click "yes" if this post helped you!*


"Bryan" wrote:

> I am running Excel 2007.
>
> I have a spreadsheet with 7 fields (columns). I want to count the number of
> rows where field 2 is a specific value AND filed 5 is a specific value (or
> non-blank). I do not understand the instructions provided in DCOUNT help
> under "Multiple criteria in multiple columns where all criteria must be true".
>
> Thanks!
>

 
Reply With Quote
 
Shane Devenshire
Guest
Posts: n/a
 
      27th Feb 2009
Hi,

First your criteria are inconsistant - you say that field 5 should have a
specified value or be non-blank. No point in testing for a specified value
since a test for non-blank will always incude everything that is non-blank
including your specified value.

For DCOUNT the range you could must be numerics, so you may want to use
DCOUNTA instead.

=DCOUNTA(A1:G100,1,J1:K2)

A1:G100 is your data range and must include unique titles on the first row.
1 is any column you want to count the rows for. This choice is pretty
arbitrary for a counta function, the only point is that the rows in that
column must contain something. J1:K2 is your criteria range and its first
row must contain the titles from Field 2 and Field 5 of your data. Row 2
contains the specified values.

Most answers on this newsgroup to this question would direct you to using a
formula like

=SUMPRODUCT(--(B1:B100=K1),--(E1:E100=K2))

Where the values you wanted to count for are in K1 and K2

--
If this helps, please click the Yes button.

Cheers,
Shane Devenshire


"Bryan" wrote:

> I am running Excel 2007.
>
> I have a spreadsheet with 7 fields (columns). I want to count the number of
> rows where field 2 is a specific value AND filed 5 is a specific value (or
> non-blank). I do not understand the instructions provided in DCOUNT help
> under "Multiple criteria in multiple columns where all criteria must be true".
>
> Thanks!
>

 
Reply With Quote
 
Bryan
Guest
Posts: n/a
 
      27th Feb 2009
Wow. Thank you very much!

"Teethless mama" wrote:

> Take a look COUNTIFS function in help menu
>
>
> "Bryan" wrote:
>
> > I am running Excel 2007.
> >
> > I have a spreadsheet with 7 fields (columns). I want to count the number of
> > rows where field 2 is a specific value AND filed 5 is a specific value (or
> > non-blank). I do not understand the instructions provided in DCOUNT help
> > under "Multiple criteria in multiple columns where all criteria must be true".
> >
> > Thanks!
> >

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
How can i unlock vista after evaluation has blocked start up. to extend the evaluation wer1 Windows Vista General Discussion 15 18th Feb 2007 05:44 PM
DCOUNT for non-contiguous columns RiotLoadTime Microsoft Excel Worksheet Functions 4 3rd Jul 2006 03:12 PM
How can I use dcount to total the number of columns with entries? =?Utf-8?B?R0Rhbm55Ym95?= Microsoft Excel Worksheet Functions 1 3rd Apr 2006 02:27 AM
Equation Evaluation at Multiple Points stevelreid@aol.com Microsoft Excel Discussion 1 28th Dec 2005 03:47 PM
DCount with multiple criteria? =?Utf-8?B?U2Vhbks2ODc2?= Microsoft Access 1 22nd Dec 2005 04:30 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 06:48 PM.