Looking for the best way to aggregate data in a data set that meet certain criteria.

vharp91

New Member
Joined
Jul 24, 2020
Messages
15
Office Version
  1. 2016
Platform
  1. Windows
I am looking for the best way to aggregate data in a data set that meet certain criteria. In the below data set, I would like to aggregate (sum up) the actual dollars (column G), given that the account number (column F), the start/end date (columns D&E), the department ID (column C), and the entity ID (column B), and the Corporation ID (column A) match. So in the below data set, rows 4 & 5 would be aggregated as well as rows 1 & 2. I would like the data to remain in this format, I just need to aggregate those rows up so that the actual dollars are summed up if they meet that criteria and now the data is displayed in one row.
1676502147451.png
 

Attachments

  • 1676502032263.png
    1676502032263.png
    24 KB · Views: 5

Excel Facts

Copy PDF to Excel
Select data in PDF. Paste to Microsoft Word. Copy from Word and paste to Excel.
try this:
mr excel questions 5.xlsm
ABCDEFG
10Corp IDEntityDept IDSDateEdateAcctNbr
11CA2019CA201826750010/01/202210/31/202260000098287.33
12CA2019CA201826750010/01/202210/31/202261000063049.02
13CA2019CA202034656011/01/202211/30/20226122013081.7
14
Sheet6
Cell Formulas
RangeFormula
G11:G13G11=SUMPRODUCT((--(A11=$A$3:$A$7)),(--(B11=$B$3:$B$7)),(--(C11=$C$3:$C$7)),(--(D11=$D$3:$D$7)),(--(E11=$E$3:$E$7)),(--(F11=$F$3:$F$7)),($G$3:$G$7))
 
Upvote 0

Forum statistics

Threads
1,215,154
Messages
6,123,327
Members
449,098
Latest member
thnirmitha

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