Combine values and SUM duplications - help needed as my way is veeeeerrrrryy slow :(

LORDMARKS

New Member
Joined
Jun 5, 2014
Messages
39
Hi all

I have a large data table in varying size 300 - 6000 rows, 20 columns.

I am trying to sort the data for display purposes, mainly graphs, so I am using..
Code:
Sheets("Data Display").Range("B33:B6033").SpecialCells(xlCellTypeVisible).Copy Destination:=Sheets("Calc").Range("A10000")
and
Code:
Sheets("Calc").Range("O116:O6116").Value = Sheets("Calc").Range("I10000:I16000").Value

(this is just a sample of the lines) to bring the data in and convert to values, but what I need to do is combine two columns and plot againts the third, but at the same time add together any duplicates.

So to explain better... Column A (name) Column B (ref#) Column C (value)

result...Column A (name&ref#) Column C (value)
check...Column A for repeats and total values



I was trying a combination of unique INDEX and SUMIF as a fixed calculation along side the data, but as this appears to be VOLITILE the calculation time is massive!

If anyone has a better suggesetion, please let me know. or if I can do this as part of the code on import?


Thanks As Always.:)
 

Excel Facts

How to total the visible cells?
From the first blank cell below a filtered data set, press Alt+=. Instead of SUM, you will get SUBTOTAL(9,)

Forum statistics

Threads
1,223,229
Messages
6,170,881
Members
452,364
Latest member
springate

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