Sum only distinct values by group (data confounded by Cartesian effect)

timspin

Board Regular
Joined
Nov 18, 2002
Messages
231
Hi there - can anyone help. I would usual do this in a pivot table (sum distinct), but as my data is 373,000 rows I dont get the option to add data to the data model when inserting a pivot table.

My data problem looks like this. I would only want to sum a single instance of 122, 5433 and 862 to total 6417,

Col A--Col B
1 ---- 122
1 ---- 122
1 ---- 122
1 ---- 122
2 ---- 5433
2 ---- 5433
2 ---- 5433
3 ---- 862
3 ---- 862
3 ---- 862

Ideally Id like to be able to do this in a pivot, maybe I could create another column C, that I could just SUM in a pivot table (and this is what I need help with)

Col A--Col B----Col C
1 ---- 122 ------122
1 ---- 122
1 ---- 122
1 ---- 122
2 ---- 5433 ---- 5433
2 ---- 5433
2 ---- 5433
3 ---- 862------ 862
3 ---- 862
3 ---- 862

Any ideas - thanks
Tim
 
Last edited:

Excel Facts

Highlight Duplicates
Home, Conditional Formatting, Highlight Cells, Duplicate records, OK to add pink formatting to any duplicates in selected range.
I can't imagine why you wouldn't be able to add the data to the DataModel. Definitely where to go.
I make the range a table which is easier to make sure it meets the basic requirements before being able to load into the data model.
 
Upvote 0

Forum statistics

Threads
1,214,919
Messages
6,122,259
Members
449,075
Latest member
staticfluids

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