DSUM with exclusion

Noobachu

New Member
Joined
Jun 28, 2011
Messages
7
Hey everyone,

I'm trying to use DSUM with some strange criteria. I have data where each row contains a number and also a number of labels: location, year, component, sector, category, and subcategory. I want to use DSUM to produce the summed expenditures of everything labeled "CDD" in Component that isn't labeled "PICD" in Subcategory. How would I do this? The subcategories are so numerous that it doesn't make sense to use inclusion on the rest besides this.

Thanks,

A Noob
 

Excel Facts

How can you automate Excel?
Press Alt+F11 from Windows Excel to open the Visual Basic for Applications (VBA) editor.
if the amount of expenditures in col G try this
Excel Workbook
ABCDEFGHIJK
1locationyearcomponentsectorcategorysubcategoryexpenditurescomponentsubcategory
2CDDPICD100CDD<>PICD
3CDD50
4PICD15050
Sheet1
Excel 2010
Cell Formulas
RangeFormula
K4=DSUM(A1:G4,G1,J1:K2)
 
Upvote 0

Forum statistics

Threads
1,224,509
Messages
6,179,192
Members
452,893
Latest member
denay

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