count on multiple conditions
How about a pivot table... Place your cursor in the middle of your data and
then select Data - Pivot Table. Now just follow the wizard (or just select
Finish as the defaults are normally correct). Place your Dates in the left
column and your Values(Positive / negative / neutral) across the top. You
also want to place your values in the middle. This will give you your counts.
If you need to you could also get fancy and group your dates to consolidate
by month, quarter or year if that was of interest to you... Reply back if
this does not make sense...
--
HTH...
Jim Thomlinson
"Debbie" wrote:
Thank you but this didn't fix my problem.
I'm sure I wasn't clear enough.
A B
neutral 8/1/2006
positive 8/1/2006
negative 8/5/2006
Negative 8/5/2006
Positive 8/7/2006
Positive 8/7/2006
neutral 8/7/2006
positive neutral negative
1-Aug 0 DCOUNT(A1:B4;2;D1:E2) 0
2-Aug 0 0 1
3-Aug 0 0 1
4-Aug 0 1 2
5-Aug 0 1 3
6-Aug 0 0 3
7-Aug 1 0 8
You see, I want it to count how many positives I have for 8/1 and return
that number. I want it to count how many neutrals I have for 8/1 and return
that number. Same thing for negatives.
I need it to perform this action through out an entire section of
information and decipher how many per date and enter that number in the
appropriate column.
So in the 8/1 section under positive I should have a 1, under the neutral I
should have 1 and in the negative, I should have a 0.
I have no information for 8/2, 8/3 and 8/4 so those should all be 0's.
Then for 8/5 I should have 0 positives, 0 neutrals and 2 negatives.
The formula you gave me doesn't fit this scenario.
Any other ideas?
Thanks for your help,
Debbie
"Rodrigo Ferreira" wrote:
Try the function DCOUNT
Something like this:
A B
NAME DATE
neutral 8/1/2006
positive 8/1/2006
negative 8/5/2006
D E
NAME DATE
neutral 8/1/2006
DCOUNT(A1:B4;2;D1:E2)
Rodrigo Ferreira
"Debbie" escreveu na mensagem
...
I'm trying to perform a count based on two columns and two conditions.
I've
searched the forum and found several options but can't get any of them to
work. Will "countif" not work with date?
Here's what I'm doing:
A B
neutral 8/1/2006
positive 8/1/2006
negative 8/5/2006
I want to use a code that will search column b for a date: 8/1/2006 and
return a count of how many positives, negatives and neutrals I have within
that date.
Can anyone help?
Thanks,
Debbie
|