DCount, with mixed type data

D

Daron.Lowell

First off, here is a sample set...
--------------------------
Database:
MyCode Score Rating
9 641 22
G 649 23
9 675 23
J 649 23
M 999 95
B 529 21

--------------------------
and my Criteria:
Rating MyCode
22 a
23 b
c
--------------------------

I can get a DCOUNT as long as I use a letter for the criteria under
MyCode. What I need to do is get a DCOUNT of everything except the 9's
(<>9) in the criteria. BUT, everytime i put the <>9 in, I get bad
results.

How do I count all the non numeric entries?!?!
 
G

Guest

Use DCOUNTA instead ( or post your formula that does not work if you use
other criteria as well) and then <>9 as criteria (works for me), You know you
can easily do this using other functions, like

=COUNTIF(MyCode,"<>9")

to count <>9 in the MyCoder range and if you want multiple conditions like
testing for rating 23 as well

=SUMPRODUCT(--(MyCode<>9),--(Rating=23))

There is no need really for the somewhat clumsy D functions, that was
probably just to be compatible with Lotus


Regards,

Peo Sjoblom
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top