DSUM Partial Match

B

Bob H

I have a list of companies in col A and Revenues in column B. There are
several rows with revenue for the same comapny so I want to use DSUM to get a
total revenue per company.

My problem is that DSUM adds together all revenues fo companies that begin
with the same letters even if though there is an exact match. For example,
if my company name criteria is "A", DSUM adds together companies A, AB, ABC,
Acme, etc.

Does anyone know a way to force DSUm to inly sum an exact match? Thanks
 
P

Peo Sjoblom

Use this criteria for A


="=A"

instead of just A

note that it is not case sensitive so it will sum for "a" as well

if you need case sensitive remove the header from the criteria range (leave
it blank)
and use

=EXACT("A",A5)


where A5 is the first cell in the company column with data meaning the
header would be in A4



Note that you can use


=SUMIF(Company_Range,"A",Revenue_Range)


or


=SUMPRODUCT(--(Company_Range="A"),Revenue_Range)


the D functions are a bit archaic
 
K

krcowen

Bob

Try making your criteria

="=A"

to keep from including AB and ABC in with your A's. I am not saying
it is logical, but, I am pretty sure it will work. You may also like
a pivot table or a sumproduct formula to get what you want.

Good luck.

Ken
Norfolk, Va.
 

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