Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 12
Default DSUM Partial Match

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
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3,268
Default DSUM Partial Match

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



--
Regards,

Peo Sjoblom






"Bob H" wrote in message
...
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



  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 109
Default DSUM Partial Match

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.




On Jul 27, 4:38 pm, Bob H wrote:
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



  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 12
Default DSUM Partial Match

Thank you both very much for the quick and accurate solution

"Bob H" wrote:

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

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Partial match lookup question [email protected] Excel Worksheet Functions 5 November 16th 06 08:03 AM
Partial Address match in an array [email protected] Excel Discussion (Misc queries) 0 October 13th 06 04:17 PM
partial lookup/match myra_deV Excel Worksheet Functions 0 May 9th 06 03:19 PM
partial/absolute text match george Excel Worksheet Functions 3 May 1st 06 06:15 AM
sumif based on partial match [email protected] Excel Worksheet Functions 2 April 4th 06 01:14 AM


All times are GMT +1. The time now is 03:17 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"