Data table - wrong sums (DSUM)

OysteinS

New Member
Joined
Aug 15, 2011
Messages
6
Example: let's say I'm making a data table (DSUM) to display order income pr sales rep. I have one sales rep called Peter, the other Peter Pan. I'm making a data table with the years 2010 and 2011 horizontally and the names Peter and Peter Pan vertically.

The problem is that Excel sums up all data for Peter Pan and displays nothing for Peter. It seems like it summing up alpha numeric.

What am I doing wrong?
 

Excel Facts

Select all contiguous cells
Pressing Ctrl+* (asterisk) will select the "current region" - all contiguous cells in all directions.
How are you actually using DSUM?
 
Upvote 0
=DSUM(Data!$A$4:$O$1048576;7;H3:K4)

where
Data!$A$4:$O$1048576 is my data range
7 is the column of data that sould be summed
H3:K4 holds my cirteria year and sales rep
 
Upvote 0
Is that for Peter or for Peter Pan? Or are you only summing one at a time?
Also, what precisely is in h3:K4?
 
Upvote 0
H3 holds a label cell = Year
K3 holds a label cell = Rep
H4 is blank, but could have been used to limit data range to e.g 2010
K4 is blank, but could have been used to limit data range to e.g Peter
 
Upvote 0
If they are both blank you will get all data.
I'm not really clear on what your layout is, but by default if you enter Peter you will get data for anything beginning with Peter so you would get both Peter and Peter Pan, but for Peter Pan you should only get Peter Pan. For just Peter, enter ="=Peter"
This sounds like the opposite of what you said though?
 
Upvote 0
Well, I leave K3 blank beacuse I want to display data for all reps.
Remaning the reps like Peter_L and Peter_Pan might solve the problem
 
Upvote 0
Change K3 to something like:
="="&K5

and then set the input cell for the Rep to be K5 rather than K3, and the formulas should work.
 
Upvote 0

Forum statistics

Threads
1,224,583
Messages
6,179,683
Members
452,937
Latest member
Bhg1984

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top