Dsum not recognizing data

K

Ken

I'm using a DSum function to total data with similar criteria. I have set up criteria labeled "account" and have 10* as the desired criteria, and it will not pull in data with account numbers 1020 or 1009. When I type in 1020 and 1009 directly into the criteria, the dsum function finds those values, but but I cannot get the wildcard * to work to get all values that have account number beginning with 10. Please advise.
 
D

Don Guillett

I don't use dsum cuz I like sumproduct but try 10 without the *
or
sumproduct((left(a2:a200),2)=10)*c2:c200)



--
Don Guillett
SalesAid Software
(e-mail address removed)
Ken said:
I'm using a DSum function to total data with similar criteria. I have set
up criteria labeled "account" and have 10* as the desired criteria, and it
will not pull in data with account numbers 1020 or 1009. When I type in
1020 and 1009 directly into the criteria, the dsum function finds those
values, but but I cannot get the wildcard * to work to get all values that
have account number beginning with 10. Please advise.
 
D

Don Guillett

sumproduct((left(a2:a200),2)=10)*c2:c200)
should be
sumproduct((left(a2:a200),2)="10")*c2:c200)
 

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