# Quick DSUM Question

#### Beachcomber

##### New Member
I have a very brief question regarding DSUM, you don't even have to mess with any hard formulas.

DSUM(database,column,criteria)

All I need to know how to do is figure out how to specify multiple columns in one DSUM function with the same criteria. I know I can simply have multiple DSUM arguments and add them together either by DSUM1 + DSUM2... or SUM(DSUM1,DSUM2,...)

However, it would be nice if I could simply specify multiple columns under the "columns" argument in the DSUM function. Is this possible? Thank you for your help.

### Excel Facts

Copy a format multiple times
Select a formatted range. Double-click the Format Painter (left side of Home tab). You can paste formatting multiple times. Esc to stop
Hola,

With Excel, there might be a better alternative to a domain aggregate function, what are you [specifically] trying to accomplish? That is, explain/show what you have and what is your targeted output?

Here's my setup. I'm trying to add columns "Score 1" & "Score 2" in a single DSUM function under the "column" argument. Is this possible? Thanks

I think so... Here's my setup:
Book1
ABCDEF
1Tester111Rucca6
2Tester211
3Rucca11
4Tester411
5Tester511
6Rucca11
7Tester711
8Rucca11
9Tester911
10Tester1011
Sheet1

Beachcomber said:

Here's my setup. I'm trying to add columns "Score 1" & "Score 2" in a single DSUM function under the "column" argument. Is this possible? Thanks
Hi BeachComber:

You can use the formula ...

=SUM(DSUM(\$A\$5:\$F\$13,{"Score1","Score2"},\$B\$1:\$B\$2))

or

=SUM(DSUM(\$A\$5:\$F\$13,{3,4},\$B\$1:\$B\$2))

Yogi - that was exactly what I was looking for! Thank you so much. Nate - Got it to work with sumproduct too, but I wanted to keep it limited to the Database function. This is a huge help. Thank you again!

Replies
0
Views
195
Replies
7
Views
266
Replies
0
Views
157
Replies
2
Views
85
Replies
5
Views
494

1,196,369
Messages
6,014,889
Members
441,854
Latest member
Amstaff

### 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.

### Which adblocker are you using?

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

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